From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ml/ocaml-expect: metadata.xml ChangeLog ocaml-expect-0.0.2.ebuild |
Date: | Tue, 22 Feb 2011 16:13:21 |
Message-Id: | 20110222161308.0411C20054@flycatcher.gentoo.org |
1 | aballier 11/02/22 16:13:08 |
2 | |
3 | Added: metadata.xml ChangeLog ocaml-expect-0.0.2.ebuild |
4 | Log: |
5 | Initial import, ebuild by Vladimir Ivanov <v.ivanov@×××××.com>, bug #355763, with improvements by me. |
6 | |
7 | (Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-ml/ocaml-expect/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>ml</herd> |
21 | <maintainer> |
22 | <email>v.ivanov@×××××.com</email> |
23 | <name>Vladimir Ivanov</name> |
24 | </maintainer> |
25 | </pkgmetadata> |
26 | |
27 | |
28 | |
29 | 1.1 dev-ml/ocaml-expect/ChangeLog |
30 | |
31 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/ChangeLog?rev=1.1&view=markup |
32 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/ChangeLog?rev=1.1&content-type=text/plain |
33 | |
34 | Index: ChangeLog |
35 | =================================================================== |
36 | # ChangeLog for dev-ml/ocaml-expect |
37 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
38 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ChangeLog,v 1.1 2011/02/22 16:13:07 aballier Exp $ |
39 | |
40 | *ocaml-expect-0.0.2 (22 Feb 2011) |
41 | |
42 | 22 Feb 2011; Alexis Ballier <aballier@g.o> +ocaml-expect-0.0.2.ebuild, |
43 | +metadata.xml: |
44 | Initial import, ebuild by Vladimir Ivanov <v.ivanov@×××××.com>, bug #355763, |
45 | with improvements by me. |
46 | |
47 | |
48 | |
49 | |
50 | 1.1 dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild |
51 | |
52 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild?rev=1.1&view=markup |
53 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild?rev=1.1&content-type=text/plain |
54 | |
55 | Index: ocaml-expect-0.0.2.ebuild |
56 | =================================================================== |
57 | # Copyright 1999-2011 Gentoo Foundation |
58 | # Distributed under the terms of the GNU General Public License v2 |
59 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild,v 1.1 2011/02/22 16:13:07 aballier Exp $ |
60 | |
61 | EAPI=3 |
62 | |
63 | inherit findlib eutils multilib |
64 | |
65 | DESCRIPTION="Ocaml implementation of expect to help building unitary testing" |
66 | HOMEPAGE="http://forge.ocamlcore.org/projects/ocaml-expect/" |
67 | SRC_URI="http://forge.ocamlcore.org/frs/download.php/475/${P}.tar.gz" |
68 | |
69 | LICENSE="LGPL-2.1" |
70 | SLOT="0" |
71 | KEYWORDS="~amd64" |
72 | IUSE="debug doc +ocamlopt" |
73 | |
74 | RDEPEND=" |
75 | >=dev-lang/ocaml-3.10.2[ocamlopt?] |
76 | dev-ml/extlib |
77 | dev-ml/pcre-ocaml" |
78 | DEPEND="${RDEPEND} |
79 | dev-ml/findlib |
80 | dev-ml/ounit" |
81 | |
82 | oasis_use_enable() { |
83 | echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`" |
84 | } |
85 | |
86 | src_configure() { |
87 | chmod +x configure |
88 | ./configure --prefix usr \ |
89 | --libdir /usr/$(get_libdir) \ |
90 | --destdir "${D}" \ |
91 | --htmldir "/usr/share/doc/${PF}/html" \ |
92 | $(oasis_use_enable debug debug) \ |
93 | $(oasis_use_enable ocamlopt is_native) \ |
94 | || die |
95 | } |
96 | |
97 | src_compile() { |
98 | emake || die |
99 | if use doc; then |
100 | emake doc || die |
101 | fi |
102 | } |
103 | |
104 | src_install() { |
105 | findlib_src_install |
106 | |
107 | dodoc README.txt CHANGES.txt AUTHORS.txt || die "doc install failed" |
108 | } |