summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-11-02 16:58:49 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-11-02 16:58:49 +0100
commitaec78d7e883292feb514f4df0a9561e7166f8a5a (patch)
tree13db9819d357843030d4661cbac435e00d42b113 /dev-ml
parentdev-ml/dune: add 3.16.1 (diff)
downloadgentoo-aec78d7e883292feb514f4df0a9561e7166f8a5a.tar.gz
gentoo-aec78d7e883292feb514f4df0a9561e7166f8a5a.tar.bz2
gentoo-aec78d7e883292feb514f4df0a9561e7166f8a5a.zip
dev-ml/re: add 1.13.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/re/Manifest1
-rw-r--r--dev-ml/re/files/re-1.13.0-noSeq.patch9
-rw-r--r--dev-ml/re/re-1.13.0.ebuild44
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ml/re/Manifest b/dev-ml/re/Manifest
index 509ed2bc805c..1e97d873b315 100644
--- a/dev-ml/re/Manifest
+++ b/dev-ml/re/Manifest
@@ -1,3 +1,4 @@
DIST ocaml-re-1.10.4.tar.gz 90379 BLAKE2B 411786bd89c712db0a7fba071abd303895621f0353b52e33dffeba146994cf145ea7f5199435d5b4c4738eedafa5bb00b430c92fe072f13fe455bb30a0b29998 SHA512 1bef38154f856b48985a0dfa975dc8539f146d0308d7c2af01078f5e998683fd635c7ae4a888e95c1a4dc4df9539dcd5dc506a5ef8718386cf0073947507f91a
DIST ocaml-re-1.11.0.tar.gz 93319 BLAKE2B ccfba746e39d379c862576372694b9ce27f365996cad6c041b14e0a39514663cfb9bf32319ec67207cc5c8a65cd6278d0e111d2f15508bda54f7e0d89d528e8d SHA512 92096672833defba1b92b23bc4ce78cffb2501a21aca0dee264da1c8f35b5995154108d5f47318b9e37933537144359a742dce7825734c68dbd7d3d8ad4bc5b1
DIST ocaml-re-1.12.0.tar.gz 91945 BLAKE2B 2694ae75589484570d7eff17cf76e9cd6ac1869c4579964fa6a335d9d43dc3f5127141ea285661e9f16d706c8e8d5a861de566e9e0ae4e602de5c6fb29a3f4df SHA512 679a23d86e9ee21f2c451623b04e990beeedabdd5e6c460827292044804f7f7790c3c6a918c02cd6723a3885a7acf3c349b7529c6d4d7e03b9bc53767a3b7ae4
+DIST ocaml-re-1.13.0.tar.gz 98675 BLAKE2B dd5a2dabdb73d5c5079cc36b7d82ea829b25fcd19625098b14de6c78abe4e4e1832f35865b3ab76cc8d09c5d59ad697f5086bddc58b0963716c965d22d3cbcae SHA512 f6105787f318cfda72e4dedda085d44d6e95ca1ca98d2a3d0d4b877464c8aa50c816fd1592d9e23e7493b67734b7362748c17fe490cf31e2dba2c07381cd0b2a
diff --git a/dev-ml/re/files/re-1.13.0-noSeq.patch b/dev-ml/re/files/re-1.13.0-noSeq.patch
new file mode 100644
index 000000000000..07171df838ed
--- /dev/null
+++ b/dev-ml/re/files/re-1.13.0-noSeq.patch
@@ -0,0 +1,9 @@
+--- a/lib_test/expect/dune 2024-11-02 16:53:56.144246101 +0100
++++ b/lib_test/expect/dune 2024-11-02 16:54:33.130770522 +0100
+@@ -20,5 +20,5 @@
+ private_re
+ (library
+ (name re_private)
+- (libraries seq))
++ )
+ (copy_files %{project_root}/lib/*.{ml,mli}))
diff --git a/dev-ml/re/re-1.13.0.ebuild b/dev-ml/re/re-1.13.0.ebuild
new file mode 100644
index 000000000000..e135ea7f1a86
--- /dev/null
+++ b/dev-ml/re/re-1.13.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Regular expression library for OCaml"
+HOMEPAGE="https://github.com/ocaml/ocaml-re"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/ocaml/ocaml-re.git"
+else
+ SRC_URI="https://github.com/ocaml/ocaml-re/archive/${PV}.tar.gz
+ -> ocaml-${P}.tar.gz"
+ S="${WORKDIR}/ocaml-${P}"
+
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="LGPL-2-with-linking-exception"
+SLOT="0/${PV}"
+IUSE="+ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-lang/ocaml-4.12
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ test? ( dev-ml/ounit2 )
+"
+
+PATCHES=( "${FILESDIR}"/${P}-noSeq.patch )
+
+src_prepare() {
+ default
+
+ sed -i lib/dune -e "/(libraries seq)/d" || die
+}