summaryrefslogtreecommitdiff
path: root/dev-ml/ocamlsdl
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/ocamlsdl
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/ocamlsdl')
-rw-r--r--dev-ml/ocamlsdl/Manifest6
-rw-r--r--dev-ml/ocamlsdl/files/ocamlopt.patch22
-rw-r--r--dev-ml/ocamlsdl/metadata.xml11
-rw-r--r--dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild63
4 files changed, 102 insertions, 0 deletions
diff --git a/dev-ml/ocamlsdl/Manifest b/dev-ml/ocamlsdl/Manifest
new file mode 100644
index 000000000000..cf0a1618081e
--- /dev/null
+++ b/dev-ml/ocamlsdl/Manifest
@@ -0,0 +1,6 @@
+AUX ocamlopt.patch 818 SHA256 2f225ec6233419c3fe6ee6ed7803d4a34dba053f17ed75a9539b1f7ee4293b6c SHA512 02e9b226073a537f5fc95059fb840c2f4be373470dea81934bea39ed9db5f7132c24d4da81bd64a04b51b9b8ea0d4e0bbc4b0f0f0f352dd61fe74c05d815de73 WHIRLPOOL 3a965ea8fa7922b2ddccd05814dfce61e2101e80194c07ae66b43013e704065391132fb7db426fb90035714497a56d23fe0e272f60cd6837101cb30a9e001b8e
+DIST ocamlsdl-0.9.1.tar.gz 226085 SHA256 abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f SHA512 8be444a3a4d1b56919c7a28fb607cbd33446f8cf30de3768a9926f23f86690d98ebb8ce6f2fb28c167ea76ac138b670283c5c93d72ea2565aa49a0dc92de181a WHIRLPOOL f9bf44f6d63626bbae3621100b7ed19ad6eaf392f1e9d2ef39440b17ac279b92a5156bff9cf432e3241fd5ec2419a7f002602405d13d6fb1b0bdbcd0baf233d8
+EBUILD ocamlsdl-0.9.1.ebuild 1332 SHA256 b9e955cbad1c9d90b8ce9ab2875ed65e2f4bb998c3f304e94fa3d89fc4b6716c SHA512 0c473febd39a956979d25310ea1e34383fe2a80f714a4c609d6c2a1c4dc96b798eed1489e24c240b263fd79f0b4c87c9e362d81e96ca060142156fad3e4d27f6 WHIRLPOOL 4f5f91acaed990068660fe2fe5fde83d0b62a4dbc21b439709273dfba9c2d823bfc51f97f7a5d84acfa172c1a1af7b22a1f9bc8cc0bcf4ef706eaa9bb6292d38
+MISC ChangeLog 2451 SHA256 a1cf83d1c772dae52b38bbff710181cf1d95aeba9ee2d56bde354d7e29e5f25f SHA512 27e747444c8e84c3a0bf793f0cc37c34b51838e144d63c818ae76ef245f60bd2967149be36bbb13f77fb0b5c281504e40d224e29f85c818255030a604b05b864 WHIRLPOOL 31e2bcb78bf200812fffbc8ba120265e4deee8cbdb32aa9a4d73487b469494a211ca79f750db907a382a20e45abaf29b37b1da8459518dee5380e66c5c86f555
+MISC ChangeLog-2015 3368 SHA256 e9cf0d0dcfb6d41878d42c5aba11be400a0272ea7435a5c2c7679e614a61aa21 SHA512 5694d54af1dd1b28df66882883e05f4bf1353d37cd6f23c0921cb29451e9ae15142d2ac149800177d0769d7ea13c712185b865dc78c66502360038bf2c4384bb WHIRLPOOL 5c629ea3051af296aef4ff5df83163439ff5a37cd83b501f02df6031816b73f5d8d424b311be144ccf3982182fd1b7b93d942862576559ebb411ea9bf891fea2
+MISC metadata.xml 325 SHA256 00b73fa1d3e2ebdaff26ba482a9150eacbd15767da8402c117b4b02a01c71607 SHA512 1ea238166b42dd9fdc7d86ac2f9810695ea35c948c1caffa948978508ca6877fde422fbeca2343d06eaf2cb996efcf05fcb2a96c791b73520417662e0611ce7b WHIRLPOOL 4259ba3fcf98fcafc7477f728c81993d7ad4d3800c8c61e6a187542e40493edccd8f2f2c036ee2672736fb0c57d611a38691d7f3ad2e0113c07e89fe885ad7a5
diff --git a/dev-ml/ocamlsdl/files/ocamlopt.patch b/dev-ml/ocamlsdl/files/ocamlopt.patch
new file mode 100644
index 000000000000..603654dceffa
--- /dev/null
+++ b/dev-ml/ocamlsdl/files/ocamlopt.patch
@@ -0,0 +1,22 @@
+Index: ocamlsdl-0.9.1/src/Makefile
+===================================================================
+--- ocamlsdl-0.9.1.orig/src/Makefile
++++ ocamlsdl-0.9.1/src/Makefile
+@@ -17,7 +17,7 @@ gfx_MODULES = sdlgfx
+
+ TARGETS = sdl.cma $(patsubst %,sdl%.cma,$(PARTS))
+ TARGETS += libsdlstub.$(A) $(patsubst %,libsdl%stub.$(A),$(PARTS))
+-ifdef OCAMLOPT
++ifneq ($(OCAMLOPT),no)
+ TARGETS += sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS))
+ endif
+
+@@ -87,7 +87,7 @@ ifdef OCAMLFIND
+ install-findlib :
+ $(OCAMLFIND) install sdl ../META \
+ *.cma lib*.$(A) *.cmi *.mli \
+- $(if $(OCAMLOPT),*.cmxa sdl*.$(A) *.cmx) \
++ $(if $(filter-out $(OCAMLOPT),no),*.cmxa sdl*.$(A) *.cmx) \
+ $(if $(OCAMLMKLIB),dll*.so)
+ ifeq ($(PLATFORM),Apple)
+ $(RANLIB) $$($(OCAMLFIND) printconf destdir)/sdl/*.$(A)
diff --git a/dev-ml/ocamlsdl/metadata.xml b/dev-ml/ocamlsdl/metadata.xml
new file mode 100644
index 000000000000..1f516f3074c3
--- /dev/null
+++ b/dev-ml/ocamlsdl/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">ocamlsdl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild b/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
new file mode 100644
index 000000000000..a18399af37b0
--- /dev/null
+++ b/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="OCaml SDL Bindings"
+
+HOMEPAGE="http://ocamlsdl.sourceforge.net"
+SRC_URI="mirror://sourceforge/ocamlsdl/${P}.tar.gz"
+LICENSE="LGPL-2"
+
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ppc x86"
+IUSE="doc +ocamlopt opengl truetype" #noimage nomixer
+
+RDEPEND="
+ >=dev-lang/ocaml-3.12:=[ocamlopt=]
+ >=media-libs/libsdl-1.2
+ opengl? ( >=dev-ml/lablgl-0.98:= )
+ >=media-libs/sdl-mixer-1.2
+ >=media-libs/sdl-image-1.2
+ truetype? ( >=media-libs/sdl-ttf-2.0 )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/ocamlopt.patch"
+}
+
+src_configure() {
+ myconf=""
+ if use opengl; then
+ destdir=`ocamlfind printconf destdir`
+ lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
+ if [ -z "${lablgldir}" ]; then
+ destdir=`ocamlc -where`
+ lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
+ fi
+
+ if [ ! -z "${lablgldir}" ]; then
+ myconf="--with-lablgldir=${lablgldir}"
+ fi
+ fi
+
+ #use noimage && myconf="${myconf} --without-sdl-image"
+ #use nomixer && myconf="${myconf} --without-sdl-mixer"
+
+ econf $myconf \
+ `use_enable truetype sdl-ttf`
+}
+
+src_install() {
+ findlib_src_install
+
+ dodoc AUTHORS NEWS README
+ doinfo doc/*.info*
+
+ if use doc; then
+ dohtml doc/html/*
+ fi
+}