Contents of /trunk/extras/pyqt4/pyqt4-4.5-r3.smage2
Parent Directory | Revision Log
Revision 2064 -
(show annotations)
(download)
Sun Jun 14 01:19:09 2009 UTC (15 years, 3 months ago) by niro
File size: 2026 byte(s)
Sun Jun 14 01:19:09 2009 UTC (15 years, 3 months ago) by niro
File size: 2026 byte(s)
-rebuild with qtwebkit enabled, needed by kdebindings4
1 | # $Id$ |
2 | |
3 | PNAME="pyqt4" |
4 | PVER="4.5" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="dev-python" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Python Qt bindings." |
11 | HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" |
12 | |
13 | DEPEND=">= dev-lang/python-2.6 |
14 | >= dev-python/sip-4.8 |
15 | >= dev-python/qscintilla-qt4-2.4 |
16 | >= virtual/opengl |
17 | >= kde-base/phonon-4.3.1" |
18 | |
19 | SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}" |
21 | |
22 | # pull in mbuild to have a normal src_install() |
23 | sminclude qt4 python mbuild |
24 | |
25 | SRC_URI=( |
26 | http://www.riverbankcomputing.com/static/Downloads/PyQt4/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-licence-fix.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-configure.py.patch |
30 | ) |
31 | |
32 | UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz" |
33 | |
34 | src_prepare() |
35 | { |
36 | munpack ${SRCFILE} || die |
37 | cd ${SRCDIR} |
38 | |
39 | # remove license information |
40 | mpatch ${PNAME}-${PVER}-licence-fix.patch || die |
41 | |
42 | # nostrip etc |
43 | mpatch ${PNAME}-${PVER}-configure.py.patch || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | local use_distcc |
51 | [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c" |
52 | # warning: needs more than 256mb to compile successfully |
53 | python configure.py \ |
54 | --confirm-license \ |
55 | -q ${QMAKE} \ |
56 | -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ |
57 | -n /usr/include \ |
58 | -b /usr/bin \ |
59 | -v /usr/share/sip \ |
60 | -w \ |
61 | ${use_distcc} \ |
62 | -e QtCore \ |
63 | -e QtNetwork \ |
64 | -e QtScript \ |
65 | -e QtTest \ |
66 | -e QtXml \ |
67 | -e QtGui \ |
68 | -e QtDesigner \ |
69 | -e QtAssistant \ |
70 | -e QtHelp \ |
71 | -e QtOpenGL \ |
72 | -e phonon \ |
73 | -e QtSql \ |
74 | -e QtSvg \ |
75 | -e QtWebKit \ |
76 | -e QtXmlPatterns \ |
77 | || die |
78 | |
79 | # fix insecure runpath |
80 | local i |
81 | for i in QtDesigner QtGui QtCore |
82 | do |
83 | sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die |
84 | done |
85 | |
86 | mmake || die |
87 | } |
88 | |
89 | src_install() |
90 | { |
91 | cd ${SRCDIR} |
92 | |
93 | # INSTALL_ROOT is needed for the QtDesigner module, |
94 | # the other Makefiles use DESTDIR. |
95 | mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die |
96 | |
97 | minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die |
98 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |