summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-03 01:22:50 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-03 01:22:50 +0000
commit037ce5e7028086268caf23d4d361da1615a36f87 (patch)
tree5d151d0508858859cfc6268a2c34217fb0f0d702 /dev-python
parentNew library, bug 118656. Imported with cleanups from the sci overlay. (diff)
downloadhistorical-037ce5e7028086268caf23d4d361da1615a36f87.tar.gz
historical-037ce5e7028086268caf23d4d361da1615a36f87.tar.bz2
historical-037ce5e7028086268caf23d4d361da1615a36f87.zip
Set SUPPORT_PYTHON_ABIS, call python_mod_optimize() and python_mod_cleanup() (bug #345525).
Package-Manager: portage-2.2.0_alpha26_p5/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyparted/ChangeLog7
-rw-r--r--dev-python/pyparted/Manifest6
-rw-r--r--dev-python/pyparted/pyparted-3.4.ebuild36
-rw-r--r--dev-python/pyparted/pyparted-3.5.ebuild34
4 files changed, 58 insertions, 25 deletions
diff --git a/dev-python/pyparted/ChangeLog b/dev-python/pyparted/ChangeLog
index e15d168b1b87..a942e44060ad 100644
--- a/dev-python/pyparted/ChangeLog
+++ b/dev-python/pyparted/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pyparted
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/ChangeLog,v 1.58 2011/01/27 12:21:23 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/ChangeLog,v 1.59 2011/03/03 01:22:50 arfrever Exp $
+
+ 03 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pyparted-3.4.ebuild, pyparted-3.5.ebuild:
+ Set SUPPORT_PYTHON_ABIS, call python_mod_optimize() and python_mod_cleanup()
+ (bug #345525).
*pyparted-3.5 (27 Jan 2011)
diff --git a/dev-python/pyparted/Manifest b/dev-python/pyparted/Manifest
index da46802aaf94..d84bc000f28b 100644
--- a/dev-python/pyparted/Manifest
+++ b/dev-python/pyparted/Manifest
@@ -1,6 +1,6 @@
DIST pyparted-3.4.tar.gz 495854 RMD160 214a9efec21482fe761ae2eb3b3745935849f4e9 SHA1 8c97f5870313bb25f4e17a914fd6d59c4d338c51 SHA256 5cad4d5c72e3565ed7e0b7f08e4f2c1e17853b4ca2cff1a984cd00b20df3ce75
DIST pyparted-3.5.tar.gz 503126 RMD160 42d743f2fd48d03ddca76356338d1898c01cd0b5 SHA1 5d59b7ecfd031212428e7b027a6a45a11140e778 SHA256 14339878139d09342bbc86e7a9379e2dd70dd3cc6229f8f2db046ad59a397205
-EBUILD pyparted-3.4.ebuild 915 RMD160 a39ee1f6a247e8794534d8566b1072a54921e291 SHA1 922d17a82ad3211251eea1951614c3eae9c0c211 SHA256 15676df64c4162db278cbc67aea60b05114a304d2d21b840b6153eb0666231c6
-EBUILD pyparted-3.5.ebuild 917 RMD160 473411f95dcc4e805dd1cf078c04c48d3919911d SHA1 f87d6834ea3c2f26e140d16c50f71f6e40bcbbf6 SHA256 2358b2962601aa935377bfa6a6f6c18e1a95c452d6b146a61499fccf0d8ee14a
-MISC ChangeLog 7693 RMD160 89fed8b9a5aeaa90e87043bf591dd1a1937a977d SHA1 a9ca99930f9cab4b4dd9e437cba23975aac63ede SHA256 1d64127610bacdd5486978bde6c7a576337be1d80319934cff73644dccf79798
+EBUILD pyparted-3.4.ebuild 1126 RMD160 5c8a6484d46b23835819fab873b902069073f0e5 SHA1 e8786c25e6e34ded1a2387dbf1093f8386ef00b3 SHA256 c7e89175f720ea8b61dbcb2d2d9fa19ed5b28f977903506a891aa6defa4d295d
+EBUILD pyparted-3.5.ebuild 1132 RMD160 13c24ba3a8b9c47c24ea58ae0cdd0b1b7778135e SHA1 6254cd8c17e8dc7fc4c32b3759cbb2174468ed73 SHA256 3732f717922811ccfeaf835707f3e3d049673f6ee7b2fbf6b299420929127059
+MISC ChangeLog 7912 RMD160 3515bbbc5bfb2e86710b09b3b6e4a2e70c678a93 SHA1 648d70367e6eeb0f4973c553bb706ac06babac90 SHA256 85db4292eb61c63c48308882a3d8d69f7bfcb099acefb5bd577dd79ec621db38
MISC metadata.xml 159 RMD160 8db5ed254a6b9baf8f53368da9e71c5532a46073 SHA1 1e72098aafb1fa729eba6fc8357c7e732eb79dee SHA256 b6e17484225400d76c65d178bf5a10dc0a8da7f345993c2acc63d1093a77c90d
diff --git a/dev-python/pyparted/pyparted-3.4.ebuild b/dev-python/pyparted/pyparted-3.4.ebuild
index 9b86ddf9b054..912d9ef79d29 100644
--- a/dev-python/pyparted/pyparted-3.4.ebuild
+++ b/dev-python/pyparted/pyparted-3.4.ebuild
@@ -1,35 +1,49 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.4.ebuild,v 1.11 2010/10/29 18:46:37 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.4.ebuild,v 1.12 2011/03/03 01:22:50 arfrever Exp $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+PYTHON_EXPORT_PHASE_FUNCTIONS="1"
-inherit autotools multilib python
+inherit autotools python
DESCRIPTION="Python bindings for sys-block/parted"
HOMEPAGE="https://fedorahosted.org/pyparted/"
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc64 sparc x86"
IUSE=""
-DEPEND="
- sys-libs/ncurses
- >=dev-lang/python-2.4
+DEPEND="dev-python/decorator
>=sys-block/parted-2.3
- dev-python/decorator
-"
+ sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-avoid-version/& -shared /' src/Makefile.am || die "sed failed"
eautoreconf
+
+ # Disable byte-compilation of Python modules.
+ echo "#!/bin/sh" > py-compile
+
+ python_src_prepare
}
src_install() {
- python_need_rebuild
- emake DESTDIR="${D}" install || die "emake install failed"
+ python_src_install
python_clean_installation_image
dodoc ChangeLog NEWS README TODO
}
+
+pkg_postinst() {
+ python_mod_optimize parted
+}
+
+pkg_postrm() {
+ python_mod_cleanup parted
+}
diff --git a/dev-python/pyparted/pyparted-3.5.ebuild b/dev-python/pyparted/pyparted-3.5.ebuild
index bebf72088615..6d344d69d2db 100644
--- a/dev-python/pyparted/pyparted-3.5.ebuild
+++ b/dev-python/pyparted/pyparted-3.5.ebuild
@@ -1,35 +1,49 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.5.ebuild,v 1.1 2011/01/27 12:21:23 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.5.ebuild,v 1.2 2011/03/03 01:22:50 arfrever Exp $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+PYTHON_EXPORT_PHASE_FUNCTIONS="1"
-inherit autotools multilib python
+inherit autotools python
DESCRIPTION="Python bindings for sys-block/parted"
HOMEPAGE="https://fedorahosted.org/pyparted/"
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
-DEPEND="
- sys-libs/ncurses
- >=dev-lang/python-2.4
+DEPEND="dev-python/decorator
>=sys-block/parted-2.3
- dev-python/decorator
-"
+ sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-avoid-version/& -shared /' src/Makefile.am || die "sed failed"
eautoreconf
+
+ # Disable byte-compilation of Python modules.
+ echo "#!/bin/sh" > py-compile
+
+ python_src_prepare
}
src_install() {
- python_need_rebuild
- emake DESTDIR="${D}" install || die "emake install failed"
+ python_src_install
python_clean_installation_image
dodoc ChangeLog NEWS README TODO
}
+
+pkg_postinst() {
+ python_mod_optimize parted
+}
+
+pkg_postrm() {
+ python_mod_cleanup parted
+}