summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-11-02 22:32:58 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-11-02 23:11:20 +0100
commit11b622a11b4eeda5c062ab93f3e81cde585005e6 (patch)
tree4ad2e99b7b598e18c3c56760b3748b0ff82c3e23 /dev-ml
parentdev-ml/ounit2: drop old 2.2.4 (diff)
downloadgentoo-11b622a11b4eeda5c062ab93f3e81cde585005e6.tar.gz
gentoo-11b622a11b4eeda5c062ab93f3e81cde585005e6.tar.bz2
gentoo-11b622a11b4eeda5c062ab93f3e81cde585005e6.zip
dev-ml/ounit2: bump to 2.2.7
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/ounit2/Manifest1
-rw-r--r--dev-ml/ounit2/files/ounit2-2.2.7-dune.patch19
-rw-r--r--dev-ml/ounit2/ounit2-2.2.7.ebuild28
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ml/ounit2/Manifest b/dev-ml/ounit2/Manifest
index c1515a660f4d..04db66dd1f95 100644
--- a/dev-ml/ounit2/Manifest
+++ b/dev-ml/ounit2/Manifest
@@ -1 +1,2 @@
DIST ounit2-2.2.6.tar.gz 69910 BLAKE2B 7833738e94990c7e67d27665e994c9e3c1505dcb45e2faaba58ef7de9eccc8fc19437fa983da058b1fa2c464e74d90a4eec22380ebfa01ae5e5a9616faf6ada3 SHA512 4d808866dc4f9de6493a17910fafb2452398aef45cb29add54ed25e15a10ec7715bdd52d40190f618e77fe351d8bb67fbe12c1df6a6736c501792a57f6b3768a
+DIST ounit2-2.2.7.tar.gz 69771 BLAKE2B 6fb43eccf33a02d3fbbbec1fd00b2901ae69bb55e9c94790ebcfed68f676bc0a9a573f4e03edc8c542e195b68c77deae0426c884ea81ceef1149548f6b760673 SHA512 b2cefed53127f724c099391eefe1bce3b43cad5d6b629b5f1e9446b58892639de758f5dbcbd5efb6c409ce77ed01d06693989a3ba909cf79c36c2554c1473396
diff --git a/dev-ml/ounit2/files/ounit2-2.2.7-dune.patch b/dev-ml/ounit2/files/ounit2-2.2.7-dune.patch
new file mode 100644
index 000000000000..845d7e9e4574
--- /dev/null
+++ b/dev-ml/ounit2/files/ounit2-2.2.7-dune.patch
@@ -0,0 +1,19 @@
+--- a/src/lib/ounit2/dune
++++ b/src/lib/ounit2/dune
+@@ -2,7 +2,7 @@
+ (name oUnit)
+ (public_name ounit2)
+ (wrapped false)
+- (libraries unix seq ounit2.advanced))
++ (libraries unix ounit2.advanced))
+
+ (documentation
+ (package ounit2)
+--- a/src/lib/ounit2/advanced/dune
++++ b/src/lib/ounit2/advanced/dune
+@@ -11,4 +11,4 @@
+ (name oUnitAdvanced)
+ (public_name ounit2.advanced)
+ (wrapped false)
+- (libraries unix seq stdlib-shims))
++ (libraries unix stdlib-shims))
diff --git a/dev-ml/ounit2/ounit2-2.2.7.ebuild b/dev-ml/ounit2/ounit2-2.2.7.ebuild
new file mode 100644
index 000000000000..fa12658631a0
--- /dev/null
+++ b/dev-ml/ounit2/ounit2-2.2.7.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Unit testing framework for OCaml"
+HOMEPAGE="https://github.com/gildor478/ounit"
+SRC_URI="https://github.com/gildor478/ounit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/ounit-${PV}"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+ocamlopt"
+
+DEPEND="
+ dev-ml/lwt:=
+ dev-ml/stdlib-shims:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-2.2.7-dune.patch" )
+
+src_install() {
+ dune-install ${PN} ${PN}-lwt
+}