summaryrefslogtreecommitdiff
path: root/dev-ml/extlib
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/extlib
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/extlib')
-rw-r--r--dev-ml/extlib/Manifest8
-rw-r--r--dev-ml/extlib/extlib-1.7.1.ebuild51
-rw-r--r--dev-ml/extlib/extlib-1.7.2.ebuild47
-rw-r--r--dev-ml/extlib/files/ocaml405.patch35
-rw-r--r--dev-ml/extlib/metadata.xml12
5 files changed, 153 insertions, 0 deletions
diff --git a/dev-ml/extlib/Manifest b/dev-ml/extlib/Manifest
new file mode 100644
index 000000000000..74481a1f6f00
--- /dev/null
+++ b/dev-ml/extlib/Manifest
@@ -0,0 +1,8 @@
+AUX ocaml405.patch 1539 SHA256 81444c594621a4deb54694c9eb83153049027dddf1d08972b704d9f05154c3a4 SHA512 664c9b840b77d08095e03dbd398f6af3118237fbffe73499bc2b0ee0dc8e40311337e65f3e0e95b2f87dddb9e75b18d27d2b712b314f725d97fd537f2ca23e52 WHIRLPOOL ee1ef347eaf4055c955347e879a2457b6de821d69b1672c5ed579c4fcc0449db4eaae06d6e341d73fc3eaefd2288a91e16a3f1ffc45ea9b34345fc7a7534dec8
+DIST extlib-1.7.1.tar.gz 85397 SHA256 872a492be08bb99ddac7512ec190625718359458b79cfc710f40d5a967f628eb SHA512 42ea1be22a57ab31e5857df0c4c0f98a07e1b5958b34181cd5ab7c83ded112c208315d22cd3dd178d53e75ca109a70cb47ae479e95be8c47ea2087b1a158dc4d WHIRLPOOL 70be2855559fdf217ffb392ad47a2b0d3ec22467a5fcfe48158b85b64f64051cf43c8ae585949ccacdc7f6e257b26523fd91942bffd5c4b28a73a5c4566145fc
+DIST extlib-1.7.2.tar.gz 85934 SHA256 00fa8ad0990e75b94902ef013ba5ec9cc51532663e1e3059ebe7a850576eb90a SHA512 d9f34f5bbd5e94a8dccc5bdbc1ec0e5015608675469c4f513461fa587a5eb7e1398542388fd885d7656591ca85ce30c0e2a9ee26b9722a9dd65189aac35d64ed WHIRLPOOL d58deb139c22639730c6841782e30f5361173dec83566cdfe92cbf25017d06636c666a322f5a38b68cfe12d206751f4b0c2f20c08e7f38f60b719e1b8b170f2d
+EBUILD extlib-1.7.1.ebuild 891 SHA256 3c4ace485a921e97e5f5de36e336beb06cb619594ad008790f968abb1414ca8b SHA512 b349d8d19e5f8a4ea4370ea9301f44e292a28dcbe8426e3d068042e22c5d643c161c5b4131ce1ed66de155a681c9c99068dccbb569d710e8c0ffb1ef36ce0cba WHIRLPOOL a0a8450cd2c89c27f0dad70ff57bfd6582e78aff95040dcbe371b9591c39ed57b41d7292df7a70a732b733e2766702a8b50d193814e2e3abfd06701897bd708a
+EBUILD extlib-1.7.2.ebuild 840 SHA256 442d5931fad7116c1248c4040b8f25e2929be3fa37a50879bb4afbcd0438a5d7 SHA512 c50cf98e44d44fe48f0c67ed398811cca2cbc0b2d94edf474c2d7d5bed5918263cb562df305b8aa31d501dc6e97417bc7acd4231e31bcefb7463b09161617211 WHIRLPOOL bb91e03b0e17b00042266da92fbd6d798b4c06011a9d2e9515edd51c9178aaabaa6ea5a736447718370ffe175433127f68e78a965005a956879dff0251019397
+MISC ChangeLog 4929 SHA256 54652e911656fe3afef55201b69b2a6f9a854a7c16d6e1dcb3eb5c108097f824 SHA512 4c2534ad8c60254d882f141485d46c6cf1eff0069d52b9240e379da84911786a6997bd505d2432f010a4f546016d143aac7bfaad3fa26dac14729399c8858c3c WHIRLPOOL c62f507d99d675dd8fad77ed46b6b1b06f9dd69b22bc7692ea5981c6ceb9683b90364b8dea1c1224efcd0713dd22aaee70d35daffd2b971f14e31c864e7d101c
+MISC ChangeLog-2015 4289 SHA256 b80e73fe92cb44cf8c028931b49ef1e59319f9ae4dbe8d7c8c2b0c7bd25c6cf0 SHA512 189d0ccc6e6fa009b10f1eb970843d7f5fc188dd6415399cf3347ff926bdcf8df938dd36ce3474fdbe975ccfe6d0f1eb97e6d8e55fb7bac55cca7cdac79cb0c0 WHIRLPOOL 2ff627b816e38166a4b42006d0d381a4b2b22bcff861673c28df650bf1206a290f202e50d49d4153af5b4cb4e35ca3b30d0fbe02181347915d315aa9da3e2251
+MISC metadata.xml 387 SHA256 c65c6d4ad54e19d2f808ab04861057433689f4791dfd43b6cbdf30f511129864 SHA512 b2805065022f5449f11da6db984ad7ea09260a600e0ac44228944f70fbede3de0cd3637c4fef6f0d33c16cd974fbd43c90b7a0fd7177a8ad9667d7a3464d1484 WHIRLPOOL 3ac0083784ae090078a0fce43d63fb9cca3bdcc1964a2c5a9822d01d800f66b8c7752677b00a2b0de3f254cfad6d32348e7950ba0b1a90c10fcbd1bdb03d6f39
diff --git a/dev-ml/extlib/extlib-1.7.1.ebuild b/dev-ml/extlib/extlib-1.7.1.ebuild
new file mode 100644
index 000000000000..33dffa043aaf
--- /dev/null
+++ b/dev-ml/extlib/extlib-1.7.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="Standard library extensions for O'Caml"
+HOMEPAGE="https://github.com/ygrek/ocaml-extlib"
+SRC_URI="https://github.com/ygrek/ocaml-extlib/archive/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="LGPL-2.1"
+DEPEND="
+ >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ dev-ml/cppo:=
+"
+RDEPEND="${DEPEND}"
+SLOT="0/${PV}"
+KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc +ocamlopt"
+S="${WORKDIR}/ocaml-${P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/ocaml405.patch"
+}
+
+src_compile() {
+ cd src
+ emake -j1 all
+ if use ocamlopt; then
+ emake opt cmxs
+ fi
+
+ if use doc; then
+ emake doc
+ fi
+}
+
+src_test() {
+ emake -j1 test
+}
+
+src_install () {
+ findlib_src_install
+
+ # install documentation
+ dodoc README.md
+
+ if use doc; then
+ dohtml src/doc/*
+ fi
+}
diff --git a/dev-ml/extlib/extlib-1.7.2.ebuild b/dev-ml/extlib/extlib-1.7.2.ebuild
new file mode 100644
index 000000000000..4f53ed7d6c4a
--- /dev/null
+++ b/dev-ml/extlib/extlib-1.7.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="Standard library extensions for O'Caml"
+HOMEPAGE="https://github.com/ygrek/ocaml-extlib"
+SRC_URI="https://github.com/ygrek/ocaml-extlib/archive/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="LGPL-2.1"
+DEPEND="
+ >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ dev-ml/cppo:=
+"
+RDEPEND="${DEPEND}"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc +ocamlopt"
+S="${WORKDIR}/ocaml-${P}"
+
+src_compile() {
+ cd src
+ emake -j1 all
+ if use ocamlopt; then
+ emake opt cmxs
+ fi
+
+ if use doc; then
+ emake doc
+ fi
+}
+
+src_test() {
+ emake -j1 test
+}
+
+src_install () {
+ findlib_src_install
+
+ # install documentation
+ dodoc README.md
+
+ if use doc; then
+ dohtml src/doc/*
+ fi
+}
diff --git a/dev-ml/extlib/files/ocaml405.patch b/dev-ml/extlib/files/ocaml405.patch
new file mode 100644
index 000000000000..4e3b04a1c8e5
--- /dev/null
+++ b/dev-ml/extlib/files/ocaml405.patch
@@ -0,0 +1,35 @@
+Index: ocaml-extlib-1.7.1/src/configure.ml
+===================================================================
+--- ocaml-extlib-1.7.1.orig/src/configure.ml
++++ ocaml-extlib-1.7.1/src/configure.ml
+@@ -3,5 +3,6 @@ let () =
+ print_endline (if Sys.ocaml_version >= "4.02.0" then "-D OCAML4_02 " else "");
+ print_endline (if Sys.ocaml_version >= "4.03.0" then "-D OCAML4_03 " else "");
+ print_endline (if Sys.ocaml_version >= "4.04.0" then "-D OCAML4_04 " else "");
++ print_endline (if Sys.ocaml_version >= "4.05.0" then "-D OCAML4_05 " else "");
+ let (_:int) = Sys.command "ocamlfind query -format \"-D WITH_BYTES\" bytes" in ();
+ exit 0
+Index: ocaml-extlib-1.7.1/src/extHashtbl.mli
+===================================================================
+--- ocaml-extlib-1.7.1.orig/src/extHashtbl.mli
++++ ocaml-extlib-1.7.1/src/extHashtbl.mli
+@@ -132,6 +132,9 @@ module type S =
+ val add : 'a t -> key -> 'a -> unit
+ val remove : 'a t -> key -> unit
+ val find : 'a t -> key -> 'a
++#ifdef OCAML4_05
++ val find_opt: 'a t -> key -> 'a option
++#endif
+ val find_all : 'a t -> key -> 'a list
+ val replace : 'a t -> key -> 'a -> unit
+ val mem : 'a t -> key -> bool
+@@ -167,6 +170,9 @@ module type SeededS =
+ val add : 'a t -> key -> 'a -> unit
+ val remove : 'a t -> key -> unit
+ val find : 'a t -> key -> 'a
++#ifdef OCAML4_05
++ val find_opt : 'a t -> key -> 'a option
++#endif
+ val find_all : 'a t -> key -> 'a list
+ val replace : 'a t -> key -> 'a -> unit
+ val mem : 'a t -> key -> bool
diff --git a/dev-ml/extlib/metadata.xml b/dev-ml/extlib/metadata.xml
new file mode 100644
index 000000000000..69a0f75ce938
--- /dev/null
+++ b/dev-ml/extlib/metadata.xml
@@ -0,0 +1,12 @@
+<?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="google-code">ocaml-extlib</remote-id>
+ <remote-id type="github">ygrek/ocaml-extlib</remote-id>
+ </upstream>
+</pkgmetadata>