/[gentoo-x86]/dev-ml/ocamlduce/ocamlduce-3.10.2.ebuild
Gentoo

Contents of /dev-ml/ocamlduce/ocamlduce-3.10.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Dec 7 08:03:57 2009 UTC (10 years, 4 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.2_rc56/cvs/Linux x86_64)

1 aballier 1.2 # Copyright 1999-2009 Gentoo Foundation
2 aballier 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlduce/ocamlduce-3.10.2.ebuild,v 1.2 2009/06/20 15:17:50 aballier Exp $
4 aballier 1.2
5     EAPI="2"
6 aballier 1.1
7     inherit eutils findlib
8    
9     MY_P="${P/_p/pl}"
10     DESCRIPTION="OCamlDuce is a merger between OCaml and CDuce"
11     HOMEPAGE="http://www.cduce.org/ocaml.html"
12     SRC_URI="http://gallium.inria.fr/~frisch/ocamlcduce/download/${MY_P}.tar.gz"
13    
14     LICENSE="QPL-1.0 LGPL-2"
15     SLOT="0"
16     KEYWORDS="~amd64 ~x86 ~x86-fbsd"
17     IUSE="+ocamlopt"
18    
19     DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]
20     >=dev-ml/findlib-1.1.2"
21    
22     RDEPEND="${DEPEND}"
23    
24     S="${WORKDIR}/${MY_P}"
25    
26     src_compile() {
27     if use ocamlopt; then
28     emake -j1 all opt || die "emake failed"
29     else
30     emake CAMLC="ocamlc" CAMLDEP="ocamldep" -j1 all || die "emake failed"
31     fi
32     }
33    
34     src_install() {
35     dodir /usr/bin
36     use ocamlopt && findlib_src_install BINDIR="${D}/usr/bin"
37     use ocamlopt || findlib_src_install BINDIR="${D}/usr/bin" CAMLC="ocamlc" CAMLDEP="ocamldep" OPT_VARIANTS=""
38     }

  ViewVC Help
Powered by ViewVC 1.1.20