blob: 3438ebfcc6ceaa9ae4c07c03c6431bad66face84 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/gramps-3.1.0.ebuild,v 1.2 2009/03/08 20:51:34 fauli Exp $
EAPI=2
NEED_PYTHON="2.5"
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit autotools eutils gnome2 python
DESCRIPTION="Genealogical Research and Analysis Management Programming System"
HOMEPAGE="http://www.gramps-project.org/"
SRC_URI="mirror://sourceforge/gramps/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome reports spell"
RDEPEND=">=dev-python/pygtk-2.10.0
x11-misc/xdg-utils
gnome-base/librsvg:2
gnome? ( || ( dev-python/libgnome-python
>=dev-python/gnome-python-2.22.0
>=dev-python/gnome-python-desktop-2.6 ) )
spell? ( ||
( dev-python/gtkspell-python dev-python/gnome-python-extras )
dev-python/pyenchant )
reports? ( media-gfx/graphviz )"
DEPEND="${RDEPEND}
|| ( dev-lang/python[sqlite] dev-lang/python[berkdb] )
sys-devel/gettext
virtual/libiconv
dev-util/pkgconfig"
DOCS="NEWS README TODO"
pkg_setup() {
G2CONF="${G2CONF} --disable-mime-install"
}
src_unpack() {
gnome2_src_unpack
eautoreconf
# This is for bug 215944, so .pyo/.pyc files don't get into the
# file system
mv "${S}"/py-compile "${S}"/py-compile.orig
ln -s $(type -P true) "${S}"/py-compile
}
src_install() {
python_need_rebuild
gnome2_src_install
}
pkg_postinst() {
gnome2_pkg_postinst
python_mod_optimize /usr/share/${PN}
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup /usr/share/${PN}
}
|