Contents of /trunk/extras/pyqt4/pyqt4-4.5-r1.smage2
Parent Directory | Revision Log
Revision 1914 -
(show annotations)
(download)
Tue Jun 9 21:27:48 2009 UTC (15 years, 3 months ago) by niro
File size: 2042 byte(s)
Tue Jun 9 21:27:48 2009 UTC (15 years, 3 months ago) by niro
File size: 2042 byte(s)
-fixed qmake
1 | # $Id$ |
2 | |
3 | PNAME="pyqt4" |
4 | PVER="4.5" |
5 | PBUILD="r1" |
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 | >= x11-libs/qt4-4.5 |
15 | >= dev-python/sip-4.8 |
16 | >= dev-python/qscintilla-qt4-2.4 |
17 | >= virtual/opengl |
18 | >= kde-base/phonon-4.3.1" |
19 | |
20 | SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}" |
22 | |
23 | # pull in mbuild to have a normal src_install() |
24 | sminclude kde4 python mbuild |
25 | |
26 | SRC_URI=( |
27 | http://www.riverbankcomputing.com/static/Downloads/PyQt4/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${PNAME}-${PVER}-licence-fix.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-configure.py.patch |
31 | ) |
32 | |
33 | UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # remove license information |
41 | mpatch ${PNAME}-${PVER}-licence-fix.patch || die |
42 | |
43 | # nostrip etc |
44 | mpatch ${PNAME}-${PVER}-configure.py.patch || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | local use_distcc |
52 | [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c" |
53 | # warning: needs more than 256mb to compile successfully |
54 | python configure.py \ |
55 | --confirm-license \ |
56 | -q ${QTDIR}/bin/qmake4 \ |
57 | -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ |
58 | -n /usr/include \ |
59 | -b /usr/bin \ |
60 | -v /usr/share/sip \ |
61 | -w \ |
62 | ${use_distcc} \ |
63 | -e QtCore \ |
64 | -e QtNetwork \ |
65 | -e QtScript \ |
66 | -e QtTest \ |
67 | -e QtXml \ |
68 | -e QtGui \ |
69 | -e QtDesigner \ |
70 | -e QtAssistant \ |
71 | -e QtHelp \ |
72 | -e QtOpenGL \ |
73 | -e phonon \ |
74 | -e QtSql \ |
75 | -e QtSvg \ |
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 |