1 |
commit: 3d9d5ebbc13e83494dc13b2aef9434a459032162 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 12 20:52:31 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 12 20:53:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9d5ebb |
7 |
|
8 |
sci-libs/adolc: add a live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sci-libs/adolc/adolc-9999.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 62 insertions(+) |
14 |
|
15 |
diff --git a/sci-libs/adolc/adolc-9999.ebuild b/sci-libs/adolc/adolc-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..f9fec42a440 |
18 |
--- /dev/null |
19 |
+++ b/sci-libs/adolc/adolc-9999.ebuild |
20 |
@@ -0,0 +1,62 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit autotools toolchain-funcs eutils git-r3 |
27 |
+ |
28 |
+MYPN=ADOL-C |
29 |
+ |
30 |
+DESCRIPTION="Automatic differentiation system for C/C++" |
31 |
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/" |
32 |
+ |
33 |
+ |
34 |
+if [[ ${PV} = *9999* ]]; then |
35 |
+ inherit git-r3 |
36 |
+ EGIT_REPO_URI="https://gitlab.com/adol-c/adol-c.git" |
37 |
+ SRC_URI="" |
38 |
+ KEYWORDS="" |
39 |
+else |
40 |
+ SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz" |
41 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
42 |
+ S="${WORKDIR}/${MYPN}-${PV}" |
43 |
+fi |
44 |
+ |
45 |
+ |
46 |
+LICENSE="|| ( EPL-1.0 GPL-2 )" |
47 |
+SLOT="0/2" |
48 |
+IUSE="mpi sparse static-libs" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ mpi? ( sys-cluster/ampi:0= ) |
52 |
+ sparse? ( sci-libs/colpack:0= ) |
53 |
+" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch |
58 |
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch |
59 |
+ "${FILESDIR}"/${PN}-2.6.2-dash.patch |
60 |
+) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ econf \ |
69 |
+ $(use_enable static-libs static) \ |
70 |
+ $(use_enable mpi ampi) \ |
71 |
+ $(use_enable sparse) \ |
72 |
+ $(use_with sparse colpack "${EPREFIX}"/usr) |
73 |
+} |
74 |
+ |
75 |
+src_test() { |
76 |
+ emake test |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ default |
81 |
+ use static-libs || prune_libtool_files --all |
82 |
+} |