summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-06 15:20:59 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-06 15:20:59 +0000
commit4770ed5e62021cb9620f9cc82d4bfbb5b945e422 (patch)
treec5185a1068b31a0ca03c050c0397ffeeb5b8f178 /dev-python/pythong
parentwhitespace (diff)
downloadgentoo-2-4770ed5e62021cb9620f9cc82d4bfbb5b945e422.tar.gz
gentoo-2-4770ed5e62021cb9620f9cc82d4bfbb5b945e422.tar.bz2
gentoo-2-4770ed5e62021cb9620f9cc82d4bfbb5b945e422.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pythong')
-rw-r--r--dev-python/pythong/ChangeLog8
-rw-r--r--dev-python/pythong/pythong-2.1.5-r1.ebuild73
2 files changed, 47 insertions, 34 deletions
diff --git a/dev-python/pythong/ChangeLog b/dev-python/pythong/ChangeLog
index 964617b19d8b..3b115bf56e42 100644
--- a/dev-python/pythong/ChangeLog
+++ b/dev-python/pythong/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pythong
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pythong/ChangeLog,v 1.19 2009/02/03 22:52:28 patrick Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pythong/ChangeLog,v 1.20 2010/04/06 15:20:59 arfrever Exp $
+
+ 06 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pythong-2.1.5-r1.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
03 Feb 2009; Patrick Lauer <patrick@gentoo.org> pythong-2.1.5-r1.ebuild:
Changing doins to -r because these are directories. Fixes #249379
diff --git a/dev-python/pythong/pythong-2.1.5-r1.ebuild b/dev-python/pythong/pythong-2.1.5-r1.ebuild
index 0d0ae58e0cc2..a796bba58d89 100644
--- a/dev-python/pythong/pythong-2.1.5-r1.ebuild
+++ b/dev-python/pythong/pythong-2.1.5-r1.ebuild
@@ -1,9 +1,13 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pythong/pythong-2.1.5-r1.ebuild,v 1.2 2009/02/03 22:52:28 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pythong/pythong-2.1.5-r1.ebuild,v 1.3 2010/04/06 15:20:59 arfrever Exp $
-EAPI="2"
-inherit python distutils multilib
+EAPI="3"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="tk"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit python
MY_PN="pythonG"
MY_PV=${PV/_/-}
@@ -19,49 +23,54 @@ KEYWORDS="~amd64 ~ia64 ~x86"
SLOT="0"
IUSE="doc"
-S=${WORKDIR}/${MY_PN}-${MY_PV}
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
-RDEPEND=">=dev-lang/python-2.2.2[tk]
- >=dev-lang/tk-8.3.4
+RDEPEND=">=dev-lang/tk-8.3.4
>=dev-python/pmw-1.2"
-
-DEPEND="${RDEPEND}
- >=sys-apps/sed-4"
-
-PYTHON_MODNAME="libpythong"
+DEPEND="${RDEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
- default
-
- python_version
-
- sed -i \
- -e "s:^\(fullpath = \).*:\1'/usr/$(get_libdir)/python${PYVER}/site-packages/':" \
- -e "/^url_docFuncPG/s:'+fullpath+':/usr/share/doc/${PF}:" \
- pythong.py || die "sed in pythong.py failed"
-}
-
-src_compile() {
- :
+ python_copy_sources
+
+ preparation() {
+ sed -i \
+ -e "s:^\(fullpath = \).*:\1'$(python_get_sitedir)':" \
+ -e "/^url_docFuncPG/s:'+fullpath+':/usr/share/doc/${PF}:" \
+ pythong.py || die "sed in pythong.py failed"
+ }
+ python_execute_function -s preparation
}
src_install() {
- python_version
+ installation() {
+ insinto $(python_get_sitedir)
+ doins modulepythong.py || die "doins failed"
+ doins -r libpythong || die "doins failed"
- insinto $(python_get_sitedir)
- doins modulepythong.py || die "doins failed"
- doins -r libpythong || die "doins failed"
+ exeinto /usr/bin
+ newexe pythong.py pythong.py-${PYTHON_ABI} || die "doexe failed"
+ python_convert_shebangs $(python_get_version) "${ED}usr/bin/pythong.py-${PYTHON_ABI}"
+ }
+ python_execute_function -s installation
- exeinto /usr/bin
- doexe pythong.py || die "doexe failed"
+ python_generate_wrapper_scripts "${ED}usr/bin/pythong.py"
dodoc leeme.txt || die "dodoc failed"
insinto /usr/share/doc/${PF}
doins -r {LICENCIA,MANUAL,demos} || die "doins failed"
- rm -f "${D}"/usr/share/doc/"${PF}"/demos/modulepythong.py
+ rm -fr "${ED}/usr/share/doc/${PF}/demos/modulepythong.py"
if use doc; then
insinto /usr/share/doc/${PF}
- doins "${DISTDIR}"/python.pdf
+ doins "${DISTDIR}/python.pdf"
fi
}
+
+pkg_postinst() {
+ python_mod_optimize libpythong
+}
+
+pkg_postrm() {
+ python_mod_cleanup libpythong
+}