summaryrefslogtreecommitdiff
path: root/dev-ml/patch/patch-3.0.1.ebuild
blob: 5bed8a29661bb1f206be9c42f4bc90361d2dc0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
	)
"