summaryrefslogtreecommitdiff
path: root/dev-ml/lablgl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ml/lablgl
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/lablgl')
-rw-r--r--dev-ml/lablgl/Manifest5
-rw-r--r--dev-ml/lablgl/lablgl-1.05-r1.ebuild94
-rw-r--r--dev-ml/lablgl/metadata.xml8
3 files changed, 107 insertions, 0 deletions
diff --git a/dev-ml/lablgl/Manifest b/dev-ml/lablgl/Manifest
new file mode 100644
index 000000000000..50f4f8e4ce25
--- /dev/null
+++ b/dev-ml/lablgl/Manifest
@@ -0,0 +1,5 @@
+DIST lablgl-1.05.tar.gz 296597 SHA256 d8ff03e35b970d2b23a942f9e6ed65da5a6c123986bd0ecf5424a6205af34b61 SHA512 e8bf7d993610912d50ec3a6c18a24d2ff7d0727a41fe102e745050bb83ee02a9995e8b1b8c7dbd94f6b2a8363145f22e9772e36253dced762a63ec3c6c54379d WHIRLPOOL 74e9b15b2085d82c90f73cdf1d5330ced5cdc484d9775fe83c1cfdae6784e113d21ef53bdbb88ea02615bda0cc824f730fc0772dba3b486b2298c8dedcd9476f
+EBUILD lablgl-1.05-r1.ebuild 2066 SHA256 342b60d788f16f889e7f24ac653a6f0d708396fb2ff7265090989d41e1aa0ec6 SHA512 1c9144c89cd01ae1cf10b3f8f0d946789f50731d4f58322b27bc71680265f520e9f09be39e34f2d705f0ed8333926112914b75cda61cac5f7e6df8c2838d5bf1 WHIRLPOOL 2492927d13625a3d842809c2babdf66b05801c63b73d80c8801fb2047dfaa7e10070e7b2db126cb290334425ea0606e65cc923e8b2604ff243e503a370dc1f0d
+MISC ChangeLog 5744 SHA256 602320b6b0274b4e2ca54ccf9b347c88a6529288f5cfe0f5686077c330c890da SHA512 ab1b7749b94c0c71b2068f7cf424d4dd21f370eddbe87e7fe0983d18c1df1fcffc0c7d8303d12f7836694685e93f1287314f4b931b045e02e5621580de479ea6 WHIRLPOOL ceef060a20c41241d1c3c968ca086a7d881ea56dd3332eb504c85fa5c91247223f7d2f402c1d9fe4417be2d29b44e5d144357ad6e5039eaf61e67df6c6490bf5
+MISC ChangeLog-2015 10501 SHA256 09474d4527cae6987f2a826a2e6c3d8efadf95edf52731566b123fc1a9eaac22 SHA512 fb7202806d5e057dc5a3d997f2e3df8f31a192d08e9c075b1a7ae2e6f1dc5f8f2709bcc8848e25d5f6c0ba17ae4b2a53bda4c53c318f13457ff2624a2e1b0fed WHIRLPOOL 4efa5e168df17c003675e9a0105e5e81aa71def29217cf49aaa7453556c74c900670c3c97dfc75f406da07b62a57cc0ca7448b7f18cc86f25a8e12ed4862b1ef
+MISC metadata.xml 253 SHA256 3252720dd8d4ec7bb5445b2ae2ce9076da21fae984c5e13eb515933bdbf84277 SHA512 9285e04d22e8e41631e6de00e0ba02842cf0e772cd17a1d7ba3864e50eeea50abb06077ea4f9ac920eab3d520bfe28d389b3d04d5c3529af23a68ca68b6857d4 WHIRLPOOL 7ff76b173029194fbfaa950aaae5fe6a3eb9a58053753ad6f3b1dd0ded6c6a25c683fa588b890c4aa4c8ebd40160d979dc52ec5d61f7b56f3a33c75d8e4cfda6
diff --git a/dev-ml/lablgl/lablgl-1.05-r1.ebuild b/dev-ml/lablgl/lablgl-1.05-r1.ebuild
new file mode 100644
index 000000000000..d5f3958cde19
--- /dev/null
+++ b/dev-ml/lablgl/lablgl-1.05-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib eutils toolchain-funcs
+
+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"
+
+RDEPEND="
+ >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libX11
+ virtual/opengl
+ virtual/glu
+ dev-ml/camlp4:=
+ glut? ( media-libs/freeglut )
+ tk? (
+ >=dev-lang/tcl-8.3:0=
+ >=dev-lang/tk-8.3:0=
+ dev-ml/labltk:=
+ )
+ "
+
+DEPEND="${RDEPEND}"
+
+SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+src_configure() {
+ # 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
+}
+
+src_compile() {
+ if use tk; then
+ emake togl
+ if use ocamlopt; then
+ emake toglopt
+ fi
+ fi
+
+ emake lib
+ if use ocamlopt; then
+ emake libopt
+ fi
+
+ if use glut; then
+ emake glut
+ if use ocamlopt; then
+ emake 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=${ED}/usr/bin
+ BASE=${ED}/usr/$(get_libdir)/ocaml
+ emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" DLLDIR="${BASE}/stublibs" install
+
+ 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
+}
diff --git a/dev-ml/lablgl/metadata.xml b/dev-ml/lablgl/metadata.xml
new file mode 100644
index 000000000000..ffa6c6b4395b
--- /dev/null
+++ b/dev-ml/lablgl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+ </maintainer>
+</pkgmetadata>