summaryrefslogtreecommitdiff
path: root/dev-ml/patch/patch-3.0.1.ebuild
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2025-10-23 20:31:31 +0200
committerMaciej Barć <xgqt@gentoo.org>2025-10-23 23:06:45 +0200
commitcdf1bfd2471e45cd29588889712c8c49344f3a16 (patch)
tree02c3fa5759f15f7f584316ec8b3d6f3d788e224a /dev-ml/patch/patch-3.0.1.ebuild
parent6f5b1b43341cc85bbd62cb6dce32424b078341fe (diff)
downloadgentoo-cdf1bfd2471e45cd29588889712c8c49344f3a16.tar.gz
gentoo-cdf1bfd2471e45cd29588889712c8c49344f3a16.tar.bz2
gentoo-cdf1bfd2471e45cd29588889712c8c49344f3a16.zip
dev-ml/patch: new package; add version 3.0.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-ml/patch/patch-3.0.1.ebuild')
-rw-r--r--dev-ml/patch/patch-3.0.1.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-ml/patch/patch-3.0.1.ebuild b/dev-ml/patch/patch-3.0.1.ebuild
new file mode 100644
index 000000000000..5bed8a29661b
--- /dev/null
+++ b/dev-ml/patch/patch-3.0.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Patch library purely in OCaml"
+HOMEPAGE="https://github.com/hannesm/patch/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/hannesm/${PN}"
+else
+ SRC_URI="https://github.com/hannesm/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+IUSE="+ocamlopt test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? (
+ dev-ml/alcotest
+ )
+"