Contents of /branches/magellan-next/extras/pyqt4/pyqt4-4.8.4-r1.smage2
Parent Directory | Revision Log
Revision 8571 -
(show annotations)
(download)
Fri Jul 22 11:04:17 2011 UTC (13 years, 2 months ago) by niro
File size: 2537 byte(s)
Fri Jul 22 11:04:17 2011 UTC (13 years, 2 months ago) by niro
File size: 2537 byte(s)
auto added: ver bump to 4.8.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="pyqt4" |
4 | PVER="4.8.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-python" |
8 | |
9 | DESCRIPTION="Python Qt bindings." |
10 | HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" |
11 | |
12 | DEPEND=">= dev-lang/python-2.7 |
13 | >= dev-python/sip-4.12 |
14 | >= dev-python/qscintilla-qt4-2.5 |
15 | >= virtual/opengl |
16 | >= virtual/phonon |
17 | >= x11-libs/qt4-core-4.7 |
18 | >= x11-libs/qt4-dbus-4.7 |
19 | >= x11-libs/qt4-gui-4.7 |
20 | >= x11-libs/qt4-opengl-4.7 |
21 | >= x11-libs/qt4-script-4.7 |
22 | >= x11-libs/qt4-sql-4.7 |
23 | >= x11-libs/qt4-svg-4.7 |
24 | >= x11-libs/qt4-test-4.7 |
25 | >= x11-libs/qt4-webkit-4.7 |
26 | >= x11-libs/qt4-xmlpatterns-4.7 |
27 | >= x11-libs/qt4-assistant-4.7" |
28 | |
29 | SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz" |
30 | SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}" |
31 | |
32 | # pull in mbuild to have a normal src_install() |
33 | sminclude qt4 python mbuild |
34 | |
35 | SRC_URI=( |
36 | http://www.riverbankcomputing.com/static/Downloads/PyQt4/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${PNAME}-4.7.7-fix-scpk-and-flags.patch |
39 | ) |
40 | |
41 | UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | |
48 | # fixes build of kdebindings4-python |
49 | mpatch ${PNAME}-4.7.7-fix-scpk-and-flags.patch || die |
50 | |
51 | # respect kde-phonon includes (/usr/include/phonon) |
52 | if [[ -z $(magequery -n qt4-phonon) ]] |
53 | then |
54 | local kde4prefix="$(kde4-config --prefix)" |
55 | local phononinc="${kde4prefix}/include/phonon" |
56 | sed -i "/generate_code(\"phonon\")/s:phonon\":&,extra_include_dirs=[\"${phononinc}\"]:" configure.py || die |
57 | fi |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | local use_distcc |
65 | [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c" |
66 | # warning: needs more than 256mb to compile successfully |
67 | python configure.py \ |
68 | --confirm-license \ |
69 | --qsci-api \ |
70 | -q ${QMAKE} \ |
71 | -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ |
72 | -n /usr/include \ |
73 | -b /usr/bin \ |
74 | -v /usr/share/sip \ |
75 | -w \ |
76 | ${use_distcc} \ |
77 | -e QtCore \ |
78 | -e QtNetwork \ |
79 | -e QtScript \ |
80 | -e QtTest \ |
81 | -e QtXml \ |
82 | -e QtGui \ |
83 | -e QtDesigner \ |
84 | -e QtAssistant \ |
85 | -e QtHelp \ |
86 | -e QtOpenGL \ |
87 | -e phonon \ |
88 | -e QtSql \ |
89 | -e QtSvg \ |
90 | -e QtWebKit \ |
91 | -e QtXmlPatterns \ |
92 | || die |
93 | |
94 | # fix insecure runpath |
95 | local i |
96 | for i in QtDesigner QtGui QtCore |
97 | do |
98 | sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die |
99 | done |
100 | |
101 | mmake || die |
102 | } |
103 | |
104 | src_install() |
105 | { |
106 | cd ${SRCDIR} |
107 | |
108 | # INSTALL_ROOT is needed for the QtDesigner module, |
109 | # the other Makefiles use DESTDIR. |
110 | mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die |
111 | |
112 | minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die |
113 | } |