blob: e3302e4a3de0b9c292a4933d420fb432e1127504 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bonobo-python/bonobo-python-0.2.0-r3.ebuild,v 1.1 2002/12/10 19:13:00 lordvan Exp $
IUSE=""
S=${WORKDIR}/${P}
DESCRIPTION="Bonobo bindings for Python"
SRC_URI="http://bonobo-python.lajnux.nu/download/${P}.tar.gz"
HOMEPAGE="http://bonobo-python.lajnux.nu/"
DEPEND="=x11-libs/gtk+-1.2*
>=gnome-base/bonobo-1.0.9
<dev-python/gnome-python-1.99
=dev-python/orbit-python-0.3*
virtual/python"
RDEPEND="${RDEPEND}"
SLOT="0"
KEYWORDS="~x86 ~sparc ~alpha"
LICENSE="GPL-2"
src_unpack() {
unpack ${A}
# fix configure time sandbox problem
cd ${S}
mv configure configure.bad
sed -e "s:import gnome.config ; gnome.config.sync::" configure.bad > configure
chmod +x configure
}
src_compile() {
PYTHON=/usr/bin/python ./configure --host=${CHOST} --prefix=/usr \
--with-libIDL-prefix=/usr --with-orbit-prefix=/usr \
--with-oaf-prefix=/usr || die
make || die
}
src_install() {
# check if nautilus 1 was found
grep "#pysite_PYTHON" ${S}/nautilus/Makefile >& /dev/null && ( \
mv ${S}/nautilus/Makefile ${S}/nautilus/Makefile.orig; \
sed s/'install-data-am: install-pysitePYTHON'/'install-data-am:'/ ${S}/nautilus/Makefile.orig > ${S}/nautilus/Makefile; \
rm ${S}/nautilus/Makefile.orig; )
make DESTDIR=${D} install || die
dodoc AUTHORS COPYING ChangeLog NEWS README TODO
}
|