/[gentoo-x86]/dev-ml/camlidl/camlidl-1.05.ebuild
Gentoo

Contents of /dev-ml/camlidl/camlidl-1.05.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun May 31 00:11:49 2015 UTC (5 years, 2 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

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/camlidl/camlidl-1.05.ebuild,v 1.5 2010/02/25 18:56:05 zmedico Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="CamlIDL is a stub code generator for using C/C++ libraries from O'Caml"
10 HOMEPAGE="http://caml.inria.fr/camlidl/"
11 SRC_URI="http://caml.inria.fr/distrib/bazar-ocaml/${P}.tar.gz"
12 LICENSE="QPL-1.0 LGPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc ~amd64"
15 IUSE=""
16 DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt]"
17
18 src_prepare() {
19 epatch "${FILESDIR}/tests.patch"
20 epatch "${FILESDIR}/includes.patch"
21 }
22
23 src_compile() {
24 # Use the UNIX makefile
25 libdir=`ocamlc -where`
26 sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix
27 sed -i -e "s|BINDIR=.*|BINDIR=/usr/bin|" config/Makefile.unix
28 ln -s Makefile.unix config/Makefile
29
30 # Make
31 emake -j1 || die
32 }
33
34 src_test() {
35 einfo "Running tests..."
36 cd tests
37 ( emake CCPP="$(tc-getCXX)" && einfo "Tests finished successfully" ) || die "Tests failed"
38 }
39
40 src_install() {
41 libdir=`ocamlc -where`
42 dodir ${libdir}/caml
43 dodir /usr/bin
44 # Install
45 emake BINDIR="${D}/usr/bin" OCAMLLIB="${D}${libdir}" install || die
46
47 # Documentation
48 dodoc README Changes || die
49 }

  ViewVC Help
Powered by ViewVC 1.1.20