Magellan Linux

Annotation of /trunk/extras/pyqt4/pyqt4-4.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4831 - (hide annotations) (download)
Thu Feb 11 22:22:09 2010 UTC (14 years, 4 months ago) by niro
File size: 2006 byte(s)
-fixed dependencies
1 niro 4829 # $Id$
2    
3     PNAME="pyqt4"
4     PVER="4.7"
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 niro 4831 >= dev-python/sip-4.10
15     >= dev-python/qscintilla-qt4-2.4.2
16 niro 4829 >= virtual/opengl
17     >= virtual/phonon
18     >= x11-libs/qt4-core-4.6
19     >= x11-libs/qt4-dbus-4.6
20     >= x11-libs/qt4-gui-4.6
21     >= x11-libs/qt4-opengl-4.6
22     >= x11-libs/qt4-script-4.6
23     >= x11-libs/qt4-sql-4.6
24     >= x11-libs/qt4-svg-4.6
25     >= x11-libs/qt4-test-4.6
26     >= x11-libs/qt4-webkit-4.6
27     >= x11-libs/qt4-xmlpatterns-4.6
28     >= x11-libs/qt4-assistant-4.6"
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 | lasttarball 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     }

Properties

Name Value
svn:keywords Id