1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-25 16:02:30 +01:00

Added forgotten acerhdf ebuild, fixed stfl to compile get in grip with py2 and

forget about py3
This commit is contained in:
root
2010-08-06 21:54:03 +02:00
parent a7e8ca8b63
commit 2061de50a2
3 changed files with 54 additions and 23 deletions

View File

@@ -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

View File

@@ -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() {