blob: 9803c3fecd188c86ae43e2864f37578fdf4f1eb0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-3.8-r1.ebuild,v 1.12 2005/12/09 22:00:47 carlo Exp $
inherit eutils distutils
MY_P="${PN}-x11-gpl-${PV}"
DESCRIPTION="SIP is a tool for generating bindings for C++ classes so that they can be used by Python."
SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
HOMEPAGE="http://www.riverbankcomputing.co.uk/sip/"
SLOT="0"
LICENSE="sip"
KEYWORDS="x86 ppc sparc alpha"
IUSE=""
DEPEND="virtual/libc
x11-libs/qt
>=dev-lang/python-2.2.1"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/license-${PV}.diff
}
src_compile(){
distutils_python_version
chmod +x build.py
dodir /usr/bin
dodir /usr/lib/python${PYVER}/site-packages
python build.py -l qt-mt \
-b ${D}/usr/bin \
-d ${D}/usr/lib/python${PYVER}/site-packages \
-e ${D}/usr/include/python${PYVER}
emake || die
}
src_install() {
distutils_python_version
dodir /usr/include/python${PYVER}
emake || die
einstall || die
dodoc NEWS README THANKS
}
|