[Frugalware-git] playground: kdebindings-3.96.1_739577-0playground1-i686

crazy crazy at frugalware.org
Tue Nov 27 08:17:18 CET 2007


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=playground.git;a=commitdiff;h=4067379eb0a4a3b8fbbe5defb59d2c557c1a23c8

commit 4067379eb0a4a3b8fbbe5defb59d2c557c1a23c8
Author: crazy <crazy at frugalware.org>
Date:   Tue Nov 27 04:21:06 2007 +0100

kdebindings-3.96.1_739577-0playground1-i686
* split work done
* got csharp to build and install with an weird patch / hack in build()
* Qwt support missing is broken at the moment

diff --git a/source/kde4/kdebindings/FrugalBuild b/source/kde4/kdebindings/FrugalBuild
index 8424f30..84429d9 100644
--- a/source/kde4/kdebindings/FrugalBuild
+++ b/source/kde4/kdebindings/FrugalBuild
@@ -2,38 +2,80 @@
# Maintainer: crazy <crazy at frugalware.org>

pkgname=kdebindings
-pkgver=3.5.8
-pkgrel=1
+pkgver=3.96.1_739577
+pkgrel=0playground1
pkgdesc="KDE Bindings."
-groups=('kde-extra')
-archs=('i686' 'x86_64')
-makedepends=('java-gcj-compat' 'gcc-gcj' 'gtk+' 'ruby')
-depends=('kdebase>=3.5.8' 'qscintilla')
-_F_kde_reconf=1
-Finclude kde
-source=($source kdebindings-3.5.4-java.diff)
+groups=('kde4')
+archs=('i686')
+depends=()
+## Qwt - broken with qtw at the moment
+makedepends=('libqtopengl' 'kdelibs' 'qscintilla2-qt4' 'python' 'ruby' 'sip' 'pyqt4' 'mono')
+options=('nomirror' 'nodocs' 'nobuild') # empty
+Finclude mono kde4
+source=(http://192.168.0.2/.KDE4/$pkgname-$pkgver.tar.bz2 \
+	hack-MONO-to-build-and-install.patch)
+sha1sums=('ca8bee544951dc7dbc395b4222e8a171e7fb26aa' \
+          '77ed06afc5979af61355286d7a47174fadf3ad63')

-subpkgs=("$pkgname-docs")
-subdescs=("Kdebindings Documentation")
-subdepends=('')
-subgroups=('docs-extra kde-docs')
-subarchs=('i686 x86_64')
+subpkgs=('pykde4' "$pkgname-krosspython" "$pkgname-smoke-qt" "$pkgname-smoke-kde" \
+	 "$pkgname-qtruby" "$pkgname-ruby" "$pkgname-krossruby" "$pkgname-csharp")
+subdescs=('KDE4 python bindings.' \
+	  'Kross python bindings.' \
+          'Smoke Qt4 bindings.' \
+	  'Smoke KDE4 bindings.' \
+	  'Qt4 ruby bindings.' \
+	  'KDE4 ruby bindings.' \
+	  'Kross ruby bindings.' \
+	  'KDE4 charp bindings.')
+subdepends=('python kdelibs pyqt4 sip' \
+	    'kdelibs python libqtnetwork' \
+	    'libqtnetwork libqtopengl qt4-qdbus libqtsql libqtsvg qscintilla2-qt4' \
+	    'libqtopengl kdelibs' \
+	    'ruby kdebindings-smoke-qt' \
+	    'ruby kdebindings-smoke-kde' \
+	    'kdelibs ruby libqtnetwork bzip2' \
+	    'kdebindings-smoke-qt')
+subgroups=('kde4' 'kde4' 'kde4' 'kde4' 'kde4' 'kde4' 'kde4' 'kde4')
+subarchs=('i686' 'i686' 'i686' 'i686' 'i686' 'i686' 'i686' 'i686')

