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/cmdliner: metadata.xml ChangeLog cmdliner-0.9.5.ebuild
Date: Wed, 29 Oct 2014 08:32:36
Message-Id: 20141029083231.B41448FCF@oystercatcher.gentoo.org
1 aballier 14/10/29 08:32:31
2
3 Added: metadata.xml ChangeLog cmdliner-0.9.5.ebuild
4 Log:
5 initial import, ebuild by Guillaume Horel in bug #520060 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/cmdliner/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/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/cmdliner/ChangeLog
27
28 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/ChangeLog?rev=1.1&view=markup
29 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/ChangeLog?rev=1.1&content-type=text/plain
30
31 Index: ChangeLog
32 ===================================================================
33 # ChangeLog for dev-ml/cmdliner
34 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
35 # $Header: /var/cvsroot/gentoo-x86/dev-ml/cmdliner/ChangeLog,v 1.1 2014/10/29 08:32:31 aballier Exp $
36
37 *cmdliner-0.9.5 (29 Oct 2014)
38
39 29 Oct 2014; Alexis Ballier <aballier@g.o> +cmdliner-0.9.5.ebuild,
40 +metadata.xml:
41 initial import, ebuild by Guillaume Horel in bug #520060 with a few
42 modifications by me
43
44
45
46
47 1.1 dev-ml/cmdliner/cmdliner-0.9.5.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/cmdliner-0.9.5.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/cmdliner/cmdliner-0.9.5.ebuild?rev=1.1&content-type=text/plain
51
52 Index: cmdliner-0.9.5.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/cmdliner/cmdliner-0.9.5.ebuild,v 1.1 2014/10/29 08:32:31 aballier Exp $
57
58 EAPI=5
59
60 inherit findlib
61
62 DESCRIPTION="Declarative definition of command line interfaces for OCaml"
63 HOMEPAGE="http://erratique.ch/software/cmdliner"
64 SRC_URI="http://erratique.ch/software/${PN}/releases/${P}.tbz"
65
66 LICENSE="BSD"
67 SLOT="0/${PV}"
68 KEYWORDS="~amd64"
69 IUSE="doc +ocamlopt"
70
71 DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
72 RDEPEND="${DEPEND}"
73
74 src_compile() {
75 ocaml pkg/build.ml \
76 native=$(usex ocamlopt true false) \
77 native-dynlink=$(usex ocamlopt true false) \
78 || die
79 }
80
81 src_install() {
82 # Can't use opam-installer here as it is an opam dep...
83 findlib_src_preinst
84 local nativelibs=""
85 use ocamlopt && nativelibs="$(echo _build/src/cmdliner.cm{x,xa,xs} _build/src/cmdliner.a)"
86 ocamlfind install cmdliner _build/pkg/META \
87 _build/src/cmdliner.mli _build/src/cmdliner.cm{a,i} ${nativelibs} || die
88 dodoc README.md TODO.md CHANGES.md
89 use doc && dohtml -r doc/
90 }