Magellan Linux

Contents of /trunk/extras/pyqt4/pyqt4-4.5-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1939 - (show annotations) (download)
Wed Jun 10 17:09:45 2009 UTC (14 years, 11 months ago) by niro
File size: 2009 byte(s)
-rebuild use new qt4.sminc not the bloated kde4.sminc
1 # $Id$
2
3 PNAME="pyqt4"
4 PVER="4.5"
5 PBUILD="r2"
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 QtXmlPatterns \
76 || die
77
78 # fix insecure runpath
79 local i
80 for i in QtDesigner QtGui QtCore
81 do
82 sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die
83 done
84
85 mmake || die
86 }
87
88 src_install()
89 {
90 cd ${SRCDIR}
91
92 # INSTALL_ROOT is needed for the QtDesigner module,
93 # the other Makefiles use DESTDIR.
94 mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die
95
96 minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die
97 }

Properties

Name Value
svn:keywords Id