Magellan Linux

Contents of /branches/magellan-next/extras/sip/sip-4.12.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8570 - (show annotations) (download)
Fri Jul 22 10:59:41 2011 UTC (12 years, 9 months ago) by niro
File size: 868 byte(s)
auto added: ver bump to 4.12.3-r1
1 # $Id$
2
3 PNAME="sip"
4 PVER="4.12.3"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-python"
8
9 DESCRIPTION="SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries."
10 HOMEPAGE="http://www.riverbankcomputing.com/software/sip/"
11
12 DEPEND=">= dev-lang/python-2.7"
13
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 # pull in mbuild to have a normal src_install()
18 sminclude python mbuild
19
20 SRC_URI=(
21 http://www.riverbankcomputing.com/static/Downloads/sip4/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz"
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30
31 python configure.py \
32 -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \
33 -e /usr/include/python$(get_python_version) \
34 -b /usr/bin \
35 -v /usr/share/sip \
36 "CFLAGS+=${CFLAGS}" \
37 "CXXFLAGS+=${CXXFLAGS}" \
38 || die
39
40 mmake || die
41 }