/[gentoo-x86]/dev-ml/bin-prot/bin-prot-1.3.0.ebuild
Gentoo

Contents of /dev-ml/bin-prot/bin-prot-1.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 6 18:25:41 2011 UTC (9 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/bin-prot/bin-prot-1.3.0.ebuild,v 1.2 2011/02/22 16:06:36 aballier Exp $
4
5 EAPI=3
6
7 EAPI="2"
8
9 inherit findlib eutils multilib
10
11 DESCRIPTION="A binary protocol generator"
12 HOMEPAGE="http://ocaml.janestreet.com/?q=node/13"
13 SRC_URI="http://www.janestreet.com/ocaml/bin_prot-${PV}.tar.gz"
14
15 LICENSE="LGPL-2.1-linking-exception"
16 SLOT="0"
17 KEYWORDS="~amd64"
18 IUSE="debug doc +ocamlopt"
19
20 RDEPEND=">=dev-lang/ocaml-3.11[ocamlopt?]
21 dev-ml/findlib
22 >=dev-ml/ounit-1.0.2
23 >=dev-ml/type-conv-2.0.1"
24 DEPEND="${RDEPEND}
25 >=dev-ml/ounit-1.0.2
26 doc? ( virtual/latex-base )"
27
28 S=${WORKDIR}/${PN}
29
30 oasis_use_enable() {
31 echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`"
32 }
33
34 src_configure() {
35 ./configure --prefix usr \
36 --libdir /usr/$(get_libdir) \
37 --destdir "${D}" \
38 $(oasis_use_enable debug debug) \
39 $(oasis_use_enable ocamlopt is_native) \
40 || die
41 }
42
43 src_compile() {
44 emake || die
45 if use doc ; then
46 cd "${S}/doc"
47 pdflatex README || die
48 pdflatex README || die
49 fi
50 }
51
52 src_test() {
53 LD_LIBRARY_PATH="${S}/_build/lib" emake test || die
54 }
55
56 src_install() {
57 findlib_src_install
58
59 dodoc README Changelog || die
60 if use doc; then
61 dodoc doc/README.pdf || die
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20