blob: d172397c225f8971b74dcbaeafd0ebd3a3a45355 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-3.3.2.ebuild,v 1.4 2002/11/17 09:10:27 vapier Exp $
DESCRIPTION="SIP is a tool for generating bindings for C++ classes so that they can be used by Python."
SRC_URI="http://www.riverbankcomputing.co.uk/download/sip/${P}.tar.gz"
HOMEPAGE="http://www.riverbankcomputing.co.uk/sip/"
SLOT="0"
LICENSE="MIT"
KEYWORDS="x86 sparc sparc64 alpha"
DEPEND="virtual/glibc
>=dev-lang/python-2.2.1"
src_compile(){
chmod +x build.py
dodir /usr/bin
dodir /usr/lib/python2.2/site-packages
python build.py -l qt-mt -b ${D}/usr/bin -d ${D}/usr/lib/python2.2/site-packages
make || die
}
src_install() {
cd ${S}/siplib
mv Makefile Makefile.orig
sed s:"cp sip.h /usr/include/python2.2":"cp sip.h /var/tmp/portage/sip-3.3.2/image/usr/include/python2.2": Makefile.orig > Makefile
mv Makefile Makefile.orig2
sed s:"cp sipQt.h /usr/include/python2.2":"cp sipQt.h /var/tmp/portage/sip-3.3.2/image/usr/include/python2.2": Makefile.orig2 > Makefile
cd ${S}
dodir /usr/include/python2.2
make DESTDIR=${D} install || die
dodoc NEWS README THANKS
}
|