/[gentoo-x86]/dev-ml/camlp5/camlp5-5.14.ebuild
Gentoo

Contents of /dev-ml/camlp5/camlp5-5.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Feb 23 20:22:08 2012 UTC (3 years, 2 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha89/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/camlp5/camlp5-5.14.ebuild,v 1.7 2011/12/18 17:33:47 armin76 Exp $
4
5 EAPI="2"
6
7 inherit multilib findlib eutils
8
9 DESCRIPTION="A preprocessor-pretty-printer of ocaml"
10 HOMEPAGE="http://pauillac.inria.fr/~ddr/camlp5/"
11 SRC_URI="http://pauillac.inria.fr/~ddr/camlp5/distrib/src/${P}.tgz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
16 IUSE="doc +ocamlopt"
17
18 DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 epatch "${FILESDIR}/${P}-ocaml312.patch"
23 }
24
25 src_configure() {
26 ./configure \
27 -prefix /usr \
28 -bindir /usr/bin \
29 -libdir /usr/$(get_libdir)/ocaml \
30 -mandir /usr/share/man || die "configure failed"
31 }
32
33 src_compile(){
34 emake -j1 || die "emake failed"
35 if use ocamlopt; then
36 emake -j1 opt || die "Compiling native code programs failed"
37 emake -j1 opt.opt || die "Compiling native code programs failed"
38 fi
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "emake install failed"
43 # findlib support
44 insinto "$(ocamlfind printconf destdir)/${PN}"
45 doins etc/META || die "failed to install META file for findlib support"
46
47 use doc && dohtml -r doc/*
48
49 dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
50 }

  ViewVC Help
Powered by ViewVC 1.1.20