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/xml-light: ChangeLog xml-light-2.2-r3.ebuild
Date: Thu, 30 Oct 2014 16:34:08
Message-Id: 20141030163402.627119149@oystercatcher.gentoo.org
1 aballier 14/10/30 16:34:02
2
3 Modified: ChangeLog
4 Added: xml-light-2.2-r3.ebuild
5 Log:
6 build & install native binaries if wanted, bug #520100 by José Romildo Malaquias
7
8 Signed-off-by: aballier@g.o
9 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
10
11 Revision Changes Path
12 1.11 dev-ml/xml-light/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/xml-light/ChangeLog?rev=1.11&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/xml-light/ChangeLog?rev=1.11&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/xml-light/ChangeLog?r1=1.10&r2=1.11
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-ml/xml-light/ChangeLog,v
21 retrieving revision 1.10
22 retrieving revision 1.11
23 diff -u -r1.10 -r1.11
24 --- ChangeLog 3 Mar 2014 23:38:59 -0000 1.10
25 +++ ChangeLog 30 Oct 2014 16:34:02 -0000 1.11
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-ml/xml-light
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/xml-light/ChangeLog,v 1.10 2014/03/03 23:38:59 pacho Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/xml-light/ChangeLog,v 1.11 2014/10/30 16:34:02 aballier Exp $
31 +
32 +*xml-light-2.2-r3 (30 Oct 2014)
33 +
34 + 30 Oct 2014; Alexis Ballier <aballier@g.o> +xml-light-2.2-r3.ebuild:
35 + build & install native binaries if wanted, bug #520100 by José Romildo
36 + Malaquias
37
38 03 Mar 2014; Pacho Ramos <pacho@g.o> xml-light-2.2-r2.ebuild:
39 amd64 stable, bug #492064
40
41
42
43 1.1 dev-ml/xml-light/xml-light-2.2-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/xml-light/xml-light-2.2-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/xml-light/xml-light-2.2-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: xml-light-2.2-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ml/xml-light/xml-light-2.2-r3.ebuild,v 1.1 2014/10/30 16:34:02 aballier Exp $
53
54 EAPI=5
55
56 inherit eutils multilib
57
58 DESCRIPTION="Minimal Xml parser and printer for OCaml"
59 HOMEPAGE="http://tech.motion-twin.com/xmllight.html"
60 SRC_URI="http://tech.motion-twin.com/zip/${P}.zip"
61
62 LICENSE="LGPL-2.1"
63 SLOT="0/${PV}"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="doc +ocamlopt"
66
67 RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
68 DEPEND="app-arch/unzip
69 ${RDEPEND}"
70
71 S="${WORKDIR}/${PN}"
72
73 src_prepare() {
74 EPATCH_FORCE=yes EPATCH_SUFFIX=dpatch EPATCH_SOURCE="${FILESDIR}" \
75 epatch
76 }
77
78 src_compile() {
79 emake -j1
80 if use ocamlopt; then
81 emake -j1 opt
82 fi
83 if use doc;then
84 emake doc
85 fi
86 }
87
88 src_test() {
89 # There are no tests...
90 :
91 }
92
93 src_install() {
94 dodir /usr/$(get_libdir)/ocaml/${PN}
95 emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} install
96 cat > "${D}"/usr/$(get_libdir)/ocaml/${PN}/META << EOF
97 name="${PN}"
98 version="${PV}"
99 description="${DESCRIPTION}"
100 requires=""
101 archive(byte)="xml-light.cma"
102 EOF
103 if use ocamlopt; then
104 emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} installopt
105 echo 'archive(native)="xml-light.cmxa"' >> "${D}"/usr/$(get_libdir)/ocaml/${PN}/META
106 fi
107 dodoc README
108 if use doc; then
109 emake doc
110 dohtml doc/*
111 fi
112 }