summaryrefslogtreecommitdiff
path: root/dev-ml/ocaml-gettext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-ml/ocaml-gettext
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-ml/ocaml-gettext')
-rw-r--r--dev-ml/ocaml-gettext/Manifest2
-rw-r--r--dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch17
-rw-r--r--dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild59
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-ml/ocaml-gettext/Manifest b/dev-ml/ocaml-gettext/Manifest
index 56f1984707fd..212f0d3fb89f 100644
--- a/dev-ml/ocaml-gettext/Manifest
+++ b/dev-ml/ocaml-gettext/Manifest
@@ -1,6 +1,8 @@
AUX oc43.patch 773 BLAKE2B 8b5d3892c5cc050000a6c2512a84e890871df90d93c62f952d68309949776a6cd17dc1a38b0bdab6c4698c22198a4fcc98f595efbc28e37e3620c71d1c5297fa SHA512 99d2a01f3a7db768d5832e6527adc77e4272675b1027c96972171e5da71b29654ddf06a91b0882f957419aa19a651da92ba7b1eef5e0cde9542f812ed386cf4a
+AUX ocaml-unsafe-string.patch 599 BLAKE2B 22e49acb160c01cfc9eed25bfbfbf45b281ca049c77801a81c2d4a5191c50eea5650a2db2f34df1bd49169fa2bd49dbf957fee57e3fe181ef6c37252df04d693 SHA512 78ba4efdfb0e681c4ab77af7d957de7e56a67cd97557db991ab62ec857f8fa19d374c979b4773d2a9e146db5942ce124c1603aefab065c503ddded38eef9f6b7
DIST ocaml-gettext-0.3.5.tar.gz 165238 BLAKE2B 3da80a80cf3e722dc2a765e005bff0e7613967a5810d13c9d3c0a5b70a919b092627d398dc777775dd2b51dfc7bbe12040b844c609027b4c60cb5d23eda47198 SHA512 a60d51c09dad3076415ef24a9bb3121f84ad649d7a9fa1b9a7da719dd385e4ed7cd9ffbabefbade7ea0daf7b0a5a5eb71b1d0ed21b369914b49f66d0d918c446
DIST ocaml-gettext-0.3.7.tar.gz 134316 BLAKE2B 9de6ef9e04afbb6001ddc5ef145a687ad88a20eef1c27d3a3e6136f81ad46100cc6496cb66e3edfbf0f7eacfa8abbccb44d846d2f676862c96b8ceb860d8f424 SHA512 1358320359b9d2f3fd97a47d69b2a619942a65605c1e5cbf25e33ef42a10273167b526bca15e6c9523b87d8ea9dfd3215334050ad8eb84a8c41d4feef880a27a
EBUILD ocaml-gettext-0.3.5-r1.ebuild 1232 BLAKE2B dc4ce36eda01887a0a0c2bf578145927fd05d595ce0c9abb88ae13da5db6f77186d6a9dc468b4e82696bb43c59e9309145e403be28dcc17b703d378b86875968 SHA512 3e196fb9d695413a7e2c4e7715fa575e87d40b7a54811b1583fd8f7dcdae5df90c76394eb76a5d8f514d32cd49c9025fb2dcf091fff79cd5cf0dac88a796c68f
+EBUILD ocaml-gettext-0.3.7-r1.ebuild 1261 BLAKE2B cfecfc4af8590c4192c91ed4c0018358b4056d6d3e5fd453c3f5b777d7b8e93a0f7e7724dc96b9471e2024a97510612ddcde19fcbde035aee7198fcbca595c91 SHA512 bd22e47e7a27b0b129378367b533dbd85428b153827ad29d36a618d49d3d701a8ae931cf2fa4241be93a43fa92ddb2c83afce5c3cc598b6b5a90ddaca9f2034d
EBUILD ocaml-gettext-0.3.7.ebuild 1194 BLAKE2B 589c2f26e5752fe7267cfe2a2b327c55e98fc06240c828d4964c0f5fbefabe91b62f76622e3e84c3ef94ef430054df2a5efc2d80e068a0b7503def0adefccc23 SHA512 f0ad1b9ea7c1a2d320eb6ced4cb67638155f7f14234a3d946c2a6eaa5ba832d84fa1e6a2d525dcf36bfc938204dbb571ba25775e21c7fe77093aba10f06a2bbd
MISC metadata.xml 255 BLAKE2B 9f20991c7f1da432327bc91492493455f3a029b147991795fe5e5eca1842a70342e85957766de7c6781a64f2fef770d1c8fcee6da23d87df6c5aed04cad21fbd SHA512 fbc3e6b159b378b12c4ba12e0dcf1dcf86aba2029af9959c244a9da1b4264dda7a1ff8c18655400b966bba88fcf26ba04ee371ede500e0c0c6bfc45350e954d5
diff --git a/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch b/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch
new file mode 100644
index 000000000000..8d0a12c80d0e
--- /dev/null
+++ b/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch
@@ -0,0 +1,17 @@
+diff --git a/ConfMakefile.in b/ConfMakefile.in
+index 5a1e9ea..b562698 100644
+--- a/ConfMakefile.in
++++ b/ConfMakefile.in
+@@ -37,9 +37,9 @@ OCAMLLIB=@OCAMLLIB@
+ OCAMLFIND_COMMANDS = "ocamlc=@OCAMLC@ \
+ ocamlopt=@OCAMLOPT@ \
+ ocamldep=@OCAMLDEP@"
+-OCAMLC = @OCAMLFIND@ ocamlc
+-OCAMLOPT = @OCAMLFIND@ ocamlopt
+-OCAMLDEP = @OCAMLFIND@ ocamldep
++OCAMLC = @OCAMLFIND@ ocamlc -unsafe-string
++OCAMLOPT = @OCAMLFIND@ ocamlopt -unsafe-string
++OCAMLDEP = @OCAMLFIND@ ocamldep -unsafe-string
+ OCAMLBEST = @OCAMLBEST@
+ OCAMLVERSION = @OCAMLVERSION@
+ OCAMLFIND = @OCAMLFIND@
diff --git a/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild
new file mode 100644
index 000000000000..c4643c7c33ae
--- /dev/null
+++ b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit findlib eutils autotools
+
+DESCRIPTION="Provides support for internationalization of OCaml program"
+HOMEPAGE="https://github.com/gildor478/ocaml-gettext"
+SRC_URI="https://github.com/gildor478/ocaml-gettext/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+PATCHES=( "${FILESDIR}"/ocaml-unsafe-string.patch )
+
+RDEPEND=">=dev-lang/ocaml-3.12.1:=
+ >=dev-ml/ocaml-fileutils-0.4.0:=
+ >=dev-ml/camomile-0.8.3:=
+ sys-devel/gettext
+ dev-ml/camlp4:=
+"
+DEPEND="${RDEPEND}
+ doc? (
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ )
+ test? ( dev-ml/ounit )
+"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-docbook-stylesheet="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets/" \
+ $(use_enable doc) \
+ $(use_enable test)
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ findlib_src_preinst
+ emake -j1 DESTDIR="${D}" \
+ BINDIR="${ED}/usr/bin" \
+ PODIR="${ED}/usr/share/locale/" \
+ DOCDIR="${ED}/usr/share/doc/${PF}" \
+ MANDIR="${ED}/usr/share/man" \
+ install
+ dodoc CHANGELOG README THANKS TODO
+}