diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ml/ocamlsdl | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ml/ocamlsdl')
-rw-r--r-- | dev-ml/ocamlsdl/Manifest | 4 | ||||
-rw-r--r-- | dev-ml/ocamlsdl/files/ocamlopt.patch | 22 | ||||
-rw-r--r-- | dev-ml/ocamlsdl/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild | 63 |
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-ml/ocamlsdl/Manifest b/dev-ml/ocamlsdl/Manifest new file mode 100644 index 000000000000..f2a9e7e069c5 --- /dev/null +++ b/dev-ml/ocamlsdl/Manifest @@ -0,0 +1,4 @@ +AUX ocamlopt.patch 818 BLAKE2B 8b4f66bc97b7aa6defda38324004ac68911708358fd1f8fa736701b19982e983480d804b13ed655dfe185333a5a21c2d6deefbb6c95eaac2226303c063c53dab SHA512 02e9b226073a537f5fc95059fb840c2f4be373470dea81934bea39ed9db5f7132c24d4da81bd64a04b51b9b8ea0d4e0bbc4b0f0f0f352dd61fe74c05d815de73 +DIST ocamlsdl-0.9.1.tar.gz 226085 BLAKE2B 30ee2f12cdc83344d3a8a9d1e187415b30d5ea83cfed4ac4709a0b4350e386961123e9504fc94a2b5643bb161c65d065298e3d6d8904cb55ab5436d243dfe588 SHA512 8be444a3a4d1b56919c7a28fb607cbd33446f8cf30de3768a9926f23f86690d98ebb8ce6f2fb28c167ea76ac138b670283c5c93d72ea2565aa49a0dc92de181a +EBUILD ocamlsdl-0.9.1.ebuild 1332 BLAKE2B 06eb79c3119c93249edc96fcb76bb4a6327ee926d15bc41003df928e679f2baed93aa65f69090c38686d010d3cebe3949710ede1bbd5c676a38418f68d79bf63 SHA512 0c473febd39a956979d25310ea1e34383fe2a80f714a4c609d6c2a1c4dc96b798eed1489e24c240b263fd79f0b4c87c9e362d81e96ca060142156fad3e4d27f6 +MISC metadata.xml 325 BLAKE2B 7a0dae9d3509a6529307a2a6d2bc5eab966afd94a21426c3c4127bc437d7a33209b5f9776482d02e3be5a0fa0d43ebfcfbf37298694fb129875f2f0e5261e34d SHA512 1ea238166b42dd9fdc7d86ac2f9810695ea35c948c1caffa948978508ca6877fde422fbeca2343d06eaf2cb996efcf05fcb2a96c791b73520417662e0611ce7b 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 +} |