Gentoo Archives: gentoo-commits

From: Guillaume Horel <guillaume.horel@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-ml/lacaml/
Date: Tue, 15 Nov 2011 00:27:33
Message-Id: 578ff9363f499493086e259db93d806b08520fa8.guillaume_horel@gentoo
1 commit: 578ff9363f499493086e259db93d806b08520fa8
2 Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
3 AuthorDate: Tue Nov 15 00:26:21 2011 +0000
4 Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
5 CommitDate: Tue Nov 15 00:26:21 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=578ff936
7
8 [dev-ml/lacaml] initial import
9
10 ---
11 dev-ml/lacaml/ChangeLog | 10 +++++++++
12 dev-ml/lacaml/lacaml-5.5.2.ebuild | 40 +++++++++++++++++++++++++++++++++++++
13 dev-ml/lacaml/metadata.xml | 8 +++++++
14 3 files changed, 58 insertions(+), 0 deletions(-)
15
16 diff --git a/dev-ml/lacaml/ChangeLog b/dev-ml/lacaml/ChangeLog
17 new file mode 100644
18 index 0000000..f771bb4
19 --- /dev/null
20 +++ b/dev-ml/lacaml/ChangeLog
21 @@ -0,0 +1,10 @@
22 +# ChangeLog for dev-ml/lacaml
23 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 +# $Header: $
25 +
26 +*lacaml-5.5.2 (15 Nov 2011)
27 +
28 + 15 Nov 2011; Guillaume Horel <guillaume.horel@×××××.com>
29 + +lacaml-5.5.2.ebuild, +metadata.xml:
30 + Original import
31 +
32
33 diff --git a/dev-ml/lacaml/lacaml-5.5.2.ebuild b/dev-ml/lacaml/lacaml-5.5.2.ebuild
34 new file mode 100644
35 index 0000000..8a17c7f
36 --- /dev/null
37 +++ b/dev-ml/lacaml/lacaml-5.5.2.ebuild
38 @@ -0,0 +1,40 @@
39 +# Copyright 1999-2011 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Header: $
42 +
43 +EAPI=4
44 +
45 +inherit eutils findlib
46 +
47 +DESCRIPTION="BLAS/LAPACK interface for OCaml"
48 +HOMEPAGE="http://www.ocaml.info/home/ocaml_sources.html"
49 +SRC_URI="http://hg.ocaml.info/release/${PN}/archive/release-${PV}.tar.bz2
50 +-> ${P}.tar.bz2"
51 +
52 +LICENSE="LGPL-2.1-linking-exception"
53 +SLOT="0"
54 +KEYWORDS="~x86"
55 +IUSE="doc"
56 +
57 +DEPEND="dev-lang/ocaml[ocamlopt]
58 + virtual/blas
59 + virtual/lapack"
60 +RDEPEND="${DEPEND}"
61 +
62 +S="${WORKDIR}/${PN}-release-${PV}"
63 +
64 +src_prepare() {
65 + sed -i -e "s/blas/$(pkg-config --libs blas|sed s/-l//g)/" \
66 + -e "s/lapack/$(pkg-config --libs lapack|sed s/-l//g)/" Makefile.conf ||die
67 +}
68 +
69 +src_compile() {
70 + emake
71 + use doc && emake doc
72 +}
73 +
74 +src_install() {
75 + findlib_src_install
76 + dodoc README.txt Changelog
77 + use doc && dodoc -r doc/lacaml/html doc/lacaml/latex
78 +}
79
80 diff --git a/dev-ml/lacaml/metadata.xml b/dev-ml/lacaml/metadata.xml
81 new file mode 100644
82 index 0000000..8925df6
83 --- /dev/null
84 +++ b/dev-ml/lacaml/metadata.xml
85 @@ -0,0 +1,8 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 +<herd>sci</herd>
90 +<longdescription lang='en'>
91 +BLAS/LAPACK-interface for OCaml
92 +</longdescription>
93 +</pkgmetadata>