summaryrefslogtreecommitdiff
path: root/dev-ml/camomile
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml/camomile')
-rw-r--r--dev-ml/camomile/Manifest6
-rw-r--r--dev-ml/camomile/camomile-0.8.5-r1.ebuild41
-rw-r--r--dev-ml/camomile/files/ocaml405.patch40
-rw-r--r--dev-ml/camomile/metadata.xml11
4 files changed, 98 insertions, 0 deletions
diff --git a/dev-ml/camomile/Manifest b/dev-ml/camomile/Manifest
new file mode 100644
index 000000000000..13af3edf56c5
--- /dev/null
+++ b/dev-ml/camomile/Manifest
@@ -0,0 +1,6 @@
+AUX ocaml405.patch 1469 SHA256 dc65e6b32d005fc964b890ecb0002eaf776702194a4f155a07c8ba17d331af0b SHA512 b8951a401ee8b4c4e49e4a144c6ea5e0cc3c50ab62c95f34a4766fd46a4a93d9eea13c5d30b00eabaee00d70a3cc82a8251d110e622e00c623c8467867cc95ba WHIRLPOOL 833aff92ea519b88f75a4c918f02a043dca2fc9c9a1124bc268a000ab0241709808e0a641aeb77bc532392ab4c9ca7edc2461a665be0c4c7da7e144d041df6c0
+DIST camomile-0.8.5.tar.bz2 2607084 SHA256 85806b051cf059b93676a10a3f66051f7f322cad6e3248172c3e5275f79d7100 SHA512 ef4da32f955e69e0b2958b4b2bf12ae94e210d8aa7cee5a9030607b79ac43a884758549f3164c223fb07d987a4a50b15f0bc5083ff67120270409f7fb9928014 WHIRLPOOL 72bed65fb030548430a352b76a63b1171b964ad78676a6ce0bb2a8d3555ea097e0002321a3c2d13ec933ca29755f4780c77f28e485053d9ddbd6908e8c4cf6b5
+EBUILD camomile-0.8.5-r1.ebuild 888 SHA256 c365567e3f0639d05553afd9273b9256ead5ca5376b4cd7e3691ad290d0d7ed3 SHA512 8adaa7baea01f24cec23a0ef28efd92a33d910a2b9eb3b3920fe2f180ef397198b9055f4f8880c5dab793295a59238fa13488e8c5f50b0fabfbabda97166f2c6 WHIRLPOOL ff76771eb356114a5b05c8ff2da38e00e03dd24b975dd9c3dd4b9b5190d3b6e035ebfae8ecd586384e67fb61852640e887eb5e60869ac35c72a5f6b974e3a05e
+MISC ChangeLog 4583 SHA256 ae6b06fcab2676d7cce48105e664b396e8d80ec113910bf4b557ea76a2e6a100 SHA512 6d97d86d8653e2e640c71c19e97457739ade3ed63c19173346352565d8ce7298c0a5277df15ca490ec644fe1b8915d9568aebe0d055bbb98d855759c62306eca WHIRLPOOL d93f3989213061b8b0e019d43fd2d47e8bbf63bf2513f7e84ce35c5eb4defd9f5a75e192eb188a72b20923c15819d26b504386f9e4e0df8f2830c865819e3395
+MISC ChangeLog-2015 4787 SHA256 10ec5201c94cf76b2e1d673934f3a3f619b0e4aaa0fc6e0a3faa0a4675a4e97a SHA512 7d9ee0482bf09d55a6f0f5a95be093878e1e56831fc27de03aa737cff62944f4831a3742cb1a8fbce67294769a4d9b9a9884c7512ab136a39131eacbb243ed2d WHIRLPOOL 6c7f4d16fb18186125c4046c15304e336ed2357a08682a18370681651ee108a6a2cfe27f46ba685c04db262cdb393970faa8cdea23cbb96769a8db96e96452ca
+MISC metadata.xml 339 SHA256 3c6851062f4fe51e9089da6685d810cfae719a945f3279ea0f2841f28c256fa1 SHA512 32caf2bcfc2f9481faf5d86ba612d0da5887f767236aee93f5c8c647044f38e31f0dac30c63566c131be42037d22511147c8eedd2832082d731fe19a533964d0 WHIRLPOOL 9c2c0746617abdc99857bca26d7e8a6762364cb7bf440dccf131fa020453ee6b16a072123aa723c681fe812a822012b8ec40e182bfc80ef02df18d65893d2648
diff --git a/dev-ml/camomile/camomile-0.8.5-r1.ebuild b/dev-ml/camomile/camomile-0.8.5-r1.ebuild
new file mode 100644
index 000000000000..68d9d15dcc3e
--- /dev/null
+++ b/dev-ml/camomile/camomile-0.8.5-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="Camomile is a comprehensive Unicode library for ocaml"
+HOMEPAGE="https://github.com/yoriyuki/Camomile/wiki"
+SRC_URI="https://github.com/yoriyuki/Camomile/releases/download/rel-${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0/${PV}"
+KEYWORDS="amd64 ppc x86"
+IUSE="debug +ocamlopt"
+
+RDEPEND="
+ >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ dev-ml/camlp4:=
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ has_version '>=dev-lang/ocaml-4.05_beta' && epatch "${FILESDIR}/ocaml405.patch"
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+src_compile() {
+ emake -j1 byte unidata unimaps charmap_data locale_data
+ if use ocamlopt; then
+ emake -j1 opt
+ fi
+}
+
+src_install() {
+ dodir /usr/bin
+ findlib_src_install DATADIR="${D}/usr/share" BINDIR="${D}/usr/bin"
+}
diff --git a/dev-ml/camomile/files/ocaml405.patch b/dev-ml/camomile/files/ocaml405.patch
new file mode 100644
index 000000000000..3fec6955a27c
--- /dev/null
+++ b/dev-ml/camomile/files/ocaml405.patch
@@ -0,0 +1,40 @@
+commit 0fa0a19f15998e89e4b04150dd74529bbd406f42
+Author: Gabriel Scherer <gabriel.scherer@gmail.com>
+Date: Fri Feb 24 22:30:23 2017 -0500
+
+ 4.05 compatibility: use explicit module signatures
+
+ In 4.05, checking for non-generalizable inference variable ('_a)
+ (forbidden in toplevel modules and functors) happens before checking
+ the .ml file against the .mli signature, so non-generalizable
+ variables that were previously resolved through the .mli constraint
+ are now underspecified and result in a compilation failure
+ (see MPR#7414, GPR#929). This commit adds enough annotations to avoid
+ such underspecified variables in functors.
+
+diff --git a/Camomile/internal/unimap.ml b/Camomile/internal/unimap.ml
+index b6fdbde..6a7cc30 100644
+--- a/Camomile/internal/unimap.ml
++++ b/Camomile/internal/unimap.ml
+@@ -58,7 +58,7 @@ val of_name : string -> t
+ end
+
+
+-module Make (Config : ConfigInt.Type) = struct
++module Make (Config : ConfigInt.Type) : Type = struct
+
+ type mapping = {no_char : int; tbl : Tbl31.Bytes.t}
+
+diff --git a/Camomile/public/uCharInfo.ml b/Camomile/public/uCharInfo.ml
+index 69bf141..6a0337a 100644
+--- a/Camomile/public/uCharInfo.ml
++++ b/Camomile/public/uCharInfo.ml
+@@ -298,7 +298,7 @@ val load_composition_exclusion_tbl : unit -> UCharTbl.Bool.t
+
+ end
+
+-module Make (Config : ConfigInt.Type) = struct
++module Make (Config : ConfigInt.Type) : Type = struct
+ include Unidata.Make(Config)
+
+ (* General category *)
diff --git a/dev-ml/camomile/metadata.xml b/dev-ml/camomile/metadata.xml
new file mode 100644
index 000000000000..82a7e9775c14
--- /dev/null
+++ b/dev-ml/camomile/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="github">yoriyuki/Camomile</remote-id>
+ </upstream>
+</pkgmetadata>