Magellan Linux

Annotation of /branches/magellan-next/extras/pyqt4/pyqt4-4.7.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7195 - (hide annotations) (download)
Thu Sep 30 17:59:39 2010 UTC (13 years, 7 months ago) by niro
File size: 2077 byte(s)
auto added: ver bump to 4.8_pre_eac5dd92c907-r1
1 niro 7192 # $Id: pyqt4-4.7-r1.smage2 4831 2010-02-11 22:22:09Z niro $
2    
3     PNAME="pyqt4"
4 niro 7195 PVER="4.8_pre-eac5dd92c907"
5 niro 7192 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.7
14     >= dev-python/sip-4.10
15     >= dev-python/qscintilla-qt4-2.4.5
16     >= virtual/opengl
17     >= virtual/phonon
18     >= x11-libs/qt4-core-4.7
19     >= x11-libs/qt4-dbus-4.7
20     >= x11-libs/qt4-gui-4.7
21     >= x11-libs/qt4-opengl-4.7
22     >= x11-libs/qt4-script-4.7
23     >= x11-libs/qt4-sql-4.7
24     >= x11-libs/qt4-svg-4.7
25     >= x11-libs/qt4-test-4.7
26     >= x11-libs/qt4-webkit-4.7
27     >= x11-libs/qt4-xmlpatterns-4.7
28     >= x11-libs/qt4-assistant-4.7"
29    
30     SRCFILE="PyQt-x11-gpl-${PVER}.tar.gz"
31     SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER}"
32    
33     # pull in mbuild to have a normal src_install()
34     sminclude qt4 python mbuild
35    
36     SRC_URI=(
37     http://www.riverbankcomputing.com/static/Downloads/PyQt4/${SRCFILE}
38     mirror://${PNAME}/${SRCFILE}
39     )
40    
41     UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz"
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46    
47     local use_distcc
48     [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c"
49     # warning: needs more than 256mb to compile successfully
50     python configure.py \
51     --confirm-license \
52     -q ${QMAKE} \
53     -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \
54     -n /usr/include \
55     -b /usr/bin \
56     -v /usr/share/sip \
57     -w \
58     ${use_distcc} \
59     -e QtCore \
60     -e QtNetwork \
61     -e QtScript \
62     -e QtTest \
63     -e QtXml \
64     -e QtGui \
65     -e QtDesigner \
66     -e QtAssistant \
67     -e QtHelp \
68     -e QtOpenGL \
69     -e phonon \
70     -e QtSql \
71     -e QtSvg \
72     -e QtWebKit \
73     -e QtXmlPatterns \
74     || die
75    
76     # fix insecure runpath
77     local i
78     for i in QtDesigner QtGui QtCore
79     do
80     sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die
81     done
82    
83     mmake || die
84     }
85    
86     src_install()
87     {
88     cd ${SRCDIR}
89    
90     # INSTALL_ROOT is needed for the QtDesigner module,
91     # the other Makefiles use DESTDIR.
92     mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die
93    
94     minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die
95     }