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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +1 -1 lines
FILE REMOVED
remove old

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

1 # Copyright 1999-2010 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.2.24.ebuild,v 1.1 2010/12/16 22:14:18 aballier Exp $
4
5 EAPI="2"
6
7 inherit findlib
8
9 DESCRIPTION="Automated code generation for converting OCaml values to/from a type-safe binary protocol"
10 HOMEPAGE="http://www.ocaml.info/home/ocaml_sources.html"
11 SRC_URI="http://ocaml.info/ocaml_sources/${P}.tar.gz"
12
13 LICENSE="LGPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64"
16 IUSE="doc test"
17 S=${WORKDIR}/${P}/lib
18
19 RDEPEND=">=dev-lang/ocaml-3.11[ocamlopt]
20 dev-ml/type-conv"
21 DEPEND="${RDEPEND}
22 test? ( dev-ml/ounit )
23 doc? ( virtual/latex-base )"
24
25 src_compile() {
26 emake -j1 CFLAGS="${CFLAGS}" || die
27 if use doc; then
28 cd ../doc
29 VARTEXFONTS="${T}/fonts" pdflatex README.tex || die
30 fi
31 }
32
33 src_test() {
34 cd "${S}/../lib_test"
35 emake -j1 || die
36 ./test_runner || die
37 }
38
39 src_install() {
40 findlib_src_preinst
41 emake install || die "make install failed"
42 dodoc ../README.txt ../Changelog
43 use doc && dodoc ../doc/README.pdf
44 }

  ViewVC Help
Powered by ViewVC 1.1.20