Magellan Linux

Contents of /branches/R11-unstable/extras/pykde4/pykde4-4.14.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25738 - (show annotations) (download)
Tue Nov 25 04:14:25 2014 UTC (9 years, 5 months ago) by niro
File size: 1314 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="pykde4"
4 PVER="4.14.3"
5 PBUILD="r2"
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/polkit-qt-0.112"
15
16 SDEPEND=">= dev-libs/boost-1.56"
17
18 # keep the '4' in the pname
19 SRCFILE="${PNAME}-${PVER}.tar.xz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 # pull in kde4 as last to get kde's {pre,post}install {pre,post}remove
23 sminclude python kde4
24
25 kde4_add_nepomuk_depend "DEPEND" ">= dev-libs/soprano-2.9"
26 kde4_add_nepomuk_depend "DEPEND" ">= dev-libs/shared-desktop-ontologies-0.11"
27
28 SRC_URI+=(
29 mirror://${PNAME}/${PNAME}-4.13.97-use_system_sip_dir.patch
30 mirror://${PNAME}/${PNAME}-4.12.3-python_library_realpath.patch
31 )
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # hard-codes sip path to /usr/share/sip, instead of respecting system path
39 mpatch ${PNAME}-4.13.97-use_system_sip_dir.patch || die
40 # fix libpython pathes
41 # FindPythonLibs.cmake returns libpython2.7.so instead of libpython2.7.so.1.0
42 # see: https://bugzilla.redhat.com/show_bug.cgi?id=1050944
43 mpatch ${PNAME}-4.12.3-python_library_realpath.patch || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49 kde4_configure -DPYQT4_SIP_DIR=/usr/share/sip || die
50 mmake || die
51 }