Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=cff06b5045d6f04a378504037a8ffc5555d23c03
commit cff06b5045d6f04a378504037a8ffc5555d23c03 Author: crazy <[EMAIL PROTECTED]> Date: Sun Oct 28 20:22:39 2007 +0100 lablgtk2-2.10.0-1-i686 * Version bump * fixed krix gnome PARANOIA and moved to xlib-extra * added subpkgs for 'the BINDINGS' these are not depends and OPTIONAL ( krix RTFM ? ) * added docs * added 2 patches to fix CFLAGS and locale settings diff --git a/source/gnome-extra/lablgtk2/FrugalBuild b/source/gnome-extra/lablgtk2/FrugalBuild deleted file mode 100644 index 9eb8d49..0000000 --- a/source/gnome-extra/lablgtk2/FrugalBuild +++ /dev/null @@ -1,28 +0,0 @@ -# Compiling Time: 1.51 SBU -# Maintainer: Christian Hamar alias krix <[EMAIL PROTECTED]> - -pkgname=lablgtk2 -pkgver=2.6.0 -pkgrel=2 -pkgdesc="an interface to the GIMP Tool Kit" -url="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html" -depends=('gtk+2' 'librsvg' 'libglade' 'libgnomecanvas' 'gnome-panel' 'libgnomeui' 'ocaml') -groups=('gnome-extra') -archs=('x86_64' 'i686') -options=('scriptlet') -up2date="lynx -dump $url |grep lablgtk-|sed -n 's/.*lablgtk-\(.*\)/\1/;1 p' | sed 's|.tar.gz||'" -source=(http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-$pkgver.tar.gz) -sha1sums=('99aecd26360c5ba8f0d17fb0cdae42ff083732ce') -license="LGPL" - -build () { - unset MAKEFLAGS - Fcd lablgtk-$pkgver - Fconf - make all opt || return 1 - make DESTDIR=$Fdestdir install || return 1 # Fmakeinstall doesn't work on i686 - Fmkdir usr/share/doc/$pkgname-$pkgver/examples - Ffile lablgtk-$pkgver/examples/*.ml usr/share/doc/$pkgname-$pkgver/examples/ -} - -# TODO: lablgl support. (gtkgl, etc.) diff --git a/source/xlib-extra/lablgtk2/FrugalBuild b/source/xlib-extra/lablgtk2/FrugalBuild new file mode 100644 index 0000000..4becd28 --- /dev/null +++ b/source/xlib-extra/lablgtk2/FrugalBuild @@ -0,0 +1,88 @@ +# Compiling Time: 1.51 SBU +# Maintainer: Christian Hamar alias krix <[EMAIL PROTECTED]> + +pkgname=lablgtk2 +pkgver=2.10.0 +pkgrel=1 +pkgdesc="An Objective Caml Interface to gtk2+" +url="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html" +depends=('gtk+2' 'ocaml' 'libxdamage') +makedepends=('librsvg' 'libglade' 'libgnomecanvas' 'gnome-panel' \ + 'libgnomeui' 'gtkspell' 'gtksourceview1' 'libgnomeprint') +groups=('xlib-extra') +archs=('i686' 'x86_64') +options=('scriptlet') +up2date="lynx -dump $url |grep lablgtk-|sed -n 's/.*lablgtk-\(.*\)/\1/;1 p' | sed 's|.tar.gz||'" +source=(http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-$pkgver.tar.gz \ + cflags-as-optflags.patch lablgtk-$pkgver-setlocale.patch) +sha1sums=('47cca75028a7a03dbcd3f22c1b73519e0e22384e' \ + '41dd59f6ea056e64074d076bc46572fe4ec755c8' \ + '36742803bddd67a6c828aadf56f2db0c7f9d0b56') +license="LGPL" + +subpkgs=("$pkgname-glade2" "$pkgname-rsvg" "$pkgname-gnomecanvas" \ + "$pkgname-gnome-panel" "$pkgname-gnomeui" "$pkgname-examples" \ + "$pkgname-gtkspell" "$pkgname-gtksourceview1" "$pkgname-docs") +subdescs=('Glade bindings for LablGtk2' 'Librsvg bindings for LablGtk2' \ + 'GnomeCanvas bindings for LablGtk2' 'Gnome Panel support for LablGtk2' \ + 'GnomeUI support for LablGtk2' 'Examples for LablGtk2' 'GtkSpell support for LablGtk2' \ + 'GtkSourceView bindings for LablGtk2' 'LablGtk2 Documentation') +subdepends=("$pkgname=$pkgver libglade" "$pkgname=$pkgver librsvg" "$pkgname=$pkgver libgnomecanvas" \ + "$pkgname=$pkgver gnome-panel libgnomeui" "$pkgname=$pkgver libgnomeui" '' \ + "$pkgname=$pkgver gtkspell" "$pkgname=$pkgver gtksourceview1 libgnomeprint" '') +subgroups=('xlib-extra' 'xlib-extra' 'gnome-extra' 'gnome-extra' \ + 'gnome-extra' 'xlib-extra' 'xlibs-extra' 'gnome-extra' 'docs-extra') +subarchs=('i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' \ + 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64') + +# TODO: lablgl support. (gtkgl, etc.) +unset MAKEFLAGS +build () +{ + Fcd lablgtk-$pkgver + Fpatchall + make configure || Fdie ## rofl + Fconf + make OPTFLAGS="$CFLAGS" all opt doc || Fdie + make DESTDIR=$Fdestdir install || Fdie + + ## -docs package + Fmkdir usr/share/gtk-doc/html/$pkgname + cp -ra doc/html/* $Fdestdir/usr/share/gtk-doc/html/$pkgname/ + Fsplit $pkgname-docs usr/share/gtk-doc/html/$pkgname + + ## -example package + Fmkdir usr/share/doc/$pkgname-$pkgver/examples + Ffile lablgtk-$pkgver/examples/*.ml usr/share/doc/$pkgname-$pkgver/examples/ + Fsplit $pkgname-examples usr/share/doc/$pkgname-$pkgver/examples + + ## -glade package + Fsplit $pkgname-glade2 usr/lib/ocaml/$pkgname/{*lablglade*,glade.*} + Fsplit $pkgname-glade2 usr/lib/ocaml/stublibs/dlllablglade* + + ## -rsvg package + Fsplit $pkgname-rsvg usr/lib/ocaml/$pkgname/{*lablrsvg*,rsvg.*} + Fsplit $pkgname-rsvg usr/lib/ocaml/stublibs/dlllablrsvg* + + ## -gnomecanvas package + Fsplit $pkgname-gnomecanvas usr/lib/ocaml/$pkgname/{*lablgnomecanvas*,gnomeCanvas*,gnoCanvas*} + Fsplit $pkgname-gnomecanvas usr/lib/ocaml/stublibs/dlllablgnomecanvas* + + ## -gnome-panel + Fsplit $pkgname-gnome-panel usr/lib/ocaml/$pkgname/{*lablpanel*,panel.*} + Fsplit $pkgname-gnome-panel usr/lib/ocaml/stublibs/dlllablpanel.* + + ## -gnomeui package + Fsplit $pkgname-gnomeui usr/lib/ocaml/$pkgname/{*lablgnomeui*,gnomeDruid*,gnoDruid*} + Fsplit $pkgname-gnomeui usr/lib/ocaml/stublibs/dlllablgnomeui.* + + ## -gtkspell package + Fsplit $pkgname-gtkspell usr/lib/ocaml/$pkgname/{*lablgtkspell*,gtkSpell*} + Fsplit $pkgname-gtkspell usr/lib/ocaml/stublibs/dlllablgtkspell* + + ## -gtksourceview1 + Fsplit $pkgname-gtksourceview1 usr/lib/ocaml/$pkgname/{*lablgtksourceview*,sourceViewEnums*,*SourceView*} + Fsplit $pkgname-gtksourceview1 usr/lib/ocaml/stublibs/dlllablgtksourceview.* +} + +# optimization OK diff --git a/source/xlib-extra/lablgtk2/cflags-as-optflags.patch b/source/xlib-extra/lablgtk2/cflags-as-optflags.patch new file mode 100644 index 0000000..e944702 --- /dev/null +++ b/source/xlib-extra/lablgtk2/cflags-as-optflags.patch @@ -0,0 +1,13 @@ +diff -Naur lablgtk-2.10.0/src/Makefile lablgtk-2.10.0-opt/src/Makefile +--- lablgtk-2.10.0/src/Makefile 2007-09-25 12:56:49.000000000 +0200 ++++ lablgtk-2.10.0-opt/src/Makefile 2007-10-28 18:07:15.000000000 +0100 +@@ -46,7 +46,8 @@ + #MLLINK += -cclib -lcamlrund + MLBYTEFLAGS = -g -dtypes + else +-CFLAGS = -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS) ++OPTFLAGS ?= ++CFLAGS = $(OPTFLAGS) -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS) + ifneq ($(TOOLCHAIN),msvc) + CFLAGS += -O + endif diff --git a/source/xlib-extra/lablgtk2/lablgtk-2.10.0-setlocale.patch b/source/xlib-extra/lablgtk2/lablgtk-2.10.0-setlocale.patch new file mode 100644 index 0000000..a378fc5 --- /dev/null +++ b/source/xlib-extra/lablgtk2/lablgtk-2.10.0-setlocale.patch @@ -0,0 +1,10 @@ +--- ./src/gtkMain.ml 2007-08-17 05:24:07.000000000 +0200 ++++ ./src/gtkMain.ml 2007-10-03 21:59:06.000000000 +0200 +@@ -43,6 +43,7 @@ + with Error err -> + raise (Error ("GtkMain.init: initialization failed\n" ^ err)) + in ++ if setlocale then ignore (Glib.Main.setlocale `NUMERIC (Some "C")); + Array.blit ~src:argv ~dst:Sys.argv ~len:(Array.length argv) + ~src_pos:0 ~dst_pos:0; + Obj.truncate (Obj.repr Sys.argv) (Array.length argv); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
