Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ml/lablgl
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.50 2008/05/12 16:12:01 maekke Exp $
12 May 2008; Markus Meier
amd64 stable, bug #217545
19 Apr 2008; nixnut
Stable on ppc wrt bug 217545
17 Apr 2008; Raúl Porcel
ia64/sparc/x86 stable wrt #217545
16 Apr 2008; Tobias Klausmann
Stable on alpha, bug #217545
15 Apr 2008; Jeroen Roovers
Stable for HPPA (bug #217545).
09 Mar 2008; Alexis Ballier
+files/lablgl-1.03-tk8.5.patch, lablgl-1.03-r1.ebuild:
Import a patch from mandriva to build against tk8.5, thanks to Pacho Ramos
in bug #212678
*lablgl-1.03-r1 (24 Feb 2008)
24 Feb 2008; Alexis Ballier
+lablgl-1.03-r1.ebuild:
Build ocamlopt support if use ocamlopt is enabled... it was not built due to
a typo
12 Jan 2008; Alexis Ballier
Readd more modularity, bug #204121
02 Jan 2008; Alexis Ballier
Add support to not build with ocamlopt
*lablgl-1.03 (11 Dec 2007)
11 Dec 2007; Alexis Ballier
version bump
07 Aug 2007; Roy Marples
Keyworded ~x86-fbsd
22 Feb 2007; Piotr Jaroszyński
Transition to Manifest2.
03 Nov 2006; Alexandre Buisse
Change tcltk USE to tk (bug #17808).
01 Apr 2006; Alec Warner
QA issue bug 124326, sleep -> epause
21 Jul 2005; Herbie Hopkins
get_libdir-ized
19 Jun 2005; David Holm
Updated to use virtual/glut, bug #92613
06 May 2005; Sven Wegener
Removed * postfix from <, <=, >= and > dependencies.
01 Apr 2005; Aron Griffis
stable on ia64
14 Feb 2005; Karol Wojtaszek
Added eerror when ocaml doesn't support tcltk, but user have enabled
tcltk use flag, bug #44057
29 Dec 2004; Ciaran McCreesh
Change encoding to UTF-8 for GLEP 31 compliance
25 Aug 2004; Matthieu Sozeau
-files/LablGL-0.97-Makefile-destdir.patch,
-files/LablGL-0.97-Makefile.config,
-files/LablGL-0.98-Makefile-destdir.patch,
-files/LablGL-0.98-Makefile.config:
Remove old, unused files.
25 Aug 2004; Matthieu Sozeau
-lablgl-0.98.ebuild, -lablgl-0.99-r1.ebuild, -lablgl-0.99.ebuild,
lablgl-1.00.ebuild:
Stable on ppc, remove old versions.
22 Aug 2004; Travis Tilley
stable on amd64
15 Aug 2004; Jason Wever
Stable on sparc.
08 Aug 2004; Matthieu Sozeau
Move to stable on x86.
13 Jul 2004; Travis Tilley
adding back ~amd64 keyword
02 Jul 2004; Matthieu Sozeau
Fix building rules when glut is not set and tcltk is.
29 Jun 2004; Matthieu Sozeau
Fix makefile, when glut flag is not set, there's no need to link with glut.
08 Jun 2004; Bryan Østergaard
Stable on alpha.
28 May 2004; Danny van Dyk
Marked -amd64 as dependencies aren't fulfilled anymore.
11 May 2004; Guy Martin
Marked stable on hppa.
17 Apr 2004; Travis Tilley
added ~amd64 keyword
24 Mar 2004; Jason Wever
Stable on sparc.
22 Mar 2004; Matthieu Sozeau
Put 0.99-r1 into stable for x86 and ppc
18 Feb 2004; Matthieu Sozeau
lablgl-0.98.ebuild, lablgl-0.99.ebuild:
Remove opengl?, it is not an optional dependancy.
17 Feb 2004; Aron Griffis
add ~alpha and ~ia64
*lablgl-1.00 (06 Feb 2004)
06 Feb 2004; Matthieu Sozeau
files/lablgl-1.00-Makefile.config:
Version bump, added local glut use flag and optional documentation (examples).
*lablgl-0.99-r1 (03 Feb 2004)
03 Feb 2004; Matthieu Sozeau
metadata.xml:
Reworked ebuild so as to have tcltk as an optional dependancy.
Added metadata.xml for ml herd.
26 Dec 2003; Jason Wever
Marked stable on sparc to fix broken net-misc/unison dependencies.
24 Nov 2003; Jason Wever
lablgl-0.99.ebuild:
Added ~sparc keyword.
*lablgl-0.99 (08 Jul 2003)
08 Jul 2003; Martin Holzer
Version bumped. Closes #24701.
*lablgl-0.98 (03 Sep 2002)
28 Jan 2003; Jon Nall
added ~ppc
24 Oct 2002; George Shapovalov
made labltk and ocaml check-up logic more smart. Now should work fine in every situation.
Thanks to Jeffrey Palmer
24 Oct 2002; George Shapovalov
lablgl requires ocaml compiled with tk support. Ocaml has tk as an optional dependency.
Added some code to pkg_setup to detect if the tcltk USE var is set and abort if not with the message
asking user to emerge ocaml with tk support.
See bug #8126 for details. Thanks to Sami Nieminen
Jeffrey Palmer
The above hack is goinmg to only catch 95% of situations. The real fix involves modifications to portage
to make it correctly process optional dependencies of dependencies. See bug #2272 for details.
03 Sep 2002; G Shapovalov
updated to 0.98. This fixes some build failures with ocaml-3.06.
*lablgl-0.97.ebuild (28 Jun 2002)
28 Jun 2002; G Shapovalov
initial release
form the README:
LablGL is an OpenGL interface for Objective Caml. Since it includes
support for the Togl widget, you can comfortably use it with LablTk.
ebuild submitted by Bardur Arantsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
AUX lablgl-1.00-Makefile.config 371 RMD160 49001982571e098388740d7a4fbc2437647d1ae8 SHA1 59bc604ad8f4c1341c8fd2cbb910a99a5441babe SHA256 124d2887a3be76a38af2e427d8074561941dfe209129db692e844acf91f8b98e
AUX lablgl-1.03-tk8.5.patch 534 RMD160 af4527af9f0870c5a6c7b112d4ba0802fe121990 SHA1 22754c689cf7641d07aa8f98ca43b891b8316a2b SHA256 219d195d385c701601d04b9b5c74bd2caa3e2712c79982dc9b371df0b8eba8e8
DIST lablgl-1.00.tar.gz 390570 RMD160 b61fb3d7311becbf9be3f54256a3bec76481b615 SHA1 73da3b3673112e4cf130b3ee73c16268641862c8 SHA256 f52558487b545776f29658f2c2d12c58c3915760818a6acb9847cb3b0d060a71
DIST lablgl-1.03.tar.gz 389404 RMD160 b4214c2ca6e88d6dc6ebe09b1ca8c60cc5341e0c SHA1 f86de74e4f14d8a636fa87d9d4307ab35a214049 SHA256 f4dcb28cb11e9a0791ba4d35eb86d9dcb19d8d4d0f3171dd18ede4c8d5e002db
EBUILD lablgl-1.00.ebuild 2240 RMD160 c835af0dcf830c14b332344ca6014a58d5603c7b SHA1 dca39f01f2187fa36ccf753c17c703882f35e536 SHA256 9ca8815ad99d7ca679325034acb74401191917367bb3296dc1aead6a354ca439
EBUILD lablgl-1.03-r1.ebuild 3020 RMD160 a5c68b9ae6fb0cc2bdf997bda9bbfa4be052fc48 SHA1 b108c8b8294443780db766fb9fc39036515d2777 SHA256 d7173916389db748672ef159d4b6582c82372ffa9360d01971b8768d88809eb3
MISC ChangeLog 6977 RMD160 fe5a968b5d0d3e81527ca2b28807bfac0fe41d04 SHA1 cffaf892f179903e3c0c41180e637f7c37c2bec6 SHA256 fea68252e8b56345d18dea8bd16cf7874b0481b75b8f43d5390b29485b5b2747
MISC metadata.xml 157 RMD160 30153301a2a5cca5547a6e47941aae2895837613 SHA1 66e87d50f913856e703f3ee29841b03332af40db SHA256 d14b8b08774f2a40f42d70ff40b1b4f1c4725e7095d702143a32909553eac799
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkgobIAACgkQkKaRLQcq0GLNngCglDuhS9knwVK6xzmQ6IF9bB6M
ZJ8An1UVqKvpfAOSNODrUkWLLwVRKQe6
=a9mF
-----END PGP SIGNATURE-----
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.00.ebuild,v 1.25 2007/08/07 13:12:23 uberlord Exp $
inherit multilib eutils
IUSE="tk glut doc"
DESCRIPTION="Objective CAML interface for OpenGL"
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html"
LICENSE="as-is"
DEPEND=">=dev-lang/ocaml-3.05
virtual/opengl
glut? ( virtual/glut )
tk? (
>=dev-lang/tcl-8.3
>=dev-lang/tk-8.3
)"
SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86 ~x86-fbsd"
pkg_setup()
{
if ( use tk )
then
#lablgl requires ocaml compiled with tk support while ocaml has it as an optional dependency
if ( ! built_with_use dev-lang/ocaml tk )
then
eerror "You don't have ocaml compiled with tk support"
eerror ""
eerror "lablgl requires ocaml be built with tk support."
eerror ""
eerror "Please recompile ocaml with tk useflag enabled."
epause 5
die "Ocaml is missing tk support";
fi
fi
}
src_compile() {
# make configuration file
cp ${FILESDIR}/${P}-Makefile.config ${S}/Makefile.config || die
if ! (use glut); then
sed -i "s/-lglut//" Makefile.config
fi
if use tk; then
make togl toglopt
fi
if use glut; then
make glut glutopt
else
make lib libopt
fi
}
src_install () {
# Makefile do not use mkdir so the library is not installed
# but copied as a 'stublibs' file.
dodir /usr/$(get_libdir)/ocaml/stublibs
# Same for lablglut's toplevel
dodir /usr/bin
BINDIR=${D}/usr/bin
BASE=${D}/usr/$(get_libdir)/ocaml
make BINDIR=${BINDIR} INSTALLDIR=${BASE}/lablGL DLLDIR=${BASE}/stublibs install || die
dodoc README CHANGES COPYRIGHT
if ( use doc && use tk ) then
DIR=usr/share/doc/${PF}
cp -R Togl/examples/ ${D}/${DIR}/examples.togl
fi
if ( use glut ) then
cd LablGlut
newdoc README README.glut
newdoc ChangeLog ChangeLog.glut
newdoc CHANGES CHANGES.glut
newdoc COPYRIGHT COPYRIGHT.glut
newdoc THANKS THANKS.glut
newdoc TODO TODO.glut
if ( use doc ) then
DIR=usr/share/doc/${PF}
cp -R examples ${D}/${DIR}/examples.glut
fi
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.03-r1.ebuild,v 1.7 2008/05/12 16:12:01 maekke Exp $
inherit multilib eutils toolchain-funcs
EAPI="1"
IUSE="doc glut +ocamlopt tk"
DESCRIPTION="Objective CAML interface for OpenGL"
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html"
LICENSE="BSD"
DEPEND=">=dev-lang/ocaml-3.05
virtual/opengl
x11-libs/libXext
x11-libs/libXmu
x11-libs/libX11
glut? ( virtual/glut )
tk? ( >=dev-lang/tcl-8.3
>=dev-lang/tk-8.3 )"
SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86 ~x86-fbsd"
pkg_setup() {
if use tk && ! built_with_use dev-lang/ocaml tk ; then
eerror "You don't have ocaml compiled with tk support"
eerror ""
eerror "lablgl requires ocaml be built with tk support."
eerror ""
eerror "Please recompile ocaml with tk useflag enabled."
die "Ocaml is missing tk support"
fi
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-tk8.5.patch"
}
src_compile() {
# make configuration file
echo "BINDIR=/usr/bin" > Makefile.config
echo "GLLIBS = -lGL -lGLU" >> Makefile.config
if use glut; then
echo "GLUTLIBS = -lglut" >> Makefile.config
else
echo "GLUTLIBS = " >> Makefile.config
fi
echo "XLIBS = -lXext -lXmu -lX11" >> Makefile.config
echo "RANLIB = $(tc-getRANLIB)" >> Makefile.config
echo 'COPTS = -c -O $(CFLAGS)' >> Makefile.config
echo 'INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES)' >> Makefile.config
if use tk; then
emake -j1 togl || die "failed to build togl"
if use ocamlopt; then
emake -j1 toglopt || die "failed to build native code togl"
fi
fi
emake -j1 lib || die "failed to build the library"
if use ocamlopt; then
emake -j1 libopt || die "failed to build native code library"
fi
if use glut; then
emake -j1 glut || die "failed to build glut"
if use ocamlopt; then
emake -j1 glutopt || die "failed to build native code glutopt"
fi
fi
}
src_install () {
# Makefile do not use mkdir so the library is not installed
# but copied as a 'stublibs' file.
dodir /usr/$(get_libdir)/ocaml/stublibs
# Same for lablglut's toplevel
dodir /usr/bin
BINDIR=${D}/usr/bin
BASE=${D}/usr/$(get_libdir)/ocaml
emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" DLLDIR="${BASE}/stublibs" install || die "make install failed"
dodoc README CHANGES
if use doc ; then
insinto /usr/share/doc/${PF}
mv Togl/examples{,.togl}
doins -r Togl/examples.togl
mv LablGlut/examples{,.glut}
doins -r LablGlut/examples.glut
fi
}