/[gentoo-x86]/dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild
Gentoo

Contents of /dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 3 13:10:56 2012 UTC (2 years ago) by aballier
Branch: MAIN
Initial import, ebuild by  Jacques-Pascal Deplaix and  Guillaume Horel, bug #406653

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit findlib
8
9 DESCRIPTION="A deriving library for Ocsigen"
10 HOMEPAGE="http://ocsigen.org"
11 SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1-with-linking-exception"
14 SLOT="0"
15 KEYWORDS="~amd64"
16 IUSE="+ocamlopt type-conv"
17
18 DEPEND=">=dev-lang/ocaml-3.12[ocamlopt?]
19 type-conv? ( >=dev-ml/type-conv-108 )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 find . -type f -exec sed -i 's/type-conv/type_conv/g' {} +
24 }
25
26 src_configure() {
27 use type-conv || echo "TYPECONV :=" >> Makefile.config
28 }
29
30 src_compile() {
31 if use ocamlopt; then
32 emake
33 else
34 emake byte
35 fi
36 }
37
38 src_test() {
39 emake tests
40 }
41
42 src_install() {
43 findlib_src_preinst
44 if use ocamlopt; then
45 emake install
46 else
47 emake install-byte
48 fi
49 dodoc CHANGES README
50 }

  ViewVC Help
Powered by ViewVC 1.1.20