Contents of /trunk/extras/pykde4/pykde4-4.14.2-r1.smage2
Parent Directory | Revision Log
Revision 23331 -
(show annotations)
(download)
Tue Nov 11 10:20:44 2014 UTC (9 years, 6 months ago) by niro
File size: 1245 byte(s)
Tue Nov 11 10:20:44 2014 UTC (9 years, 6 months ago) by niro
File size: 1245 byte(s)
-new pyqt4 build system does not provide the sip configuration
1 | # $Id$ |
2 | |
3 | PNAME="pykde4" |
4 | PVER="4.14.2" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-python" |
8 | DESCRIPTION="KDE4 Kross scripting framework: Python interpreter." |
9 | |
10 | DEPEND="== kde-base/kdepimlibs-${PVER} |
11 | >= dev-lang/python-2.7 |
12 | >= dev-python/qscintilla-qt4-2.8 |
13 | >= dev-python/pyqt4-4.11 |
14 | >= dev-libs/soprano-2.9 |
15 | >= dev-libs/shared-desktop-ontologies-0.11 |
16 | >= dev-libs/polkit-qt-0.112" |
17 | |
18 | SDEPEND=">= dev-libs/boost-1.56" |
19 | |
20 | # keep the '4' in the pname |
21 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | # pull in kde4 as last to get kde's {pre,post}install {pre,post}remove |
25 | sminclude python kde4 |
26 | |
27 | SRC_URI+=( |
28 | mirror://${PNAME}/${PNAME}-4.13.97-use_system_sip_dir.patch |
29 | mirror://${PNAME}/${PNAME}-4.12.3-python_library_realpath.patch |
30 | ) |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # hard-codes sip path to /usr/share/sip, instead of respecting system path |
38 | mpatch ${PNAME}-4.13.97-use_system_sip_dir.patch || die |
39 | # fix libpython pathes |
40 | # FindPythonLibs.cmake returns libpython2.7.so instead of libpython2.7.so.1.0 |
41 | # see: https://bugzilla.redhat.com/show_bug.cgi?id=1050944 |
42 | mpatch ${PNAME}-4.12.3-python_library_realpath.patch || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | kde4_configure -DPYQT4_SIP_DIR=/usr/share/sip || die |
49 | mmake || die |
50 | } |