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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Apr 12 06:34:53 2010 UTC (9 years, 9 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.1.0.ebuild,v 1.2 2009/09/18 22:45:34 aballier Exp $
4
5 EAPI="2"
6
7 inherit versionator eutils toolchain-funcs flag-o-matic multilib
8
9 OCAML_VERSION=3.11.1
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="http://forge.ocamlcore.org/frs/download.php/225/${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
28 RDEPEND="${DEPEND}"
29
30 S=${WORKDIR}/${P}/ocaml-${OCAML_VERSION}
31
32 src_unpack() {
33 unpack ${P}.tar.gz ${OCAML_GENTOO_PATCHES}
34 }
35
36 src_prepare() {
37 cd "${WORKDIR}/${P}"
38 emake OCAML_SOURCE="${DISTDIR}/${OCAML_TARBALL}" prepare || die "failed to prepare"
39 cd "${S}"
40 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
41 }
42
43 src_configure() {
44 RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
45 --bindir /usr/bin \
46 --libdir /usr/$(get_libdir)/ocaml \
47 --mandir /usr/share/man \
48 -host "${CHOST}" \
49 -cc "$(tc-getCC)" \
50 -as "$(tc-getAS)" \
51 -aspp "$(tc-getCC) -c" \
52 --with-pthread || die "configure failed!"
53 }
54
55 src_compile() {
56 if use ocamlopt; then
57 emake -f Makefile.ocamlduce -j1 world.opt || die
58 else
59 emake -f Makefile.ocamlduce -j1 world || die
60 fi
61 }
62
63 src_install() {
64 emake -f Makefile.ocamlduce BINDIR="${D}/usr/bin" LIBDIR="${D}/usr/$(get_libdir)/ocaml" installbyte || die
65 if use ocamlopt; then
66 emake -f Makefile.ocamlduce BINDIR="${D}/usr/bin" LIBDIR="${D}/usr/$(get_libdir)/ocaml" installopt || die
67 fi
68 dodoc Changes README
69 }

  ViewVC Help
Powered by ViewVC 1.1.20