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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 6 16:38:12 2011 UTC (8 years, 6 months 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/ocamlduce/ocamlduce-3.11.2.0.ebuild,v 1.1 2010/04/09 14:26:35 aballier Exp $
4
5 EAPI="2"
6
7 inherit versionator eutils toolchain-funcs flag-o-matic multilib
8
9 OCAML_VERSION=3.11.2
10 OCAML_TARBALL=ocaml-${OCAML_VERSION}.tar.bz2
11 OCAML_PATCHLEVEL=1
12 OCAML_GENTOO_PATCHES=ocaml-patches-${OCAML_PATCHLEVEL}.tar.bz2
13
14 DESCRIPTION="OCamlDuce is a merger between OCaml and CDuce"
15 HOMEPAGE="http://ocamlduce.forge.ocamlcore.org/"
16 SRC_URI="https://forge.ocamlcore.org/frs/download.php/356/${P}.tar.gz
17 ftp://ftp.inria.fr/INRIA/cristal/ocaml/ocaml-$(get_version_component_range 1-2 ${OCAML_VERSION})/${OCAML_TARBALL}
18 mirror://gentoo/${OCAML_GENTOO_PATCHES}"
19
20 LICENSE="QPL-1.0 LGPL-2"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
23 IUSE="+ocamlopt"
24
25 DEPEND="~dev-lang/ocaml-${OCAML_VERSION}[ocamlopt?]
26 >=dev-ml/findlib-1.2.4-r1
27 !!<dev-ml/${P}"
28
29 RDEPEND="${DEPEND}"
30
31 S=${WORKDIR}/${P}/ocaml-${OCAML_VERSION}
32
33 src_unpack() {
34 unpack ${P}.tar.gz ${OCAML_GENTOO_PATCHES}
35 }
36
37 src_prepare() {
38 cd "${WORKDIR}/${P}"
39 emake OCAML_SOURCE="${DISTDIR}/${OCAML_TARBALL}" prepare || die "failed to prepare"
40 cd "${S}"
41 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
42 }
43
44 src_configure() {
45 RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
46 --bindir /usr/bin \
47 --libdir /usr/$(get_libdir)/ocaml \
48 --mandir /usr/share/man \
49 -host "${CHOST}" \
50 -cc "$(tc-getCC)" \
51 -as "$(tc-getAS)" \
52 -aspp "$(tc-getCC) -c" \
53 --with-pthread || die "configure failed!"
54 }
55
56 src_compile() {
57 if use ocamlopt; then
58 emake -f Makefile.ocamlduce -j1 world.opt || die
59 else
60 emake -f Makefile.ocamlduce -j1 world || die
61 fi
62 }
63
64 src_install() {
65 emake -f Makefile.ocamlduce BINDIR="${D}/usr/bin" LIBDIR="${D}/usr/$(get_libdir)/ocaml" installbyte || die
66 if use ocamlopt; then
67 emake -f Makefile.ocamlduce BINDIR="${D}/usr/bin" LIBDIR="${D}/usr/$(get_libdir)/ocaml" installopt || die
68 fi
69 dodoc Changes README
70 }

  ViewVC Help
Powered by ViewVC 1.1.20