[Lablgtk-list] Completely new META file available

Adrien camaradetux at gmail.com
Mon Aug 22 16:38:07 CEST 2011


Many distributions currently provide a META file which differ from
upstream. The biggest issue is that each of them differ and can be a
problem for portability.

I made a new META file in the adrien/META branch[1] and hope it can be
adopted by all distributions. It creates sub-packages like lablgtk2.rsvg
which are only visible if the corresponding files also exist.

Please try it, report any problem or ideas for improvement. I plan to
merge it into master in 14 days if no-one objects.

As a side-note, it doesn't link gtkInit automatically like godi does but
provides a 'lablgtk.init' sub-package for convenience. The reason is
that it actually creates problems: it prevents using applications from
outside a graphical environment even when the use of lablgtk is
conditional (single fat binary for both console and X or configure tests
like in ocamlnet-gtk2).

GODI users have to configure the package to use git and slightly edit
the Makefile for godi-lablgtk2:

In godi-lablgtk2's configuration:
  [ 7]        LABLGTK_GIT_BRANCH = adrien/META
  [ 8]           LABLGTK_GIT_URI = /home/adrien/projects/lablgtk
In $PREFIX/build/godi/godi-lablgtk2/Makefile (which exists if you've
installed godi-lablgtk2), change the line 161 with:
  cp ${WRKSRC}/META ${LOCALBASE}/lib/ocaml/pkg-lib/lablgtk2
It simply tells godi to copy the in-distribution META file instead of
the additional one shipped in the godi package.

[1] http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=lablgtk/lablgtk.git;a=blob_plain;f=META;hb=refs/heads/adrien/META

Thanks for testing,

Adrien Nader

More information about the Lablgtk-list mailing list