summaryrefslogtreecommitdiffstats
path: root/kde/kdebindings/Pkgfile
blob: 2f24e163e924dd873df7a891daaf6180af34d1a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Description: Pour écrire des applications KDE dans différents langages
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: cmake, automoc4, boost, sip, ruby, kdepim-runtime, kdegraphics, qscintilla, docbook-xsl
# Run on: ruby,kdepim-runtime,kdegraphics,qscintilla

name=kdebindings
version=4.6.0
release=2
pydir=python2.7

source=(ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2
	kdebindings-sip.patch)
	
build() {
	cd $name-*
	patch -Np0 -i ../kdebindings-sip.patch
	# fix ruby
	for f in `find ruby -name CMakeLists.txt`; do
	  sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} /usr/include/ruby-1.9.1/${_ARCHITECTURE}-linux|" "${f}"
	done

	mkdir build
        cd build

        cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DWITH_PolkitQt=ON \
		-DPYTHON_EXECUTABLE=/usr/bin/$_pybin \
                -DPYTHON_INCLUDE_DIR=/usr/include/$_pydir \
	        -DPYTHON_LIBRARY=/usr/lib/lib$_pydir.so

	make
	make DESTDIR=$PKG install
}