blob: 1024d3c00cbfee52eb1f71001561644a5fe1d532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2011 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.4 2011/01/27 15:11:22 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2:2.6"
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/gconf-python:2
dev-python/gnome-vfs-python:2
dev-python/libgnome-python:2
dev-python/pygobject:2
dev-python/pygtk:2
>=dev-python/python-bibtex-1.2.4"
RDEPEND="${DEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
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
}
|