summaryrefslogtreecommitdiff
blob: a12602d87ae349b3d062ce780dfc32e4e7789ce3 (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
# Copyright 1999-2004 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.4 2004/06/25 01:30:29 agriffis Exp $

inherit gnome.org python

DESCRIPTION="GNOME1 Python Bindings"
HOMEPAGE="http://www.daa.com.au/~james/gnome/"

IUSE=""
SLOT="1"
KEYWORDS="x86 ~ppc ~sparc ~alpha"
LICENSE="GPL-2"

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 COPYING* ChangeLog NEWS MAPPING
	dodoc 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
}