diff options
author | 2011-02-06 19:26:38 +0000 | |
---|---|---|
committer | 2011-02-06 19:26:38 +0000 | |
commit | 9ff5ab22e9f48179542e18df5f8000485f72c349 (patch) | |
tree | 171ade2df38c8a1fd5b14f41f5ed03532de8938a /sys-libs | |
parent | Remove sys-apps/lcdtest from portage, as per last-rites sent in Dec 2010. It ... (diff) | |
download | historical-9ff5ab22e9f48179542e18df5f8000485f72c349.tar.gz historical-9ff5ab22e9f48179542e18df5f8000485f72c349.tar.bz2 historical-9ff5ab22e9f48179542e18df5f8000485f72c349.zip |
Add "python" USE flag.
Package-Manager: portage-2.2.0_alpha20/cvs/Linux x86_64
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libselinux/ChangeLog | 6 | ||||
-rw-r--r-- | sys-libs/libselinux/Manifest | 4 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-2.0.94.ebuild | 48 |
3 files changed, 37 insertions, 21 deletions
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog index a72df2c4f333..85d4fa5da687 100644 --- a/sys-libs/libselinux/ChangeLog +++ b/sys-libs/libselinux/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-libs/libselinux # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.68 2011/02/05 22:07:40 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.69 2011/02/06 19:26:38 arfrever Exp $ + + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + libselinux-2.0.94.ebuild: + Add "python" USE flag. 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> libselinux-2.0.94.ebuild: diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest index df3865d2d118..8e912e2f72cc 100644 --- a/sys-libs/libselinux/Manifest +++ b/sys-libs/libselinux/Manifest @@ -5,6 +5,6 @@ DIST libselinux-2.0.85.tar.gz 175396 RMD160 ce27fc9c5baf23d9f1c2eeda24357abc4d61 DIST libselinux-2.0.94.tar.gz 205804 RMD160 38964fc55ac8d0eb0995b962a4d56e7765485396 SHA1 66764b19fe94cc8a1d5fceefde2383af0d554d76 SHA256 b8312852306650e9720de5a20fe7560d935d3c90ffedca1cac25bf3f283d8a36 EBUILD libselinux-2.0.71.ebuild 1720 RMD160 909dea1395089d168e6026294f05ca1a317fb618 SHA1 ceeeb20679fe9501afe1e6237eb7f17330273306 SHA256 aaaee7532de60599310f0622205af04efb3e424362e5462242498bda56e69f8d EBUILD libselinux-2.0.85.ebuild 1769 RMD160 abd36bae31043afba07c1548bcecb668c4e7c60f SHA1 8066bdcc799d989de8f47002bf9d7220fbb37d4b SHA256 a749d9182f72825f48defcc6ca8beea9910916bb8c172db8644be32002bc6106 -EBUILD libselinux-2.0.94.ebuild 1772 RMD160 3a2fe558a449b108cd5e001d996ccf6c06bb107f SHA1 10dedd1a64c7ad512409c493f9790899936a263b SHA256 027e42d0f8e540e74aefa48b0d6e3c15ccdebe02336a29ccb0fecba1089a3a68 -MISC ChangeLog 9726 RMD160 3e1a65dc5ca357d7ca56a7283df011904e4392bb SHA1 5b301cc9eaa98ea298a65fd803fdad9762604eb9 SHA256 e609297f1f09f48844a5386cc984e8e10a78379d6d4909f05bf4cf8529b18847 +EBUILD libselinux-2.0.94.ebuild 1921 RMD160 99d6f9173a907db638062755409ed54152a61cc6 SHA1 e195f7e49956c088c2ab7e47d8a4e73b0b0145b4 SHA256 0e323f07580028fadf7996f36cba32a6f41f0edb29434bf052585d129705ac79 +MISC ChangeLog 9853 RMD160 480db482ff33c77725a6b89d31264a6780adffd2 SHA1 81ca66ee04a096dd6efeb40d9186bcfd3a3229a7 SHA256 cb967b536e8a462264e468c48c93868a3496fb47b75ad33a7da879ec8c90b137 MISC metadata.xml 537 RMD160 6adcd5fc653db8ad7780299214875297beb9c931 SHA1 9eccef643426b27d5e8c445ab25113c1c44542b1 SHA256 e691ecff0c45ccbd6cf813fbd7f23e489dabad664e89e6b21b8c7c1785550f9e diff --git a/sys-libs/libselinux/libselinux-2.0.94.ebuild b/sys-libs/libselinux/libselinux-2.0.94.ebuild index 3e64ffb262db..1ae9c52bae81 100644 --- a/sys-libs/libselinux/libselinux-2.0.94.ebuild +++ b/sys-libs/libselinux/libselinux-2.0.94.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.3 2011/02/06 14:58:44 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.4 2011/02/06 19:26:38 arfrever Exp $ EAPI="2" -PYTHON_DEPEND="2" +PYTHON_DEPEND="python? 2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython" @@ -18,14 +18,18 @@ SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="ruby" - -DEPEND=">=sys-libs/libsepol-${SEPOL_VER} - dev-lang/swig - ruby? ( dev-lang/ruby )" +IUSE="python ruby" RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} ruby? ( dev-lang/ruby )" +DEPEND="${RDEPEND} + ruby? ( dev-lang/swig )" + +pkg_setup() { + if use python; then + python_pkg_setup + fi +} src_prepare() { # fix up paths for multilib @@ -38,11 +42,13 @@ src_prepare() { src_compile() { emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die - python_copy_sources src - building() { - emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap - } - python_execute_function -s --source-dir src building + if use python; then + python_copy_sources src + building() { + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap + } + python_execute_function -s --source-dir src building + fi if use ruby; then emake CC="$(tc-getCC)" rubywrap || die @@ -52,10 +58,12 @@ src_compile() { src_install() { emake DESTDIR="${D}" install || die - installation() { - emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap - } - python_execute_function -s --source-dir src installation + if use python; then + installation() { + emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap + } + python_execute_function -s --source-dir src installation + fi if use ruby; then emake DESTDIR="${D}" install-rubywrap || die @@ -63,9 +71,13 @@ src_install() { } pkg_postinst() { - python_mod_optimize selinux + if use python; then + python_mod_optimize selinux + fi } pkg_postrm() { - python_mod_cleanup selinux + if use python; then + python_mod_cleanup selinux + fi } |