mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-01-08 14:54:14 +01:00
Added forgotten acerhdf ebuild, fixed stfl to compile get in grip with py2 and
forget about py3
This commit is contained in:
45
app-laptop/acerhdf/acerhdf-0.5.24.ebuild
Normal file
45
app-laptop/acerhdf/acerhdf-0.5.24.ebuild
Normal file
@@ -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"
|
||||||
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
AUX stfl-0.21-multilib.patch 1936 RMD160 fce9de74ac0cab5abe0e9b2d53c82cad602a5be1 SHA1 1ae240823806120b94c5cda5ba96b57e289bd730 SHA256 905260dbd13b4ce374d95ced9ea5d443fc44de0f14c0f1140fc8c7cead6c1f06
|
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
|
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
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
# Copyright 1999-2009 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Fixed to compile with python2. Python3 is crashing. gryf.
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI="2"
|
EAPI="2"
|
||||||
@@ -11,9 +12,9 @@ SRC_URI="http://www.clifford.at/${PN}/${P}.tar.gz"
|
|||||||
|
|
||||||
LICENSE="LGPL-3"
|
LICENSE="LGPL-3"
|
||||||
SLOT="0"
|
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]
|
COMMON_DEPEND="sys-libs/ncurses[unicode]
|
||||||
perl? ( dev-lang/perl )
|
perl? ( dev-lang/perl )
|
||||||
@@ -26,6 +27,10 @@ DEPEND="${COMMON_DEPEND}
|
|||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
RDEPEND="${COMMON_DEPEND}"
|
||||||
|
|
||||||
|
RESTRICT_PYTHON_ABIS="2.*"
|
||||||
|
PYTHON_DEPEND="2"
|
||||||
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s!-Os -ggdb!!" \
|
-e "s!-Os -ggdb!!" \
|
||||||
@@ -52,32 +57,13 @@ src_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
python_version
|
|
||||||
emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install || die "make install failed"
|
emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install || die "make install failed"
|
||||||
|
|
||||||
dodoc README
|
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
|
fixlocalpod
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/stfl.py
|
python_mod_optimize $(python_get_sitedir)/stfl.py
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
Reference in New Issue
Block a user