-build()
+build()
{
-	unset MAKEFLAGS
-	Fbuild_kde_reconf
-        Fconf \
-		DO_NOT_COMPILE="python" \
-	        --enable-qscintilla=yes \
-		--with-java=/usr/
+	Fcd
+	CMakeKDE_export_flags
+	Fpatchall
+
+	# Weird hack to make that crap install at all
+	Fsed "DUMMY" "$Fdestdir/usr" cmake/modules/CSharpMacros.cmake
+	Fmonoexport
+
+	mkdir build || Fdie
+	cd build || Fdie
+	CMakeKDE_conf
make || Fdie
-	Fmakeinstall
-        Frm /usr/lib/perl5/5*/$CARCH-linux-thread-multi/perllocal.pod
-        Frm /usr/lib/perl5/5*/$CARCH-linux/perllocal.pod
-	Fsplit $pkgname-docs usr/share/doc
-}
+
+	## -pykde4
+	kde4_split "python/pykde4" pykde4
+
+	## -krosspython
+	kde4_split "python/krosspython" "$pkgname-krosspython"
+
+	## -smoke-qt
+	Ffilerel ../smoke/smoke.h /usr/include/smoke.h
+	kde4_split "smoke/qt" "$pkgname-smoke-qt"
+
+	## -smoke-kde
+	kde4_split "smoke/kde" "$pkgname-smoke-kde"
+
+	## -ruby
+	kde4_split "ruby/qtruby" $pkgname-qtruby
+	kde4_split "ruby/korundum" $pkgname-ruby
+	kde4_split "ruby/krossruby" $pkgname-krossruby

-sha1sums=('9e84a47cb5ce7b16f485f51996b12d8dd50898ad' \
-          '9393dda544127cbcca72fff4d9e1aad2fe7e8c7f')
-# optimization OK
+	## -csharp , brr
+	kde4_install "csharp"
+	Fmonocleanup
+	Fsplit $pkgname-csharp /usr
+
+	## shut up tar
+        Fmkdir usr/share/doc/$pkgname/DUMMY_PACKAGE_DO_NOT_USE
+}
diff --git a/source/kde4/kdebindings/hack-MONO-to-build-and-install.patch b/source/kde4/kdebindings/hack-MONO-to-build-and-install.patch
new file mode 100644
index 0000000..ff83dc5
--- /dev/null
+++ b/source/kde4/kdebindings/hack-MONO-to-build-and-install.patch
@@ -0,0 +1,19 @@
+diff -Naur kdebindings-3.96.1_739577/cmake/modules/CSharpMacros.cmake kdebindings-3.96.1_739577-p/cmake/modules/CSharpMacros.cmake
+--- kdebindings-3.96.1_739577/cmake/modules/CSharpMacros.cmake	2007-11-24 00:43:52.000000000 +0100
++++ kdebindings-3.96.1_739577-p/cmake/modules/CSharpMacros.cmake	2007-11-27 03:30:18.000000000 +0100
+@@ -92,5 +92,5 @@
+ MACRO(INSTALL_GAC target)
+ 	GET_CS_LIBRARY_TARGET_DIR()
+
+-	INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${GACUTIL_EXECUTABLE} -i ${CS_LIBRARY_TARGET_DIR}/${target}.dll -package 2.0)")
++	INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${GACUTIL_EXECUTABLE} -i ${CS_LIBRARY_TARGET_DIR}/${target}.dll -package 2.0 -gacdir DUMMY)")
+ ENDMACRO(INSTALL_GAC target)
+diff -Naur kdebindings-3.96.1_739577/csharp/qyoto/CMakeLists.txt kdebindings-3.96.1_739577-p/csharp/qyoto/CMakeLists.txt
+--- kdebindings-3.96.1_739577/csharp/qyoto/CMakeLists.txt	2007-11-24 00:44:38.000000000 +0100
++++ kdebindings-3.96.1_739577-p/csharp/qyoto/CMakeLists.txt	2007-11-27 03:28:52.000000000 +0100
+@@ -56,4 +56,4 @@
+ INSTALL_GAC(qt-dotnet)
+
+ ADD_SUBDIRECTORY(tools)
+-ADD_SUBDIRECTORY(examples)
++#ADD_SUBDIRECTORY(examples)


More information about the Frugalware-git mailing list