diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2021-07-05 21:23:03 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2021-07-05 21:23:03 +0200 |
commit | 24c878bcf0b36279209d6bcfd7517308634359f7 (patch) | |
tree | fb94ab62ae710333447ec66d3bb8676a8d6962da /dev-ml | |
parent | app-doc/pms: Remove old (diff) | |
download | gentoo-24c878bcf0b36279209d6bcfd7517308634359f7.tar.gz gentoo-24c878bcf0b36279209d6bcfd7517308634359f7.tar.bz2 gentoo-24c878bcf0b36279209d6bcfd7517308634359f7.zip |
dev-ml/uutf: bump to 1.0.2
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/uutf/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/uutf/uutf-1.0.2.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-ml/uutf/Manifest b/dev-ml/uutf/Manifest index 29cbb152037b..89a09addc802 100644 --- a/dev-ml/uutf/Manifest +++ b/dev-ml/uutf/Manifest @@ -1 +1,2 @@ DIST uutf-1.0.1.tbz 22215 BLAKE2B 58cbb8db94024ddaa02c213df4e5321ad33513370c6d1d54ac09f57821df8ac3b330c2659f9aeb0e78dfd15d2f50be714a5a5d6e6d3dcc3f81539c1a6c8c3771 SHA512 35cbee8c82a566f2fe4fcd549936d4c4dc67f5b71bfd3ea97ff25d7cf21cfb77cb5ee313c95ad26a2a61bb84aa48c300bbb79a1a7128c6161e9abe9c390a7d18 +DIST uutf-1.0.2.tbz 22420 BLAKE2B 8391f6c3cde40db3fa86b9243d8ea8fb52409aa958d1020f302d602bf7c06c44b7d93f7a6a64a1b0964c7bb5856e15178957bba48102dbd36d8efe9581db3787 SHA512 5f2dbe78eaf73a292438d84c7185c839a7ac13cee9616a7b5006990314c6a0d42b212854cc2e89d815d3c45804f94bb40af75ecb60da7092887d8dc21e968bdd diff --git a/dev-ml/uutf/uutf-1.0.2.ebuild b/dev-ml/uutf/uutf-1.0.2.ebuild new file mode 100644 index 000000000000..320c6dea77ec --- /dev/null +++ b/dev-ml/uutf/uutf-1.0.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit findlib + +DESCRIPTION="Non-blocking streaming Unicode codec for OCaml" +HOMEPAGE="https://erratique.ch/software/uutf" +SRC_URI="https://erratique.ch/software/uutf/releases/${P}.tbz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="doc utftrip +ocamlopt test" +RESTRICT="!test? ( test )" +REQUIRED_USE="utftrip? ( ocamlopt )" + +RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] + dev-ml/uchar:= + utftrip? ( dev-ml/cmdliner:= )" +DEPEND="${RDEPEND} + dev-ml/ocamlbuild + dev-ml/topkg + test? ( dev-ml/cmdliner )" + +src_compile() { + ocaml pkg/pkg.ml build \ + --with-cmdliner "$(usex utftrip true false)" \ + || die +} + +src_test() { + if use ocamlopt ; then + ocamlbuild -use-ocamlfind tests.otarget || die + pushd _build/test || die + ./test.native || die + # Rebuild to avoid mismatches between installed files, bug #604674 + popd || die + ocaml pkg/pkg.ml build \ + --with-cmdliner "$(usex utftrip true false)" \ + || die + else + ewarn "Sorry, ${PN} tests require native support (ocamlopt)" + fi +} + +src_install() { + # Can't use opam-installer here as it is an opam dep... + findlib_src_preinst + local nativelibs="" + + use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)" + ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die + + use utftrip && newbin utftrip.$(usex ocamlopt native byte) utftrip + dodoc CHANGES.md README.md + + if use doc ; then + docinto html + dodoc -r doc/* + fi +} |