diff --git a/app-laptop/acerhdf/acerhdf-0.5.24.ebuild b/app-laptop/acerhdf/acerhdf-0.5.24.ebuild new file mode 100644 index 0000000..7f04653 --- /dev/null +++ b/app-laptop/acerhdf/acerhdf-0.5.24.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod + +MY_PN=${PN}_kmod +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A kernelmodule which monitors the temperature of the aspire one netbook" +HOMEPAGE="http://piie.net/index.php?section=acerhdf" +SRC_URI="http://piie.net/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +RDEPEND=">=virtual/linux-sources-2.6.30" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_PN} + +BUILD_TARGETS="default" +MODULE_NAMES="${PN}(:${S}:${S})" +MODULESD_ACERHDF_DOCS="README.txt" +BUILD_PARAMS="KDIR=${KERNEL_DIR}" +CONFIG_CHECK="!ACERHDF ~THERMAL ~THERMAL_HWMON ~ACPI" + +pkg_setup() { + linux-mod_pkg_setup + if kernel_is lt 2 6 30; then + ewarn "This version of ${PN} needs at least kernel version 2.6.30 selected" + ewarn "Please set the /usr/src/linux symlink to the right version" + die "This version of ${PN} needs at least kernel version 2.6.30 selected" + fi +} + +pkg_postinst() { + linux-mod_pkg_postinst + einfo "The module now starts with kernel mode off" + einfo "Add options acerhdf kernelmode=1 to your" + einfo "/etc/modprobe.d/acerhdf.conf to enable it at loadtime" +} diff --git a/dev-libs/stfl/Manifest b/dev-libs/stfl/Manifest index c592511..aa2f728 100644 --- a/dev-libs/stfl/Manifest +++ b/dev-libs/stfl/Manifest @@ -1,3 +1,3 @@ AUX stfl-0.21-multilib.patch 1936 RMD160 fce9de74ac0cab5abe0e9b2d53c82cad602a5be1 SHA1 1ae240823806120b94c5cda5ba96b57e289bd730 SHA256 905260dbd13b4ce374d95ced9ea5d443fc44de0f14c0f1140fc8c7cead6c1f06 DIST stfl-0.21.tar.gz 41093 RMD160 d8b56cc97b4d76adba8034ce9bbae631e6e9d17e SHA1 0313eafa1fe4dcfea1f2edd34d453baaa46df277 SHA256 bf0ead0a66b635602222bc9089414b99f99081b956c92baf77699d283bcc88eb -EBUILD stfl-0.21.ebuild 1684 RMD160 c0f4d0a2b5e0172d23675a14378689eaae5b5261 SHA1 60faa40fffbf88eaa69269dfca0d564297140035 SHA256 f75cd451bdc4757d153838a8bfc1e9d45486af60adb099863b55fb6ede2048f8 +EBUILD stfl-0.21-r10.ebuild 1430 RMD160 fea1d6f6fa46a22bc55b9733abbafbcc6c25d7a0 SHA1 3d88b50977b5dae675701a449e165a9a237117e4 SHA256 453b24df20ebac02478d83432211abfe3e06a2109201fe36057c900ef4202252 diff --git a/dev-libs/stfl/stfl-0.21.ebuild b/dev-libs/stfl/stfl-0.21-r10.ebuild similarity index 72% rename from dev-libs/stfl/stfl-0.21.ebuild rename to dev-libs/stfl/stfl-0.21-r10.ebuild index fa0dbc0..c3bc90c 100644 --- a/dev-libs/stfl/stfl-0.21.ebuild +++ b/dev-libs/stfl/stfl-0.21-r10.ebuild @@ -1,5 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# Fixed to compile with python2. Python3 is crashing. gryf. # $Header: $ EAPI="2" @@ -11,9 +12,9 @@ SRC_URI="http://www.clifford.at/${PN}/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="~amd64 ~ppc x86" -IUSE="examples perl python ruby" +IUSE="perl python ruby" COMMON_DEPEND="sys-libs/ncurses[unicode] perl? ( dev-lang/perl ) @@ -26,6 +27,10 @@ DEPEND="${COMMON_DEPEND} RDEPEND="${COMMON_DEPEND}" +RESTRICT_PYTHON_ABIS="2.*" +PYTHON_DEPEND="2" + + src_prepare() { sed -i \ -e "s!-Os -ggdb!!" \ @@ -52,32 +57,13 @@ src_compile() { } src_install() { - python_version emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install || die "make install failed" - dodoc README - - local exdir="/usr/share/doc/${PF}/examples" - if use examples; then - insinto ${exdir} - doins example.{c,stfl} - insinto ${exdir}/python - doins python/example.py - if use perl; then - insinto ${exdir}/perl - doins perl5/example.pl - fi - if use ruby; then - insinto ${exdir}/ruby - doins ruby/example.rb - fi - fi - fixlocalpod } pkg_postinst() { - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/stfl.py + python_mod_optimize $(python_get_sitedir)/stfl.py } pkg_postrm() {