From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q4hUU-0000NH-IS for garchives@archives.gentoo.org; Tue, 29 Mar 2011 22:34:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEEDB1C012; Tue, 29 Mar 2011 22:34:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 99CAB1C012 for ; Tue, 29 Mar 2011 22:34:15 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CAC631B402A for ; Tue, 29 Mar 2011 22:34:13 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2244) id 58B5520054; Tue, 29 Mar 2011 22:34:12 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, arfrever@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libprelude: libprelude-1.0.0-r1.ebuild ChangeLog X-VCS-Repository: gentoo-x86 X-VCS-Files: libprelude-1.0.0-r1.ebuild ChangeLog X-VCS-Directories: dev-libs/libprelude X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis Content-Type: text/plain; charset=utf8 Message-Id: <20110329223412.58B5520054@flycatcher.gentoo.org> Date: Tue, 29 Mar 2011 22:34:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 32b1bbe54f859aa451fc454cbbe1a2fa arfrever 11/03/29 22:34:12 Modified: libprelude-1.0.0-r1.ebuild ChangeLog Log: Set SUPPORT_PYTHON_ABIS (bug #361177). =20 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64) Revision Changes Path 1.3 dev-libs/libprelude/libprelude-1.0.0-r1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/libprelude-1.0.0-r1.ebuild?rev=3D1.3&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/libprelude-1.0.0-r1.ebuild?rev=3D1.3&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/libprelude-1.0.0-r1.ebuild?r1=3D1.2&r2=3D1.3 Index: libprelude-1.0.0-r1.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1= .ebuild,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- libprelude-1.0.0-r1.ebuild 6 Jan 2011 23:45:29 -0000 1.2 +++ libprelude-1.0.0-r1.ebuild 29 Mar 2011 22:34:12 -0000 1.3 @@ -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 $ =20 -EAPI=3D2 +EAPI=3D"3" +PYTHON_DEPEND=3D"python? 2" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"3.* *-jython" =20 -inherit libtool perl-module flag-o-matic eutils +inherit autotools distutils eutils flag-o-matic perl-module =20 DESCRIPTION=3D"Prelude-IDS Framework Library" HOMEPAGE=3D"http://www.prelude-technologies.com" @@ -21,8 +24,27 @@ DEPEND=3D"${RDEPEND} sys-devel/flex" =20 +pkg_setup() { + if use python; then + python_pkg_setup + + if use easy-bindings; then + PYTHON_DIRS=3D"bindings/low-level/python bindings/python" + PYTHON_MODNAME=3D"prelude.py PreludeEasy.py" + else + PYTHON_DIRS=3D"bindings/low-level/python" + PYTHON_MODNAME=3D"prelude.py" + fi + fi +} + src_prepare() { epatch "${FILESDIR}"/${P}-libtool.patch + + # Python bindings are built/installed manually. + sed -e "/^SUBDIRS =3D/s/ python//" -i bindings/low-level/Makefile.am bi= ndings/Makefile.am || die "sed failed" + + eautoreconf } =20 src_configure() { @@ -37,12 +59,43 @@ =20 src_compile() { emake OTHERLDFLAGS=3D"${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 } =20 src_install() { emake DESTDIR=3D"${D}" INSTALLDIRS=3Dvendor install || die "make instal= l 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 } 1.74 dev-libs/libprelude/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/ChangeLog?rev=3D1.74&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/ChangeLog?rev=3D1.74&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libprelud= e/ChangeLog?r1=3D1.73&r2=3D1.74 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-libs/libprelude/ChangeLog,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- ChangeLog 10 Jan 2011 20:53:36 -0000 1.73 +++ ChangeLog 29 Mar 2011 22:34:12 -0000 1.74 @@ -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 + libprelude-1.0.0-r1.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #361177). =20 10 Jan 2011; Thomas Kahle libprelude-0.9.15.2.ebuil= d, libprelude-0.9.22.ebuild: