blob: d81b443d1ed3f6478dcdfd23f1746876fd4dd6f4 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/gnome-python/gnome-python-1.4.4-r1.ebuild,v 1.7 2005/04/16 23:36:22 vapier Exp $
inherit gnome.org python
DESCRIPTION="GNOME1 Python Bindings"
HOMEPAGE="http://www.pygtk.org/"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="~alpha ia64 ppc ~sparc x86"
IUSE=""
DEPEND="virtual/python
=x11-libs/gtk+-1.2*
=dev-python/pygtk-0.6*
>=media-libs/imlib-1.9.10-r1
>=gnome-base/gnome-libs-1.4.1.2-r1
<gnome-base/libglade-1.90.0
<gnome-base/control-center-1.90.0"
src_unpack() {
unpack ${A}
# disable pyc compiling
mv ${S}/py-compile ${S}/py-compile.orig
ln -s /bin/true ${S}/py-compile
}
src_compile() {
CFLAGS="${CFLAGS} `gnome-config capplet --cflags`" \
econf || die "econf failed"
cd ${S}/pygnome
emake || die
}
src_install() {
dodoc AUTHORS ChangeLog NEWS MAPPING README*
cd ${S}/pygnome
make prefix=${D}/usr datadir=${D}/usr/share install || die " install failed"
}
pkg_postinst() {
python_version
python_mod_optimize /usr/lib/python${PYVER}/site-packages/gtk-1.2/gnome
}
pkg_postrm() {
python_mod_cleanup
}
|