Magellan Linux

Contents of /trunk/extras/pyqt/pyqt-3.18.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4028 - (show annotations) (download)
Tue Nov 17 18:16:25 2009 UTC (14 years, 6 months ago) by niro
File size: 1441 byte(s)
auto added: ver bump to 3.18.1-r1
1 # $Id$
2
3 PNAME="pyqt"
4 PVER="3.18.1"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-python"
8 STATE="unstable"
9
10 DESCRIPTION="Python Qt bindings."
11 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/"
12
13 DEPEND=">= dev-lang/python-2.6
14 >= x11-libs/qt-3.3
15 >= dev-python/sip-4.9
16 >= dev-python/qscintilla-1"
17
18 SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}"
20
21 # pull in mbuild to have a normal src_install()
22 sminclude python mbuild qt3
23
24 SRC_URI=(
25 http://www.riverbankcomputing.com/static/Downloads/PyQt3/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-3.16-licence-fix.patch
28 mirror://${PNAME}/${PNAME}-3.16-mkspec-loc-fix.patch
29 )
30
31 UP2DATE="updatecmd ${HOMEPAGE}/download3 | lasttarball gz"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # remove license information
39 mpatch -Np1 ${PNAME}-3.16-licence-fix.patch || die
40
41 # fix search path of mkspec, env var QT_DATA_DIR must be given
42 mpatch ${PNAME}-3.16-mkspec-loc-fix.patch || die
43 }
44
45 src_compile()
46 {
47 cd ${SRCDIR}
48
49 local use_distcc
50 [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c"
51
52 # warning: needs more than 256mb to compile successfully
53 QTDATADIR=${QTDIR}/share/qt \
54 python configure.py \
55 -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \
56 -n /usr/include \
57 -b /usr/bin \
58 -o /usr/$(mlibdir) \
59 -v /usr/share/sip \
60 -w -y qt-mt \
61 ${use_distcc} \
62 "LIBDIR_QT=${QTDIR}/$(mlibdir)" \
63 || die
64
65 mmake || die
66 }

Properties

Name Value
svn:keywords Id