Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/uutf: metadata.xml ChangeLog uutf-0.9.3.ebuild
Date: Wed, 29 Oct 2014 08:41:25
Message-Id: 20141029084119.EE47A10E5@oystercatcher.gentoo.org
1 aballier 14/10/29 08:41:19
2
3 Added: metadata.xml ChangeLog uutf-0.9.3.ebuild
4 Log:
5 initial import, ebuild by Guillaume Horel in bug #527294 with a few modifications by me
6
7 Signed-off-by: aballier@g.o
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.1 dev-ml/uutf/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <herd>ml</herd>
22 </pkgmetadata>
23
24
25
26 1.1 dev-ml/uutf/ChangeLog
27
28 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/ChangeLog?rev=1.1&view=markup
29 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/ChangeLog?rev=1.1&content-type=text/plain
30
31 Index: ChangeLog
32 ===================================================================
33 # ChangeLog for dev-ml/uutf
34 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
35 # $Header: /var/cvsroot/gentoo-x86/dev-ml/uutf/ChangeLog,v 1.1 2014/10/29 08:41:19 aballier Exp $
36
37 *uutf-0.9.3 (29 Oct 2014)
38
39 29 Oct 2014; Alexis Ballier <aballier@g.o> +uutf-0.9.3.ebuild,
40 +metadata.xml:
41 initial import, ebuild by Guillaume Horel in bug #527294 with a few
42 modifications by me
43
44
45
46
47 1.1 dev-ml/uutf/uutf-0.9.3.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/uutf-0.9.3.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/uutf/uutf-0.9.3.ebuild?rev=1.1&content-type=text/plain
51
52 Index: uutf-0.9.3.ebuild
53 ===================================================================
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-ml/uutf/uutf-0.9.3.ebuild,v 1.1 2014/10/29 08:41:19 aballier Exp $
57
58 EAPI="5"
59
60 inherit findlib
61
62 DESCRIPTION="Non-blocking streaming Unicode codec for OCaml"
63 HOMEPAGE="http://erratique.ch/software/uutf"
64 SRC_URI="http://erratique.ch/software/uutf/releases/${P}.tbz"
65
66 LICENSE="BSD"
67 SLOT="0/${PV}"
68 KEYWORDS="~amd64"
69 IUSE="+ocamlopt doc"
70
71 RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
72 DEPEND="${RDEPEND}"
73
74 src_compile() {
75 pkg/build $(usex ocamlopt true false) || die
76 }
77
78 src_test() {
79 if use ocamlopt ; then
80 ocamlbuild tests.otarget || die
81 cd _build/test || die
82 ./test.native || die
83 else
84 ewarn "Sorry, ${PN} tests require native support (ocamlopt)"
85 fi
86 }
87
88 src_install() {
89 # Can't use opam-installer here as it is an opam dep...
90 findlib_src_preinst
91 local nativelibs=""
92 use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)"
93 ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die
94 newbin utftrip.$(usex ocamlopt native byte) utftrip
95 dodoc CHANGES.md README.md
96 use doc && dohtml -r doc/*
97 }