commit:     bc6b2b9e7aff8f588e2472e0f82fb4e527d791aa
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 10:56:37 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 10:56:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc6b2b9e

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

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/ocaml-gettext-stub/Manifest                 |  1 +
 .../ocaml-gettext-stub-0.5.0.ebuild                | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-ml/ocaml-gettext-stub/Manifest 
b/dev-ml/ocaml-gettext-stub/Manifest
index 839e7295801b..7188f561754a 100644
--- a/dev-ml/ocaml-gettext-stub/Manifest
+++ b/dev-ml/ocaml-gettext-stub/Manifest
@@ -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

diff --git a/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.5.0.ebuild 
b/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.5.0.ebuild
new file mode 100644
index 000000000000..83a5d260bb3a
--- /dev/null
+++ b/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.5.0.ebuild
@@ -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}
+}

Reply via email to