1 |
commit: 45735cf35399b1944ad4eeb90a85196962d6613d |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 8 07:15:44 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 8 08:55:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45735cf3 |
7 |
|
8 |
dev-ml/uutf: Bump to 1.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-ml/uutf/Manifest | 1 + |
13 |
dev-ml/uutf/uutf-1.0.1.ebuild | 55 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/uutf/Manifest b/dev-ml/uutf/Manifest |
17 |
index d555c3e0162..522ca90b855 100644 |
18 |
--- a/dev-ml/uutf/Manifest |
19 |
+++ b/dev-ml/uutf/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST uutf-1.0.0.tbz 22182 SHA256 67dc4bd7ef6c8ab23ca62d34eb8c861a1f30624f3b009d45ac84772600672022 SHA512 ca033175aeaf2dafac9a7d2ad846f128d728bfbd7688c2c95d0db1d2a9b92a781d82c37d7bbfbede8934bbb6fa59a2df7530db0f0006032994971a7e4570999c WHIRLPOOL ad6e86cb3bc30cb4a139f6bfd081a256ea5a7054bd4fa06f2a8017b26a77265c352389961deb19f5affc3e6c6a72f5ad6cbfe9435b0a4d0b1adb9aba53a82ee4 |
22 |
+DIST uutf-1.0.1.tbz 22215 SHA256 123b26e7a471f2c5bd0fce454ccf515d299610ec356e321241fae0f75833e9be SHA512 35cbee8c82a566f2fe4fcd549936d4c4dc67f5b71bfd3ea97ff25d7cf21cfb77cb5ee313c95ad26a2a61bb84aa48c300bbb79a1a7128c6161e9abe9c390a7d18 WHIRLPOOL 31fe4dd2e7b9011e1788559d1e366c216921a5c65ec8f4b42788a2d3e65c8cf4b7870861f917932937dc132be75ef15fc4ecdd69791dbf651ff7c8585e133581 |
23 |
|
24 |
diff --git a/dev-ml/uutf/uutf-1.0.1.ebuild b/dev-ml/uutf/uutf-1.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..e8b1a1e0b2d |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/uutf/uutf-1.0.1.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit findlib |
36 |
+ |
37 |
+DESCRIPTION="Non-blocking streaming Unicode codec for OCaml" |
38 |
+HOMEPAGE="http://erratique.ch/software/uutf" |
39 |
+SRC_URI="http://erratique.ch/software/uutf/releases/${P}.tbz" |
40 |
+ |
41 |
+LICENSE="ISC" |
42 |
+SLOT="0/${PV}" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="doc utftrip +ocamlopt test" |
45 |
+ |
46 |
+RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] |
47 |
+ dev-ml/uchar:= |
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 |
+ pushd _build/test || die |
64 |
+ ./test.native || die |
65 |
+ #Rebuild to avoid mismatches between installed files, bug #604674 |
66 |
+ popd || die |
67 |
+ ocaml pkg/pkg.ml build \ |
68 |
+ --with-cmdliner "$(usex utftrip true false)" \ |
69 |
+ || die |
70 |
+ else |
71 |
+ ewarn "Sorry, ${PN} tests require native support (ocamlopt)" |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ # Can't use opam-installer here as it is an opam dep... |
77 |
+ findlib_src_preinst |
78 |
+ local nativelibs="" |
79 |
+ use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)" |
80 |
+ ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die |
81 |
+ use utftrip && newbin utftrip.$(usex ocamlopt native byte) utftrip |
82 |
+ dodoc CHANGES.md README.md |
83 |
+ use doc && dohtml -r doc/* |
84 |
+} |