31 |
# pull in kde4 as last to get kde's {pre,post}install {pre,post}remove |
# pull in kde4 as last to get kde's {pre,post}install {pre,post}remove |
32 |
sminclude python perl kde4-split |
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/'" |
UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" |
42 |
|
|
43 |
# split_info_kdebindings4-csharp() |
# split_info_kdebindings4-csharp() |
84 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
85 |
cd ${SRCDIR} |
cd ${SRCDIR} |
86 |
|
|
87 |
local rubyver=$(ruby --version | cut -d' ' -f2 | sed 's:\(.*\)p.*:\1:') |
# fix smokegen segfaults |
88 |
local rubyarch=$(ruby --version | cut -d' ' -f6 | sed 's:\[::;s:\]::') |
mpatch ${PNAME}-${PVER}-smokegen-segfaults.patch || die |
89 |
local rubypath="/usr/include/ruby-${rubyver}/${rubyarch}" |
|
90 |
|
# fix build against newer pyqt4 |
91 |
# fix ruby includes |
mpatch ${PNAME}-${PVER}-pyqt4.patch || die |
92 |
find ${SRCDIR}/ruby -name CMakeLists.txt \ |
|
93 |
-exec sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} ${rubypath}|" {} \; || die |
# 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() |
src_compile() |
99 |
{ |
{ |
100 |
cd ${SRCDIR} |
cd ${SRCDIR} |
101 |
|
|
102 |
# sip/pyqt/pykde built separately, not here |
# sip/pyqt4 built separately, not here |
103 |
kde4_configure \ |
kde4_configure \ |
104 |
$(cmake_with OpenGL) \ |
$(cmake_with OpenGL) \ |
105 |
$(cmake_with KdepimLibs) \ |
$(cmake_with KdepimLibs) \ |
113 |
$(cmake_build_not java) \ |
$(cmake_build_not java) \ |
114 |
$(cmake_build_not php) \ |
$(cmake_build_not php) \ |
115 |
$(cmake_build_not falcon) \ |
$(cmake_build_not falcon) \ |
|
$(cmake_disable KROSSRUBY) \ |
|
116 |
|| die |
|| die |
117 |
#$(cmake_build_not smoke) \ |
|
118 |
#$(cmake_build_not ruby) \ |
# not needed anymore? |
119 |
|
# $(cmake_disable KROSSRUBY) \ |
120 |
|
|
121 |
# not parallel make safe |
# not parallel make safe |
122 |
make || die |
make || die |