Magellan Linux

Annotation of /branches/R11-unstable/extras/pyqt4/pyqt4-4.11.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26591 - (hide annotations) (download)
Wed Jul 8 14:06:28 2015 UTC (8 years, 10 months ago) by niro
Original Path: trunk/extras/pyqt4/pyqt4-4.11.4-r1.smage2
File size: 2455 byte(s)
-fixed phonon patch version
1 niro 26590 # $Id$
2    
3     PNAME="pyqt4"
4     PVER="4.11.4"
5     PBUILD="r1"
6    
7     PCAT="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.16
14     >= dev-python/qscintilla-qt4-2.8
15     >= dev-python/dbus-python-1.2
16     >= virtual/opengl
17     >= virtual/phonon
18     >= x11-libs/qt4-core-4.8
19     >= x11-libs/qt4-dbus-4.8
20     >= x11-libs/qt4-gui-4.8
21     >= x11-libs/qt4-opengl-4.8
22     >= x11-libs/qt4-script-4.8
23     >= x11-libs/qt4-sql-4.8
24     >= x11-libs/qt4-svg-4.8
25     >= x11-libs/qt4-test-4.8
26     >= x11-libs/qt4-webkit-4.8
27     >= x11-libs/qt4-xmlpatterns-4.8
28     >= x11-libs/qt4-help-4.8
29     >= x11-libs/qt4-multimedia-4.8
30     >= x11-libs/qt4-declarative-4.8
31     >= x11-apps/qt4-designer-4.8"
32    
33     SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz"
34     SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}"
35    
36     # pull in mbuild to have a normal src_install()
37     sminclude qt4 python mbuild
38     msetfeature "!check"
39    
40     SRC_URI=(
41     sourceforge://${PNAME/4/}/${SRCFILE}
42     mirror://${PNAME}/${SRCFILE}
43 niro 26591 mirror://${PNAME}/${PNAME}-4.11.3-kde-phonon.patch
44 niro 26590 )
45    
46     UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz"
47    
48     src_prepare()
49     {
50     munpack ${SRCFILE} || die
51     cd ${SRCDIR}
52    
53     # respect kde-phonon includes (/usr/include/phonon)
54     if [[ -z $(magequery -n qt4-phonon) ]]
55     then
56 niro 26591 mpatch ${PNAME}-4.11.3-kde-phonon.patch || die
57 niro 26590 fi
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63    
64     # warning: needs more than 256mb to compile successfully
65     python configure-ng.py \
66     --confirm-license \
67     --qsci-api \
68     --qmake=${QMAKE} \
69     --destdir=$(mget-python-libdir) \
70     --bindir=/usr/bin \
71     --sipdir=/usr/share/sip \
72     --assume-shared \
73     --no-timestamp \
74     --enable=QtCore \
75     --enable=QtNetwork \
76     --enable=QtScript \
77     --enable=QtScriptTools \
78     --enable=QtTest \
79     --enable=QtXml \
80     --enable=QtGui \
81     --enable=QtDBus \
82     --enable=QtDesigner \
83     --enable=QtMultimedia \
84     --enable=QtHelp \
85     --enable=QtOpenGL \
86     --enable=phonon \
87     --enable=QtSql \
88     --enable=QtSvg \
89     --enable=QtWebKit \
90     --enable=QtXmlPatterns \
91     --enable=QtDeclarative \
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     }