blob: e0c4eef693b99fc4438c66cfc93babfb31bde1ff (
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
70
71
72
73
74
75
76
77
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-news/straw/straw-0.27.ebuild,v 1.1 2008/06/29 18:46:45 eva Exp $
inherit gnome2 python distutils virtualx
DESCRIPTION="RSS/RDF News Aggregator"
HOMEPAGE="http://www.gnome.org/projects/straw/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=dev-lang/python-2.4"
RDEPEND="${DEPEND}
gnome-base/gconf
>=gnome-base/libglade-2.4
>=gnome-base/libgnome-2.0.1
>=dev-python/gnome-python-1.99.13
>=dev-python/pygtk-2.8
>=dev-python/bsddb3-3.4.0
>=dev-python/egenix-mx-base-2
dev-python/gnome-python-extras
dev-python/dbus-python
!ppc? ( >=dev-python/adns-python-1.0.0 )"
# dev-python/gnome-python-extras provides gtkhtml2 python module
# REMIND : egenix-mx-base is only needed for the conversion of
# pre 0.22 straw databases. It should be removed at some point.
# foser <foser@gentoo.org> 18 Feb 2004
src_unpack() {
gnome2_src_unpack
sed -i \
-e 's/bsddb.db/bsddb3.db/' \
"${S}/setup.py" || die "sed failed"
}
# This about of virtualmake in src_compile and src_install are
# pretty horrible.. why can't I compile gtk base modules in
# distutils without that (ps. I'm the upstream guy to blame)
# Olivier Crete <tester@gentoo.org>
src_compile() {
export maketype="distutils_src_compile"
virtualmake || die "compilation failed"
}
src_install() {
# work around bug in straw's install script
export maketype="distutils_src_install"
virtualmake \
--prefix=/usr \
--sysconfdir=${D}/etc \
--disable-schemas-install
}
pkg_postinst() {
distutils_pkg_postinst
gnome2_pkg_postinst # need this for gconf schemas
echo
einfo "Consult the README if you have database conversion problems on startup."
echo
}
pkg_postrm() {
distutils_pkg_postrm
gnome2_pkg_postrm
}
|