1 |
commit: 60c87d2022d56628f120bde54510991e37784772 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 19:49:45 2016 +0000 |
4 |
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 19:50:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=60c87d20 |
7 |
|
8 |
sci-libs/libsc: add live ebuild |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sci-libs/libsc/libsc-9999.ebuild | 81 ++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 81 insertions(+) |
14 |
|
15 |
diff --git a/sci-libs/libsc/libsc-9999.ebuild b/sci-libs/libsc/libsc-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..5b659d5 |
18 |
--- /dev/null |
19 |
+++ b/sci-libs/libsc/libsc-9999.ebuild |
20 |
@@ -0,0 +1,81 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+WANT_AUTOMAKE=1.11 |
28 |
+ |
29 |
+inherit autotools-utils toolchain-funcs eutils multilib |
30 |
+ |
31 |
+DESCRIPTION="Support for parallel scientific applications" |
32 |
+HOMEPAGE="http://www.p4est.org/" |
33 |
+ |
34 |
+if [[ ${PV} = *9999* ]]; then |
35 |
+ inherit git-r3 |
36 |
+ EGIT_REPO_URI="git://github.com/cburstedde/libsc.git" |
37 |
+ SRC_URI="" |
38 |
+ KEYWORDS="" |
39 |
+else |
40 |
+ SRC_URI="https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
42 |
+fi |
43 |
+ |
44 |
+LICENSE="LGPL-2.1+" |
45 |
+SLOT="0" |
46 |
+IUSE="debug examples mpi romio static-libs" |
47 |
+ |
48 |
+REQUIRED_USE="romio? ( mpi )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-lang/lua:* |
52 |
+ sys-apps/util-linux |
53 |
+ virtual/blas |
54 |
+ virtual/lapack |
55 |
+ mpi? ( virtual/mpi[romio?] )" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ ${RDEPEND} |
59 |
+ virtual/pkgconfig" |
60 |
+ |
61 |
+DOCS=(AUTHORS NEWS README) |
62 |
+ |
63 |
+AUTOTOOLS_AUTORECONF=true |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # Inject a version number into the build system |
67 |
+ echo "${PV}" > ${S}/.tarball-version |
68 |
+ |
69 |
+ autotools-utils_src_prepare |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local myeconfargs=( |
74 |
+ $(use_enable debug) |
75 |
+ $(use_enable mpi) |
76 |
+ $(use_enable romio mpiio) |
77 |
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" |
78 |
+ --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" |
79 |
+ ) |
80 |
+ autotools-utils_src_configure |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ autotools-utils_src_install |
85 |
+ |
86 |
+ if use examples; then |
87 |
+ docinto examples |
88 |
+ dodoc -r example/* |
89 |
+ docompress -x /usr/share/doc/${PF}/examples |
90 |
+ else |
91 |
+ # Remove the compiled example binaries in case of -examples: |
92 |
+ rm -r "${ED}"/usr/bin || die "rm failed" |
93 |
+ fi |
94 |
+ |
95 |
+ # Fix up some wrong installation paths: |
96 |
+ dodir /usr/share/libsc |
97 |
+ mv "${ED}"/etc/* "${ED}"/usr/share/libsc || die "mv failed" |
98 |
+ rmdir "${ED}"/etc/ || die "rmdir failed" |
99 |
+ mv "${ED}"/usr/share/ini/* "${ED}"/usr/share/libsc || die "mv failed" |
100 |
+ rmdir "${ED}"/usr/share/ini || die "rmdir failed" |
101 |
+} |