Install Python modules into site-packages directories (bug #247558).
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sat, 27 Mar 2010 21:35:52 +0000 (21:35 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sat, 27 Mar 2010 21:35:52 +0000 (21:35 +0000)
Set Python 2 as active version.
Package-Manager: portage-15841-svn/cvs/Linux x86_64

app-office/pybliographer/ChangeLog
app-office/pybliographer/Manifest
app-office/pybliographer/pybliographer-1.2.12-r1.ebuild [new file with mode: 0644]

index 503106b1bfd3e0239fd82aca618bb95904760f30..43f464a5e49f11ba54dd6fb6a5cddd0c78b48081 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-office/pybliographer
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/pybliographer/ChangeLog,v 1.19 2009/03/07 16:31:50 patrick Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/pybliographer/ChangeLog,v 1.20 2010/03/27 21:35:52 arfrever Exp $
+
+*pybliographer-1.2.12-r1 (27 Mar 2010)
+
+  27 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +pybliographer-1.2.12-r1.ebuild:
+  Install Python modules into site-packages directories (bug #247558).
+  Set Python 2 as active version.
 
 *pybliographer-1.2.12 (07 Mar 2009)
 
index 342782f2de17669f34d8dfbbbae69bf63b367915..8c51ba833db11403b9e643454ec994f5a11eb8ef 100644 (file)
@@ -3,7 +3,8 @@ DIST pybliographer-1.2.11.tar.gz 872885 RMD160 f28aea36dbe5a5a3242aeb8a5dc315c5f
 DIST pybliographer-1.2.12.tar.gz 883969 RMD160 ffdbde0f9fd1ac4be749267fe6ed2589b95cd1ce SHA1 0315a7ef5a6a600abe8e22ca2dcdf96d66911c98 SHA256 9c330ef5e8cc019dff74a61dc32117140033fd99ac45d2061bf546400902bd02
 DIST pybliographer-1.2.9.tar.gz 879334 RMD160 1389df0cf0f059efb014125c321890410a6a0a6e SHA1 74b6cfffa2adb99a646a45b47f7834a3e6d77711 SHA256 53833a86662cd89e0beb6cb5a5335b3464bd8adaa1a9368f6867ae6ac3799051
 EBUILD pybliographer-1.2.11.ebuild 954 RMD160 6365f2fdfc635ba370b4b7a151b2a2a204e6cbc9 SHA1 bcf0bb44a0f5e84b074bc6495a4d829a391dcdb4 SHA256 9f270f216d49cbd0b0bef02153617a264d61be6619862e01982d2309dc703143
+EBUILD pybliographer-1.2.12-r1.ebuild 1671 RMD160 263b9fb60ba5db8553b50e5ca8ecebdd29d9083c SHA1 31abdad3bc7de2a525ca377c6b7922a5f7a5c63e SHA256 e9f4efca8b93745ddaf6741912da2d80ce099024298b8202d05ce86bce835737
 EBUILD pybliographer-1.2.12.ebuild 963 RMD160 c2603aeecced8b125606d57491d1d69f2ccba092 SHA1 1e9c86633b9c9f7b4f2f2569313b226a65d55508 SHA256 c52b0296a735d2463e715820a3a8160db4d8762d5b912d6dc73d56c05fa34117
 EBUILD pybliographer-1.2.9.ebuild 954 RMD160 990a38beab1c3bcd810c75f18ca2e7327c2cfd39 SHA1 1823b163feb89d6f27d892f95cd096946c3afdfc SHA256 e277e3cf4e7a83e7827ed4c1140fffbd8c77e724f627132ba2dd9b402154458f
-MISC ChangeLog 2826 RMD160 1052f05bda6115606c2865c5e557d58427565196 SHA1 a8c24cc90aff533c6220afbbd85bfd11a594cda7 SHA256 64acb8188c8e48ef616a27b7b4820d7c9fbe6d738f6397525d88769579722008
+MISC ChangeLog 3081 RMD160 5c2226d5933ff88c35f582841b1b4aee2a76db35 SHA1 4d5c4909ef7c36b1f6b8827d606f48110f8bf6e2 SHA256 68865125e44ef71db8fc9f76c59e9ac357cfd54906ed72a185d09139e6f7b198
 MISC metadata.xml 176 RMD160 1c2fd05b56e8a7b7069922fd6d48d5dc6be33846 SHA1 82a96ace08fd9ab9f0d56f26552fef5fe0d0a211 SHA256 349f5675f53c5b30c08da19b6f7a2d03957284ef6da92838c3fba8c3bdfedc6a
diff --git a/app-office/pybliographer/pybliographer-1.2.12-r1.ebuild b/app-office/pybliographer/pybliographer-1.2.12-r1.ebuild
new file mode 100644 (file)
index 0000000..8e13848
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/pybliographer/pybliographer-1.2.12-r1.ebuild,v 1.1 2010/03/27 21:35:52 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+
+inherit autotools gnome2 python
+
+DESCRIPTION="Pybliographer is a tool for working with bibliographic databases"
+HOMEPAGE="http://pybliographer.org/"
+SRC_URI="mirror://sourceforge/pybliographer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DOCS="AUTHORS ChangeLog* NEWS TODO README"
+
+DEPEND=">=app-text/recode-3.6-r1
+       app-text/scrollkeeper
+       >=dev-libs/glib-2
+       >=dev-python/gnome-python-2
+       >=dev-python/python-bibtex-1.2.4"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       python_set_active_version 2
+}
+
+src_prepare() {
+       gnome2_src_prepare
+
+       # Disable byte-compilation of Python modules.
+       sed -e "/import compileall/d" -i Makefile.am || die "sed failed"
+
+       # Install Python modules into site-packages directories.
+       find -name Makefile.am | xargs sed -e "/^pybdir[[:space:]]*=[[:space:]]*/s:\$(datadir):$(python_get_sitedir):" -i || die "sed failed"
+       sed "s:\${datadir}/@PACKAGE@:$(python_get_sitedir)/@PACKAGE@:" -i etc/installer.in || die "sed failed"
+       sed -e "s:gladedir = \$(datadir):gladedir = $(python_get_sitedir):" -i Pyblio/GnomeUI/glade/Makefile.am || die "sed failed"
+
+       eautoreconf
+}
+
+src_configure() {
+       gnome2_src_configure --disable-depchecks
+}
+
+src_install() {
+       gnome2_src_install
+
+       python_convert_shebangs -r 2 "${ED}usr/bin"
+}
+
+pkg_postinst() {
+       gnome2_pkg_postinst
+       python_mod_optimize pybliographer
+}
+
+pkg_postrm() {
+       gnome2_pkg_postrm
+       python_mod_cleanup pybliographer
+}