diff options
author | Sven Vermeulen <swift@gentoo.org> | 2013-07-07 18:00:57 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2013-07-07 18:00:57 +0000 |
commit | 64fb3e7d6dbb93a5074d82d20c25e2e7aa91f210 (patch) | |
tree | 05d8f5f0879010aa08e89ec9bacbccd2b7a1e7d5 /sys-libs/libselinux | |
parent | Remove old. (diff) | |
download | historical-64fb3e7d6dbb93a5074d82d20c25e2e7aa91f210.tar.gz historical-64fb3e7d6dbb93a5074d82d20c25e2e7aa91f210.tar.bz2 historical-64fb3e7d6dbb93a5074d82d20c25e2e7aa91f210.zip |
Summer cleaning
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Manifest-Sign-Key: 0xCDBA2FDB
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r-- | sys-libs/libselinux/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/libselinux/Manifest | 13 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-2.1.9-r1.ebuild | 85 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-2.1.9-r2.ebuild | 97 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-2.1.9-r3.ebuild | 92 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-2.1.9.ebuild | 84 |
6 files changed, 10 insertions, 368 deletions
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog index d287a51c40ef..723fea8bad51 100644 --- a/sys-libs/libselinux/ChangeLog +++ b/sys-libs/libselinux/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/libselinux # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.98 2013/06/23 08:30:57 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.99 2013/07/07 17:58:21 swift Exp $ + + 07 Jul 2013; Sven Vermeulen <swift@gentoo.org> -libselinux-2.1.9.ebuild, + -libselinux-2.1.9-r1.ebuild, -libselinux-2.1.9-r2.ebuild, + -libselinux-2.1.9-r3.ebuild: + Summer cleaning *libselinux-2.1.13-r3 (23 Jun 2013) diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest index d7575aa4ecdb..8a185f5fa643 100644 --- a/sys-libs/libselinux/Manifest +++ b/sys-libs/libselinux/Manifest @@ -6,7 +6,6 @@ AUX libselinux-2.1.9-mountsys.patch 957 SHA256 ab2c728464411d3d44d19afe79ebcfa0f AUX libselinux-2.1.9-support_ruby19.patch 635 SHA256 095b618bdbf786545d552fbc25ab91369d4b9dbc72764c3379706b65bb6f106c SHA512 bd1150a12097ae0dfd0c34b0e1742fef3af9a8ccff921a6a64f8abe24a681db9d5a8936ecc0eb973119c5d33712834a85998dd6a057aa0cbcebdc9455b6ac217 WHIRLPOOL 7c74fff046041fd99d4c6ca66401208752bf489415807dd02f4a7a699b12741a0a838a8de8ddbc72cff8c158efc0ed02e8f2555023d9398b9e411183babcd280 DIST libselinux-2.1.12.tar.gz 162162 SHA256 8dad879380e0ce1e4ab67195a08f6052c1396493bcb12fe92a033f49f7dbca9e SHA512 9bc18e321309d2eec84a219d5fd179d8e282eb65d6a89a5c93f5f9215fe10024205ca9672bb87006350e9549f14b925ad7d7d363c3fdfb4aa12cb428c8698d14 WHIRLPOOL a95f9b6bda72ff53d58c49d25411be9f3ee78c9e29f1ab63559009775cdedda952c2d01d651757db594aae9345b849c9008b271d5c560cec0ae0130be3fd3a9b DIST libselinux-2.1.13.tar.gz 168931 SHA256 57aad47c06b7ec18a76e8d9870539277a84cb40109cfdcf70ed3260bdb04447a SHA512 e0f922a7b71e944f7cde8cc99f74654aa6d1018ebe9b6186a4f9bc2bc1a06f515ea9d2ea8b9d7718bea481e9311a47943b0bf7cd1344a739ea960f62f9cd59a6 WHIRLPOOL 8b907756719fca6038a38ca54a9d3d7571e17abf142c54349c12e072c2e0ef7f2ce020f5e92ad647d8b822c634aad09c0ef7063675ed8b2f098f877ddfec9fc4 -DIST libselinux-2.1.9.tar.gz 155840 SHA256 749d4b39c80aa9df8247b8b3187ab72442c0dbad6e70bf312e25052bd4e7063f SHA512 5e4659360ea08928ea8bb8dee3ab64ffd3c76071d7c3a1009f1d69298c015a99ab1f1d1af2d1f8afdcdd01b8be309883a26d2c2ca05c1b528e08778f22a74c96 WHIRLPOOL 384b7c935cfd93aa2bca7ff68374925ecf9066c3b63b38325c4d53a8a20075fc003872f9f4838dc8c346edfaa5a334f49b36d4545855cfc6358410b153151926 DIST patchbundle-libselinux-2.1.12-r1.tar.gz 814 SHA256 d24a5eefb482a81f5986fdec0f3d74220fc071adbc3a3726657c4dd5b767b57e SHA512 e8c49441cdce2ed2fe11a4103c55c4f9d6eca2605aad4020cc64febfbe67f8f1205ef30329272c7624c57ab0beec98d96c338ed4a01ffef25caf5d126e210ee9 WHIRLPOOL 42f6a267a9c260fb6d70627136037db12c9d5003e5d23f2767c0c6bb808dde61c905c9088f68055a9acea9d288258b90b90b6caf97833ebc0c4052b45fd1d62b DIST patchbundle-libselinux-2.1.12-r2.tar.gz 1117 SHA256 10b7e3fcef7a98320a0db0b4c9b27236d0981fd99efa4069e2c4791e9156ea23 SHA512 cc79e5e89fb695ed97a80d65e26adf00ebf7ae2f0c9f0425d57c4aed76cd9adbb73f81ad39db2940bff44435b61d70678ca937a92202bf1523a5ab41e30d2669 WHIRLPOOL 4ba1f27fbb358bff5136921698b8495e6d3361e5957f95fc1766d7e170b1e546a8ec42c7d723cd54a85ab96f13ce1c6bf5b953ec39e48e15367a8d80b55bb629 DIST patchbundle-libselinux-2.1.12-r3.tar.gz 1350 SHA256 19f711f2697a5283b3f8e67f87186afefc49cf4ff999d46a868571d7a57f015e SHA512 701fe2ec7888765a8ad2adfea58b866ec8c6a57b41d4a492b3258cc32e03abe95edc995c1b34f62025ee94a36bbb7fa6e08f85188e433a3f6c47a306010d8c9c WHIRLPOOL beb84334266a1951bb7ead70023e8a6e046c1133a397f46640fe354977e74823f0030328231a1473221f58037fea7b8140fd89c0b2bffdda9e1a4666f4cb361e @@ -20,16 +19,12 @@ EBUILD libselinux-2.1.12.ebuild 2186 SHA256 8b794233d599ba5dad9c2b9e0a0589c4f4d5 EBUILD libselinux-2.1.13-r1.ebuild 3299 SHA256 c12efb1771f1a55efff50e0ccc29887111aae4f7e1dbb1d3150b94aeae423b64 SHA512 bb3aab781877770a901da936f3d83a230933ad947a2ef67ce39ee581a10dad5233094977f63faf5219964b16d16af8a8225fb5368e53099656e0051cd9ccfd8f WHIRLPOOL d5d2a5233e5ea94b3d741e0b112c110cfc88d87427f75cafdb5f583db8f467ddd11a15fe522b53ed0f44bcc3a1b5b353133caa21e3067034fa0ad9deea3c6f09 EBUILD libselinux-2.1.13-r2.ebuild 3297 SHA256 5ad7f7d5e2dfbf09cbf3bda0ab5cd79362a66f39e58aec6f101a9129fbb23440 SHA512 4697645ae6d07a5732304fdf6508e767ac1dfd4448abfbfb813c99b9dfc1375822e08c6259031de6490c08921fe6bb5d0234a3bb9659f6eb763f2a395b6aee53 WHIRLPOOL 63ca300ca18566752e06af6d9fb05501101d87cc197746d60d3863045cd4b9e201c4db7865e1174c862815bc1eb1b35b7d19cc8bae6ebd577e0b3b22f1dc7bb9 EBUILD libselinux-2.1.13-r3.ebuild 3299 SHA256 82325ab152c473ae4b546a457aef638b1830702ead9696f47571430237da7cba SHA512 53af7e037b45e77e9f6c70ec1c36b0f7521d53e0a50417e3bb8dc0ead176f3dcf7a6c03ac352bd6efc5cdfb8325e92aa4ea68475b07de90af7f55ff86f049731 WHIRLPOOL f7f1bba95a2e45c3a4b2b5f4883da9e6b3648795fc3babfff47e25e8d2c1a88dcf8c3c0324a45d85b515f598f9c1aff942811f8f6a229e4a6d07c10ab2a62611 -EBUILD libselinux-2.1.9-r1.ebuild 2086 SHA256 d3acd67150515bd6c1a6e0e410d0eb536e1e838d5aa40d1e4c86f8f434916ed2 SHA512 33e17abc071687622cb13dc30537c006568873fce5acc2bc4a60be3d832a53282077392ddb409f83cd4ada2d99a39db36efc1b3db8955c576da6b07cc43cab3d WHIRLPOOL f622eec132bbe1c14cacc0de7a71c7a894503ed8f224563ecf0a7e510fdcc98f5e0791dc3823a96d41e0aef4df4cbfb983889287a2a5492687d246fee3a073b2 -EBUILD libselinux-2.1.9-r2.ebuild 2174 SHA256 1f9df4509631e5aacdf39a5800d8dad0b55b341e00618687875d20299b68a289 SHA512 4c04b330b093483947e10adb39e05585dd76cbb7fb4b33b2c7cbdcca534b24a183cba5b2079072e553550e348079885af36bbf10f14d40e5265977d57e9bfafc WHIRLPOOL 6966bd39a3ab99467c3a7304dd3cf3330ba4c2524b9cc09189a08ac4454bacd2b9e6c0957ddde906002ea8cab57148f0e38db278f60c3cc6496b3365c06031de -EBUILD libselinux-2.1.9-r3.ebuild 2115 SHA256 b9aef387a97c8bce1918bf4bc9024843b64a7d25eeefd01b09990f42fbf11653 SHA512 63f20baa2e8bd887885a823a765b6d9a69500d7e9f753af5e313c574e3f635effd3503203788451cc580def6a9bf820362b3fe0cb39a2bbdf4f1ab626fe1e40d WHIRLPOOL 17fb4052ad817e927dbfa786cc232576650ebd789e26a35ca3deb9617d2abd21018691bee64c6173871d0f321b4820f0a746dc794028801568bb444a23ba9b92 -EBUILD libselinux-2.1.9.ebuild 2022 SHA256 a369e589e190d7a4e96adcac6288b72ae63e79a388fbaee095a3fcecbab47683 SHA512 de836c2fd0f0266886ba5b42c44eed79cfe1748f064409d9519aab6bae9896eb8427cefce6c3eee2523832f8bb9b3e7e027676da4be4efb068e3d7786e3242b2 WHIRLPOOL ae764c8c36b3b6756f4533c22f098cf74c2587372e8eb8cb2f8bd2741aa398aafbc7802d41c06984231b7f3a1d0076b6982aea5e728ccc3ea554234d513ef823 -MISC ChangeLog 13968 SHA256 41af82b93a1bc8282bfe6ceeff000e62ea0ba4f9af5d138c5798f40e9d56dbcc SHA512 82b1f6f72c810f559eaed2809ab82d542d6bcd5099a75fb05c55705024cd8e6840ab1a5eee573748aaca1a3c832434b882aa8ca3b9399018cba50fc9c310ad3a WHIRLPOOL 9c648fefb988aba9b4290076e7442571e5436d8ce12aeb858a2958240fe5baae0ed4d610b636b94388e7ee8fd7e8abc572ea2b3f613655603832a053fb0e35cd +MISC ChangeLog 14153 SHA256 1d14a124f34921a88c77048caf7aa26c182905d51d72571b94c4a99c5ea2f5a6 SHA512 ec700a9ade913a670e5632205bb8a2535348eb77071ad65ff389108a9e97e2d8c19b25bd26ada831dc02cc5784b777b32a230ea213071901450d4db581d310f8 WHIRLPOOL 7d007ccac03da3a3909ff007be8129093506bd9808ffe8fd26daf3c7ad83e8581dd3eb84985ab9a118f2d94f4d1eccb2b08778db58d62b0e7fdb418fdaa9b46a MISC metadata.xml 406 SHA256 934da6149d008c09754c0654dbea6c49da117923adc6fbf3fcabac58195b9c45 SHA512 5bd2b0637c4d77b6113540dff5c4253390b1fcc69b864aaf2196d2c6e8c2c10fbb06bfcb69ba73978e3a2c3ca60fc6e4eccc0ea02a818b34a66c137f993a33a0 WHIRLPOOL f34ec6f0a7f35b9c2a8f29688fc58b6228484e3ba0568d65b6d8e24cc91662b6704ea532e036cf0a6ceca83b4e118bb7c8a64c6c4ba45bd60e2fa2d73d2d2abd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iEYEAREIAAYFAlHGsdUACgkQXfqz7M26L9s7AQCfWeVxMOSk4yOLpVt9qQ66us9i -gvEAnRW/a+tH8MJ1OzDlEipGh/AdUVcQ -=IJmf +iEYEAREIAAYFAlHZrD4ACgkQXfqz7M26L9tR8wCgiVq+4UdbVxYAxEjt21s+CCil +BbgAoJODWlUtpSvwNcetYuhkPPJr65T1 +=cxnt -----END PGP SIGNATURE----- diff --git a/sys-libs/libselinux/libselinux-2.1.9-r1.ebuild b/sys-libs/libselinux/libselinux-2.1.9-r1.ebuild deleted file mode 100644 index 3cf17bfdf44f..000000000000 --- a/sys-libs/libselinux/libselinux-2.1.9-r1.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.9-r1.ebuild,v 1.4 2012/08/06 07:46:08 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? *" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="*-jython *-pypy-* 2.5 2.6 3.*" - -inherit multilib python toolchain-funcs eutils - -SEPOL_VER="2.1.4" - -DESCRIPTION="SELinux userland library" -HOMEPAGE="http://userspace.selinuxproject.org" -SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="python ruby" - -RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} - ruby? ( dev-lang/ruby )" -DEPEND="${RDEPEND} - ruby? ( dev-lang/swig ) - python? ( dev-lang/swig )" - -pkg_setup() { - if use python; then - python_pkg_setup - fi -} - -src_prepare() { - # fix up paths for multilib - sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ - || die "Fix for multilib LIBDIR failed." - sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ - || die "Fix for multilib SHLIBDIR failed." - epatch "${FILESDIR}/${P}-mountsys.patch" -} - -src_compile() { - emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die - - if use python; then - python_copy_sources src - building() { - emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -src_install() { - emake DESTDIR="${D}" install || die - - if use python; then - installation() { - emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -pkg_postinst() { - if use python; then - python_mod_optimize selinux - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup selinux - fi -} diff --git a/sys-libs/libselinux/libselinux-2.1.9-r2.ebuild b/sys-libs/libselinux/libselinux-2.1.9-r2.ebuild deleted file mode 100644 index 72b9438f4897..000000000000 --- a/sys-libs/libselinux/libselinux-2.1.9-r2.ebuild +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.9-r2.ebuild,v 1.3 2012/10/06 16:36:49 swift Exp $ - -EAPI="4" -PYTHON_DEPEND="python? *" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="2.5 *-jython *-pypy-*" -USE_RUBY="ruby18" -RUBY_OPTIONAL="yes" - -inherit multilib python toolchain-funcs eutils ruby-ng - -SEPOL_VER="2.1.4" - -DESCRIPTION="SELinux userland library" -HOMEPAGE="http://userspace.selinuxproject.org" -SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="python ruby" - -RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} - ruby? ( $(ruby_implementations_depend) )" -DEPEND="${RDEPEND} - ruby? ( dev-lang/swig ) - python? ( dev-lang/swig )" - -S="${WORKDIR}/${P}" - -pkg_setup() { - if use python; then - python_pkg_setup - fi - - if use ruby; then - ruby-ng_pkg_setup - fi -} - -src_unpack() { - default -} - -src_prepare() { - # fix up paths for multilib - sed -i \ - -e "/^LIBDIR/s/lib/$(get_libdir)/" \ - -e "/^SHLIBDIR/s/lib/$(get_libdir)/" \ - src/Makefile utils/Makefile || die - epatch "${FILESDIR}/${P}-mountsys.patch" -} - -src_compile() { - emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die - - if use python; then - python_copy_sources src - building() { - emake CC="$(tc-getCC)" PYINC="-I$(python_get_includedir)" PYTHONLIBDIR="$(python_get_library -l)" PYPREFIX="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 - fi -} - -src_install() { - emake DESTDIR="${D}" install || die - - if use python; then - installation() { - emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -pkg_postinst() { - if use python; then - python_mod_optimize selinux - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup selinux - fi -} diff --git a/sys-libs/libselinux/libselinux-2.1.9-r3.ebuild b/sys-libs/libselinux/libselinux-2.1.9-r3.ebuild deleted file mode 100644 index b95cffa02b7d..000000000000 --- a/sys-libs/libselinux/libselinux-2.1.9-r3.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.9-r3.ebuild,v 1.2 2012/11/17 16:53:48 swift Exp $ - -EAPI="4" -PYTHON_DEPEND="python? *" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="2.5 *-jython *-pypy-*" - -inherit multilib python toolchain-funcs eutils - -SEPOL_VER="2.1.4" - -DESCRIPTION="SELinux userland library" -HOMEPAGE="http://userspace.selinuxproject.org" -SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="python ruby" - -RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} - ruby? ( dev-lang/ruby )" -DEPEND="${RDEPEND} - ruby? ( dev-lang/swig ) - python? ( dev-lang/swig )" - -S="${WORKDIR}/${P}" - -pkg_setup() { - if use python; then - python_pkg_setup - fi -} - -src_unpack() { - default -} - -src_prepare() { - # fix up paths for multilib - sed -i \ - -e "/^LIBDIR/s/lib/$(get_libdir)/" \ - -e "/^SHLIBDIR/s/lib/$(get_libdir)/" \ - src/Makefile utils/Makefile || die - epatch "${FILESDIR}/${P}-mountsys.patch" - epatch "${FILESDIR}/${P}-support_ruby19.patch" -} - -src_compile() { - emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die - - if use python; then - python_copy_sources src - building() { - emake CC="$(tc-getCC)" PYINC="-I$(python_get_includedir)" PYTHONLIBDIR="$(python_get_library -l)" PYPREFIX="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 - fi -} - -src_install() { - emake DESTDIR="${D}" install || die - - if use python; then - installation() { - emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -pkg_postinst() { - if use python; then - python_mod_optimize selinux - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup selinux - fi -} diff --git a/sys-libs/libselinux/libselinux-2.1.9.ebuild b/sys-libs/libselinux/libselinux-2.1.9.ebuild deleted file mode 100644 index f400ceac3c12..000000000000 --- a/sys-libs/libselinux/libselinux-2.1.9.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.9.ebuild,v 1.3 2012/06/26 05:03:37 floppym Exp $ - -EAPI="2" -PYTHON_DEPEND="python? *" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="*-jython *-pypy-*" - -inherit multilib python toolchain-funcs - -SEPOL_VER="2.1.4" - -DESCRIPTION="SELinux userland library" -HOMEPAGE="http://userspace.selinuxproject.org" -SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="python ruby" - -RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} - ruby? ( dev-lang/ruby )" -DEPEND="${RDEPEND} - ruby? ( dev-lang/swig ) - python? ( dev-lang/swig )" - -pkg_setup() { - if use python; then - python_pkg_setup - fi -} - -src_prepare() { - # fix up paths for multilib - sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ - || die "Fix for multilib LIBDIR failed." - sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ - || die "Fix for multilib SHLIBDIR failed." -} - -src_compile() { - emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die - - if use python; then - python_copy_sources src - building() { - emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -src_install() { - emake DESTDIR="${D}" install || die - - if use python; then - installation() { - emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="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 - fi -} - -pkg_postinst() { - if use python; then - python_mod_optimize selinux - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup selinux - fi -} |