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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 15 23:57:22 2014 UTC (6 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -7 lines
Prefixified and keyworded amd64-linux, x86-linux

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2014 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-r1.ebuild,v 1.1 2013/08/27 16:54:54 aballier Exp $
4
5 EAPI=5
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/${PV}"
14 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
15 IUSE=""
16 DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt]"
17 RDEPEND="${DEPEND}"
18
19 src_prepare() {
20 epatch "${FILESDIR}/tests.patch"
21 epatch "${FILESDIR}/includes.patch"
22 }
23
24 src_compile() {
25 # Use the UNIX makefile
26 libdir=`ocamlc -where`
27 sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix
28 sed -i -e "s|BINDIR=.*|BINDIR=${EPREFIX}/usr/bin|" config/Makefile.unix
29 ln -s Makefile.unix config/Makefile
30
31 # Make
32 emake -j1
33 }
34
35 src_test() {
36 einfo "Running tests..."
37 cd tests
38 emake CCPP="$(tc-getCXX)"
39 }
40
41 src_install() {
42 libdir=`ocamlc -where`
43 dodir ${libdir#${EPREFIX}}/caml
44 dodir /usr/bin
45 # Install
46 emake BINDIR="${ED}/usr/bin" OCAMLLIB="${D}${libdir}" install
47
48 # Add package header
49 sed -e "s/@VERSION/${P}/g" "${FILESDIR}/META.camlidl" > "${D}${libdir}/META.camlidl" || die
50
51 # Documentation
52 dodoc README Changes
53 }

  ViewVC Help
Powered by ViewVC 1.1.20