Contents of /branches/magellan-next/extras/kdebindings4/kdebindings4-4.5.1-r1.smage2
Parent Directory | Revision Log
Revision 7224 -
(show annotations)
(download)
Mon Oct 11 19:14:21 2010 UTC (13 years, 11 months ago) by niro
File size: 2985 byte(s)
Mon Oct 11 19:14:21 2010 UTC (13 years, 11 months ago) by niro
File size: 2985 byte(s)
-added serveral build fixes
1 | # $Id: kdebindings4-4.4.2-r1.smage2 5184 2010-04-06 10:39:37Z niro $ |
2 | |
3 | PNAME="kdebindings4" |
4 | PVER="4.5.1" |
5 | PBUILD="r1" |
6 | |
7 | STATE="unstable" |
8 | |
9 | SDEPEND="== kde-base/kdelibs4-${PVER} |
10 | == kde-base/kdepimlibs4-${PVER} |
11 | == kde-base/kdebase4-workspace-${PVER} |
12 | == kde-base/kdepim4-runtime-${PVER} |
13 | >= kde-base/qimageblitz-0.0.6 |
14 | >= virtual/phonon |
15 | >= dev-lang/python-2.7 |
16 | >= dev-lang/ruby-1.9 |
17 | >= dev-python/pyqt4-4.7.7 |
18 | >= dev-python/qscintilla-qt4-2.4 |
19 | >= dev-libs/soprano-2.5 |
20 | >= dev-libs/shared-desktop-ontologies-0.5 |
21 | >= app-office/akonadi-1.4 |
22 | == kde-base/kdegraphics4-okular-${PVER}" |
23 | #>= dev-lang/perl-5.12 |
24 | #>= virtual/java-jdk |
25 | |
26 | SPLIT_PACKAGES="${PNAME}-python |
27 | ${PNAME}-smoke |
28 | ${PNAME}-ruby" |
29 | # ${PNAME}-csharp |
30 | |
31 | # pull in kde4 as last to get kde's {pre,post}install {pre,post}remove |
32 | sminclude python perl kde4-split |
33 | |
34 | SRC_URI=( |
35 | ${SRC_URI[*]} |
36 | mirror://${PNAME}/${PNAME}-${PVER}-smokegen-segfaults.patch |
37 | mirror://${PNAME}/${PNAME}-${PVER}-pyqt4.patch |
38 | mirror://${PNAME}/${PNAME}-${PVER}-ruby19.patch |
39 | ) |
40 | |
41 | UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" |
42 | |
43 | # split_info_kdebindings4-csharp() |
44 | # { |
45 | # DESCRIPTION="KDE4 bindings for mono." |
46 | # DEPEND=">= dev-lang/mono-1 |
47 | # == kde-base/kdebindings4-mono-${PVER}" |
48 | # } |
49 | |
50 | split_info_kdebindings4-python() |
51 | { |
52 | DESCRIPTION="KDE4 Kross scripting framework: Python interpreter." |
53 | DEPEND="== kde-base/kdepimlibs4-${PVER} |
54 | >= dev-lang/python-2.6 |
55 | >= dev-python/pyqt4-4.7.7" |
56 | } |
57 | |
58 | split_info_kdebindings4-ruby() |
59 | { |
60 | DESCRIPTION="KDE4 bindings for ruby" |
61 | DEPEND="== kde-base/kdebindings4-smoke-${PVER} |
62 | >= dev-lang/ruby-1.9" |
63 | } |
64 | |
65 | split_info_kdebindings4-smoke() |
66 | { |
67 | DESCRIPTION="Language independent library for Qt4 and KDE4 bindings." |
68 | DEPEND="== kde-base/kdelibs4-${PVER} |
69 | == kde-base/kdepimlibs4-${PVER} |
70 | == kde-base/kdepim4-runtime-${PVER} |
71 | >= kde-base/qimageblitz-0.0.6 |
72 | >= dev-python/qscintilla-qt4-2.4 |
73 | >= app-office/akonadi-1.4 |
74 | >= virtual/phonon |
75 | >= dev-libs/soprano-2.4.1 |
76 | >= dev-libs/shared-desktop-ontologies-0.5 |
77 | == kde-base/kdegraphics4-okular-${PVER}" |
78 | # no java support atm |
79 | #>= virtual/java-jdk |
80 | } |
81 | |
82 | src_prepare() |
83 | { |
84 | munpack ${SRCFILE} || die |
85 | cd ${SRCDIR} |
86 | |
87 | # fix smokegen segfaults |
88 | mpatch ${PNAME}-${PVER}-smokegen-segfaults.patch || die |
89 | |
90 | # fix build against newer pyqt4 |
91 | mpatch ${PNAME}-${PVER}-pyqt4.patch || die |
92 | |
93 | # fix build against ruby-1.9 |
94 | # see: http://permalink.gmane.org/gmane.comp.kde.devel.bindings/6316 |
95 | mpatch ${PNAME}-${PVER}-ruby19.patch || die |
96 | } |
97 | |
98 | src_compile() |
99 | { |
100 | cd ${SRCDIR} |
101 | |
102 | # sip/pyqt4 built separately, not here |
103 | kde4_configure \ |
104 | $(cmake_with OpenGL) \ |
105 | $(cmake_with KdepimLibs) \ |
106 | $(cmake_with Nepomuk) \ |
107 | $(cmake_with Phonon) \ |
108 | $(cmake_with QScintilla) \ |
109 | $(cmake_with Soprano) \ |
110 | $(cmake_without PolkitQT) \ |
111 | \ |
112 | $(cmake_build_not csharp) \ |
113 | $(cmake_build_not java) \ |
114 | $(cmake_build_not php) \ |
115 | $(cmake_build_not falcon) \ |
116 | || die |
117 | |
118 | # not needed anymore? |
119 | # $(cmake_disable KROSSRUBY) \ |
120 | |
121 | # not parallel make safe |
122 | make || die |
123 | } |