1 |
commit: ebfbbbfb7472a0b6e67e5630f1da90e074158e55 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Thu Jul 22 08:13:47 2021 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Thu Jul 22 08:27:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ebfbbbfb |
7 |
|
8 |
sci-biology/geneathome: revbump (new eclass) |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
sci-biology/geneathome/geneathome-1.10-r1.ebuild | 59 ++++++++++++++++++++++++ |
13 |
1 file changed, 59 insertions(+) |
14 |
|
15 |
diff --git a/sci-biology/geneathome/geneathome-1.10-r1.ebuild b/sci-biology/geneathome/geneathome-1.10-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..26315147c |
18 |
--- /dev/null |
19 |
+++ b/sci-biology/geneathome/geneathome-1.10-r1.ebuild |
20 |
@@ -0,0 +1,59 @@ |
21 |
+# Copyright 2021 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+BOINC_MASTER_URL="https://gene.disi.unitn.it/test/" |
27 |
+BOINC_INVITATION_CODE="science@tn" |
28 |
+BOINC_HELPTEXT=\ |
29 |
+"gene@home is a part of TN-Grid BOINC project." |
30 |
+ |
31 |
+inherit boinc boinc-app toolchain-funcs |
32 |
+ |
33 |
+MY_PN="pc-boinc" |
34 |
+COMMIT="3186afba409a" |
35 |
+ |
36 |
+DESCRIPTION="BOINC application for expanding Gene Regulatory Networks (GRN)" |
37 |
+HOMEPAGE+=" https://bitbucket.org/francesco-asnicar/pc-boinc" |
38 |
+SRC_URI="https://bitbucket.org/francesco-asnicar/${MY_PN}/get/${COMMIT}.tar.gz -> ${P}.tar.gz" |
39 |
+S="${WORKDIR}/francesco-asnicar-pc-boinc-${COMMIT}" |
40 |
+ |
41 |
+LICENSE="sunpro public-domain" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
44 |
+ |
45 |
+DEPEND="app-arch/bzip2" |
46 |
+RDEPEND="${DEPEND}" |
47 |
+ |
48 |
+PATCHES=( "${FILESDIR}"/makefile.patch ) |
49 |
+ |
50 |
+DOCS=( Readme.md ) |
51 |
+ |
52 |
+boinc-app_add_deps |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # error: inlining failed in call to ‘always_inline’ ‘int fprintf(FILE*, const char*, ...)’: target specific option mismatch |
58 |
+ sed -i src/main.cpp \ |
59 |
+ -e 's/stdio.h/iostream/' \ |
60 |
+ -e 's/fprintf(stderr, \(.*\))/std::cerr << \1/g' || die |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ tc-export CC CXX |
65 |
+ emake BOINC_DIR=/usr/include/boinc -C src |
66 |
+} |
67 |
+ |
68 |
+src_test() { |
69 |
+ bash ./test_run.sh || die |
70 |
+ bash ./test_run2.sh || die |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ doappinfo "${FILESDIR}"/app_info.xml |
75 |
+ |
76 |
+ exeinto $(get_project_root) |
77 |
+ exeopts -m 0755 --owner boinc --group boinc |
78 |
+ newexe bin/pc "gene_pcim_v${PV}" |
79 |
+} |