diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-29 22:34:12 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-29 22:34:12 +0000 |
commit | 8d8d90f70c2f7460b288f2e4efd8405af809c40b (patch) | |
tree | 08426ec1d326ab9765398842ad3009d64465dc38 /dev-libs/libprelude | |
parent | add more constraints to init script (diff) | |
download | historical-8d8d90f70c2f7460b288f2e4efd8405af809c40b.tar.gz historical-8d8d90f70c2f7460b288f2e4efd8405af809c40b.tar.bz2 historical-8d8d90f70c2f7460b288f2e4efd8405af809c40b.zip |
Set SUPPORT_PYTHON_ABIS (bug #361177).
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/libprelude')
-rw-r--r-- | dev-libs/libprelude/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/libprelude/Manifest | 14 | ||||
-rw-r--r-- | dev-libs/libprelude/libprelude-1.0.0-r1.ebuild | 61 |
3 files changed, 64 insertions, 17 deletions
diff --git a/dev-libs/libprelude/ChangeLog b/dev-libs/libprelude/ChangeLog index 2f06ff526cef..08b936c7c3bb 100644 --- a/dev-libs/libprelude/ChangeLog +++ b/dev-libs/libprelude/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/libprelude # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/ChangeLog,v 1.73 2011/01/10 20:53:36 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/ChangeLog,v 1.74 2011/03/29 22:34:12 arfrever Exp $ + + 29 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + libprelude-1.0.0-r1.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #361177). 10 Jan 2011; Thomas Kahle <tomka@gentoo.org> libprelude-0.9.15.2.ebuild, libprelude-0.9.22.ebuild: diff --git a/dev-libs/libprelude/Manifest b/dev-libs/libprelude/Manifest index 5ef037bb2af9..6ece59237e74 100644 --- a/dev-libs/libprelude/Manifest +++ b/dev-libs/libprelude/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX libprelude-1.0.0-libtool.patch 889 RMD160 dae26caa019d62e53549d997b1b5283d266afa81 SHA1 a5b787145bb2fc8272ca20057160e6315e8ac3c6 SHA256 a144741aea01b7181f2e0c03e8443a35e8fac04398e9353a96ec5274273498e9 DIST libprelude-0.9.15.2.tar.gz 1949284 RMD160 c69e21175d60fd6c858935b927d85e6043cbb486 SHA1 ee11319f2f526318642900fa27da0c3e4bbdf9bc SHA256 c8013b9f9b572d8301a2c839abd541b4ed00996ed6c0953a5a3ce7a585bf5b4f DIST libprelude-0.9.22.tar.gz 2673781 RMD160 0c40a840e295b27f6e6c2dbac7b6bcf7c0194195 SHA1 66c3e579dae3b78a3c536de968dfd2cd786521fa SHA256 fab19e886ef5d7da90e275332be72ad2f3543fffb6656d8babeef90a65e43cd6 @@ -9,13 +6,6 @@ DIST libprelude-1.0.0.tar.gz 2796859 RMD160 fcdb88ee27944d7b5abeec90524f995304f3 EBUILD libprelude-0.9.15.2.ebuild 1234 RMD160 88d60fe42854d57e47c9f9bd2a284846e894f7f8 SHA1 ba45f0e55b072d95e1433539ed7a05618781d266 SHA256 478e18c1a2570a01534ce4931bedc508a99f0a527f511c2d4b313b218935efa1 EBUILD libprelude-0.9.22.ebuild 1264 RMD160 264434b35902640db4e7069362236b07917fe659 SHA1 18d286d67d31f209054a05c5ac17cc02c2e8447e SHA256 9d4263312f127ea746eb2e0fda3cf1d3957f9ca89598ff2a337549afa4061838 EBUILD libprelude-0.9.24.ebuild 1318 RMD160 234be1b70d5cd0e817ecb8ab96b975053c057dba SHA1 68eb26e1057830b14f2b12c7afd8154d24b3d8c9 SHA256 a039673b7d78c3b66b04d00d2d5a1d621c01ea15c34c979f24767c13dcc825a7 -EBUILD libprelude-1.0.0-r1.ebuild 1128 RMD160 af0e80c14d36a0289dd7d2308fd976650cf2bc63 SHA1 2f51334fed8e2d90e6cb3a4c12b9e5a8f7697b55 SHA256 24ddacab1862ec719ee73f188c58b89a9373045891c2abd1f52abe6cad516eee -MISC ChangeLog 11497 RMD160 859dc2b9e46305bc3ec37ea377a9320a1ebcce7b SHA1 899bd3db4cb31833bb8d190cffbd587f1bb59898 SHA256 fc5b8c5f20a11e8dddc09b4b3de92eeeefaf2882dc94252cc574b76ab4f05f12 +EBUILD libprelude-1.0.0-r1.ebuild 2128 RMD160 35d8ccd42481afe5a26281eaa18068875d53bbab SHA1 4cffe8368fe7c17840356a16ad948fa86c0572fe SHA256 e1cfef95eb7d17a45d4abab81005f190b8d7d7c2c54b74ba1ad3beb17e8dbfb4 +MISC ChangeLog 11645 RMD160 e85680c07a2c6b428f991a9c2e4713523bd04b43 SHA1 246c1d94df30880d9b8e9e1b76bf9a18d94aabf8 SHA256 3aa98f30f3e136f690d6e6025c1fc8f3c454caf52b6757a74f5d3336debd15a4 MISC metadata.xml 406 RMD160 dd0a980aca9d723f053f79fcf904e13a784c0829 SHA1 b07c70583abb92b2937542a943d58d823e5a38a6 SHA256 32f4d4288b24c47f8c7b4b6b75ae2319f27df97c6f9beff6cd649d4b3b89cade ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) - -iEYEARECAAYFAk0rcVkACgkQnZsgo/h8kNY1aQCgqtkV4ku7q9dAVJhAFa10Fpje -xkUAnjW3XMVXnDdISJMqignozdSRD6Bi -=ag9L ------END PGP SIGNATURE----- diff --git a/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild b/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild index 566ed0d6642f..addfe065fa5b 100644 --- a/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild +++ b/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild @@ -1,10 +1,13 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild,v 1.2 2011/01/06 23:45:29 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild,v 1.3 2011/03/29 22:34:12 arfrever Exp $ -EAPI=2 +EAPI="3" +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" -inherit libtool perl-module flag-o-matic eutils +inherit autotools distutils eutils flag-o-matic perl-module DESCRIPTION="Prelude-IDS Framework Library" HOMEPAGE="http://www.prelude-technologies.com" @@ -21,8 +24,27 @@ RDEPEND=">=net-libs/gnutls-1.0.17 DEPEND="${RDEPEND} sys-devel/flex" +pkg_setup() { + if use python; then + python_pkg_setup + + if use easy-bindings; then + PYTHON_DIRS="bindings/low-level/python bindings/python" + PYTHON_MODNAME="prelude.py PreludeEasy.py" + else + PYTHON_DIRS="bindings/low-level/python" + PYTHON_MODNAME="prelude.py" + fi + fi +} + src_prepare() { epatch "${FILESDIR}"/${P}-libtool.patch + + # Python bindings are built/installed manually. + sed -e "/^SUBDIRS =/s/ python//" -i bindings/low-level/Makefile.am bindings/Makefile.am || die "sed failed" + + eautoreconf } src_configure() { @@ -37,12 +59,43 @@ src_configure() { src_compile() { emake OTHERLDFLAGS="${LDFLAGS}" || die "emake failed" + + if use python; then + local dir + for dir in ${PYTHON_DIRS}; do + pushd "${dir}" > /dev/null + distutils_src_compile + popd > /dev/null + done + fi } src_install() { emake DESTDIR="${D}" INSTALLDIRS=vendor install || die "make install failed" - if use perl ; then + + if use perl; then perl_delete_localpod perl_delete_packlist fi + + if use python; then + local dir + for dir in ${PYTHON_DIRS}; do + pushd "${dir}" > /dev/null + distutils_src_install + popd > /dev/null + done + fi +} + +pkg_postinst() { + if use python; then + distutils_pkg_postinst + fi +} + +pkg_postrm() { + if use python; then + distutils_pkg_postrm + fi } |