dev-ml/ocaml-gettext-stub: add 0.5.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-03-14 11:56:37 +01:00
parent 29b5c64153
commit bc6b2b9e7a
2 changed files with 46 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST ocaml-gettext-0.4.2.tar.gz 110249 BLAKE2B 54a25ba9f8fb20194fdfaf651586222fab68f927ebfa711812f7c9a387ff40c19e1bf3f63124127356b32b0ca0be2c5ff4e1cdfaf5f3afe690b90c0ca96c470d SHA512 fb89be8d8d9e0ed9327b81a0c81c884ff3f1a97e46b475ef8084abded5c84a256de05d5aa0f42be94f43ab438276a4506af726b6950e4161359a9616fb5832ec
DIST ocaml-gettext-0.5.0.tar.gz 113204 BLAKE2B c103e461da446eb65adbde33de2c37caf920d08cb334c4889364cbd54043fc88c366be67c424ad901819b6688d11c91f3d3a328fdb04ddf5cf0eab363512a412 SHA512 f55505bbe0da2a06053d94ee895a3e610a8d4ab5a2283ccff6a5a0c6a8ec011f5f286ab93e117cc340f55f056c7cdcb5752cc798e9d8e18fb5ab17f27f4a64c2

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN=${PN/-stub/}
MY_P=${P/-stub/}
DUNE_PKG_NAME="gettext-stub"
inherit dune
DESCRIPTION="Support for internationalization of OCaml programs using native gettext library"
HOMEPAGE="https://github.com/gildor478/ocaml-gettext"
SRC_URI="https://github.com/gildor478/ocaml-gettext/archive/v${PV}.tar.gz
-> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~ppc64"
IUSE="+ocamlopt test"
RESTRICT="test" # Tests fail.
RDEPEND="
~dev-ml/ocaml-gettext-${PV}:=[ocamlopt?]
"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-ml/dune-3.17
dev-ml/cppo
dev-ml/dune-configurator
test? (
dev-ml/ounit2[ocamlopt=]
dev-ml/seq[ocamlopt=]
)
"
src_compile() {
dune-compile ${DUNE_PKG_NAME}
}
src_test() {
dune-test ${DUNE_PKG_NAME}
}