diff options
author | 2011-03-05 17:14:21 +0000 | |
---|---|---|
committer | 2011-03-05 17:14:21 +0000 | |
commit | d2d1875d241666ba52cfa09297227532fff2fa2f (patch) | |
tree | 52d1187d71691a817eb5e2cd0cc2032b485c6c65 /sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild | |
parent | ppc/ppc64 stable wrt #343883 (diff) | |
download | gentoo-2-d2d1875d241666ba52cfa09297227532fff2fa2f.tar.gz gentoo-2-d2d1875d241666ba52cfa09297227532fff2fa2f.tar.bz2 gentoo-2-d2d1875d241666ba52cfa09297227532fff2fa2f.zip |
Set SUPPORT_PYTHON_ABIS (bug #316929).
(Portage version: 2.2.0_alpha26_p6/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild')
-rw-r--r-- | sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild b/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild index 2f7aac56a7f8..aaca237067fa 100644 --- a/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild +++ b/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild @@ -1,6 +1,11 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild,v 1.2 2009/06/10 20:26:41 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild,v 1.3 2011/03/05 17:14:21 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" inherit flag-o-matic toolchain-funcs distutils @@ -14,6 +19,11 @@ KEYWORDS="amd64 ~arm x86" IUSE="python" DEPEND="!<sys-apps/lm_sensors-3" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python_pkg_setup +} src_compile() { emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" || die @@ -41,3 +51,11 @@ src_install() { distutils_src_install fi } + +pkg_postinst() { + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} |