summaryrefslogtreecommitdiff
blob: 3e1170c0344caafd5b72cb0d4f3d5f4a4238267b (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-4.0_rc1.ebuild,v 1.3 2004/01/30 21:42:37 ferringb Exp $

IUSE=""

inherit eutils distutils

MY_P=${P/_/}
S=${WORKDIR}/${MY_P}

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="GPL-2"
KEYWORDS="~x86 ~ppc ~sparc"
# note, python-2.3 isn't keyworded for alpha yet.
# ~alpha"
RESTRICT="nomirror"

DEPEND="virtual/glibc
	x11-libs/qt
	>=dev-lang/python-2.3"

src_compile(){
	distutils_python_version
	dodir /usr/bin
	dodir /usr/lib/python${PYVER}/site-packages
	python configure.py -l qt-mt \
		-b ${D}usr/bin \
		-d ${D}usr/lib/python${PYVER}/site-packages \
		-e ${D}usr/include/python${PYVER} \
		"CXXFLAGS+=${CXXFLAGS}"
	make || die
}

src_install() {
	distutils_python_version
	dodir /usr/include/python${PYVER}
	make install || die
	echo "/${D//\//\\/}/s//\//" > fixpaths.sed
	sed -i -f fixpaths.sed ${D}usr/lib/python${PYVER}/site-packages/sipconfig.py
	dodoc ChangeLog LICENS NEWS README THANKS TODO
}