Contents of /branches/magellan-0_10_0/extras/pyqt/pyqt-3.17.4-r1.smage2
Parent Directory | Revision Log
Revision 3000 -
(show annotations)
(download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1456 byte(s)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1456 byte(s)
created branch 'magellan-0_10_0'
1 | # $Header: /magellan-cvs/smage/pyqt/pyqt-3.17.4-r1.smage2,v 1.2 2008/04/20 22:53:38 niro Exp $ |
2 | |
3 | PNAME="pyqt" |
4 | PVER="3.17.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-python" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Python Qt bindings." |
11 | HOMEPAGE="http://www.riverbankcomputing.co.uk/pyqt/" |
12 | |
13 | DEPEND=">= dev-lang/python-2.5 |
14 | >= x11-libs/qt-3.3 |
15 | >= dev-python/sip-4.7 |
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 |
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 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # remove license information |
37 | mpatch -Np1 ${PNAME}-3.16-licence-fix.patch || die |
38 | |
39 | # fix search path of mkspec, env var QT_DATA_DIR must be given |
40 | mpatch ${PNAME}-3.16-mkspec-loc-fix.patch || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | |
47 | local use_distcc |
48 | [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c" |
49 | |
50 | # warning: needs more than 256mb to compile successfully |
51 | QTDATADIR=${QTDIR}/share/qt \ |
52 | python configure.py \ |
53 | -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ |
54 | -n /usr/include \ |
55 | -b /usr/bin \ |
56 | -o /usr/$(mlibdir) \ |
57 | -v /usr/share/sip \ |
58 | -w -y qt-mt \ |
59 | ${use_distcc} \ |
60 | "LIBDIR_QT=${QTDIR}/$(mlibdir)" \ |
61 | || die |
62 | |
63 | mmake || die |
64 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |