Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3981 - (hide annotations) (download)
Sun Nov 15 18:38:57 2009 UTC (14 years, 5 months ago) by niro
File size: 1704 byte(s)
auto added: ver bump to 4.6.1-r1
1 niro 3980 # $Id$
2    
3     PNAME="pyqt4"
4     PVER="4.6.1"
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     >= dev-python/sip-4.9
15     >= dev-python/qscintilla-qt4-2.4
16     >= virtual/opengl
17     >= virtual/phonon"
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     )
29    
30     UP2DATE="updatecmd ${HOMEPAGE}/download | lasttarball gz"
31    
32     src_compile()
33     {
34     cd ${SRCDIR}
35    
36     local use_distcc
37     [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c"
38     # warning: needs more than 256mb to compile successfully
39     python configure.py \
40     --confirm-license \
41     -q ${QMAKE} \
42     -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \
43     -n /usr/include \
44     -b /usr/bin \
45     -v /usr/share/sip \
46     -w \
47     ${use_distcc} \
48     -e QtCore \
49     -e QtNetwork \
50     -e QtScript \
51     -e QtTest \
52     -e QtXml \
53     -e QtGui \
54     -e QtDesigner \
55     -e QtAssistant \
56     -e QtHelp \
57     -e QtOpenGL \
58     -e phonon \
59     -e QtSql \
60     -e QtSvg \
61     -e QtWebKit \
62     -e QtXmlPatterns \
63     || die
64    
65     # fix insecure runpath
66     local i
67     for i in QtDesigner QtGui QtCore
68     do
69     sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die
70     done
71    
72     mmake || die
73     }
74    
75     src_install()
76     {
77     cd ${SRCDIR}
78    
79     # INSTALL_ROOT is needed for the QtDesigner module,
80     # the other Makefiles use DESTDIR.
81     mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die
82    
83     minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die
84     }

Properties

Name Value
svn:keywords Id