summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-12-11 10:12:48 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-12-11 10:12:48 +0000
commitab3caee476650a5ea7418113be7c4d3d37fa944d (patch)
treec19259ad6f2f5171350da7a7131c6f15a0a5fbb4 /dev-ml/lablgl
parentarm/s390/sh stable (diff)
downloadgentoo-2-ab3caee476650a5ea7418113be7c4d3d37fa944d.tar.gz
gentoo-2-ab3caee476650a5ea7418113be7c4d3d37fa944d.tar.bz2
gentoo-2-ab3caee476650a5ea7418113be7c4d3d37fa944d.zip
version bump
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'dev-ml/lablgl')
-rw-r--r--dev-ml/lablgl/ChangeLog7
-rw-r--r--dev-ml/lablgl/files/digest-lablgl-1.033
-rw-r--r--dev-ml/lablgl/lablgl-1.03.ebuild73
3 files changed, 82 insertions, 1 deletions
diff --git a/dev-ml/lablgl/ChangeLog b/dev-ml/lablgl/ChangeLog
index 26511fa2b10b..df8371499028 100644
--- a/dev-ml/lablgl/ChangeLog
+++ b/dev-ml/lablgl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ml/lablgl
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.40 2007/08/07 13:12:23 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.41 2007/12/11 10:12:47 aballier Exp $
+
+*lablgl-1.03 (11 Dec 2007)
+
+ 11 Dec 2007; Alexis Ballier <aballier@gentoo.org> +lablgl-1.03.ebuild:
+ version bump
07 Aug 2007; Roy Marples <uberlord@gentoo.org> lablgl-1.00.ebuild:
Keyworded ~x86-fbsd
diff --git a/dev-ml/lablgl/files/digest-lablgl-1.03 b/dev-ml/lablgl/files/digest-lablgl-1.03
new file mode 100644
index 000000000000..6a281ff827e3
--- /dev/null
+++ b/dev-ml/lablgl/files/digest-lablgl-1.03
@@ -0,0 +1,3 @@
+MD5 1c16eb9298314b764851bc7d15fae88f lablgl-1.03.tar.gz 389404
+RMD160 b4214c2ca6e88d6dc6ebe09b1ca8c60cc5341e0c lablgl-1.03.tar.gz 389404
+SHA256 f4dcb28cb11e9a0791ba4d35eb86d9dcb19d8d4d0f3171dd18ede4c8d5e002db lablgl-1.03.tar.gz 389404
diff --git a/dev-ml/lablgl/lablgl-1.03.ebuild b/dev-ml/lablgl/lablgl-1.03.ebuild
new file mode 100644
index 000000000000..8bf3327732cf
--- /dev/null
+++ b/dev-ml/lablgl/lablgl-1.03.ebuild
@@ -0,0 +1,73 @@
+# 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.03.ebuild,v 1.1 2007/12/11 10:12:47 aballier Exp $
+
+inherit multilib eutils toolchain-funcs
+
+IUSE="doc"
+
+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
+ virtual/glut
+ >=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 ! 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
+}
+
+src_compile() {
+ # make configuration file
+ echo "BINDIR=/usr/bin" > Makefile.config
+ echo "GLLIBS = -lGL -lGLU" >> Makefile.config
+ echo "GLUTLIBS = -lglut" >> Makefile.config
+ 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
+
+ emake -j1 || die "failed to build"
+ emake -j1 opt || die "failed to build opt"
+}
+
+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
+}