Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/uutf/
Date: Mon, 28 Nov 2016 20:27:50
Message-Id: 1480364852.689ff1235a6f8b52a1a4b5d42c1d92c3caf694ca.aballier@gentoo
1 commit: 689ff1235a6f8b52a1a4b5d42c1d92c3caf694ca
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 20:25:51 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 20:27:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=689ff123
7
8 dev-ml/uutf: bump to 1.0.0
9
10 Package-Manager: portage-2.3.2
11
12 dev-ml/uutf/Manifest | 1 +
13 dev-ml/uutf/uutf-1.0.0.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-ml/uutf/Manifest b/dev-ml/uutf/Manifest
17 index 98c993d..19bb205 100644
18 --- a/dev-ml/uutf/Manifest
19 +++ b/dev-ml/uutf/Manifest
20 @@ -1 +1,2 @@
21 DIST uutf-0.9.4.tbz 36987 SHA256 13706722a0037b167eef359bac68d5426d05f64aa308f44c1784aace9577e1b8 SHA512 95203b06e7506f33822f10607315920b849efde3ed2e032bf8dd805f99ce4851b375bc92a1f95403673c97c6176c5a6974af2be611f530db0a7f36296948edf4 WHIRLPOOL a3446da14f665c06dbc9b245baf530c4650fb657baec02de7773cbb5addb2fdb5ddf9a98822a3af3b72b4800affcf2af39e44a6f37f17d221c55bd02b39c4cce
22 +DIST uutf-1.0.0.tbz 22182 SHA256 67dc4bd7ef6c8ab23ca62d34eb8c861a1f30624f3b009d45ac84772600672022 SHA512 ca033175aeaf2dafac9a7d2ad846f128d728bfbd7688c2c95d0db1d2a9b92a781d82c37d7bbfbede8934bbb6fa59a2df7530db0f0006032994971a7e4570999c WHIRLPOOL ad6e86cb3bc30cb4a139f6bfd081a256ea5a7054bd4fa06f2a8017b26a77265c352389961deb19f5affc3e6c6a72f5ad6cbfe9435b0a4d0b1adb9aba53a82ee4
23
24 diff --git a/dev-ml/uutf/uutf-1.0.0.ebuild b/dev-ml/uutf/uutf-1.0.0.ebuild
25 new file mode 100644
26 index 00000000..ae0cefe
27 --- /dev/null
28 +++ b/dev-ml/uutf/uutf-1.0.0.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI="5"
35 +
36 +inherit findlib
37 +
38 +DESCRIPTION="Non-blocking streaming Unicode codec for OCaml"
39 +HOMEPAGE="http://erratique.ch/software/uutf"
40 +SRC_URI="http://erratique.ch/software/uutf/releases/${P}.tbz"
41 +
42 +LICENSE="ISC"
43 +SLOT="0/${PV}"
44 +KEYWORDS="~amd64"
45 +IUSE="doc utftrip +ocamlopt test"
46 +
47 +RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
48 + utftrip? ( dev-ml/cmdliner:= )"
49 +DEPEND="${RDEPEND}
50 + dev-ml/ocamlbuild
51 + dev-ml/topkg
52 + test? ( dev-ml/cmdliner )"
53 +
54 +src_compile() {
55 + ocaml pkg/pkg.ml build \
56 + --with-cmdliner "$(usex utftrip true false)" \
57 + || die
58 +}
59 +
60 +src_test() {
61 + if use ocamlopt ; then
62 + ocamlbuild -use-ocamlfind tests.otarget || die
63 + cd _build/test || die
64 + ./test.native || die
65 + else
66 + ewarn "Sorry, ${PN} tests require native support (ocamlopt)"
67 + fi
68 +}
69 +
70 +src_install() {
71 + # Can't use opam-installer here as it is an opam dep...
72 + findlib_src_preinst
73 + local nativelibs=""
74 + use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)"
75 + ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die
76 + use utftrip && newbin utftrip.$(usex ocamlopt native byte) utftrip
77 + dodoc CHANGES.md README.md
78 + use doc && dohtml -r doc/*
79 +}