diff options
author | 2021-07-22 13:13:47 +0500 | |
---|---|---|
committer | 2021-07-22 13:27:40 +0500 | |
commit | ebfbbbfb7472a0b6e67e5630f1da90e074158e55 (patch) | |
tree | 8249bc10f2f334f4f13ae226ef2a71bcd83fda24 /sci-biology/geneathome | |
parent | sci-biology/cmdock: revbump (new eclass) (diff) | |
download | guru-ebfbbbfb7472a0b6e67e5630f1da90e074158e55.tar.gz guru-ebfbbbfb7472a0b6e67e5630f1da90e074158e55.tar.bz2 guru-ebfbbbfb7472a0b6e67e5630f1da90e074158e55.zip |
sci-biology/geneathome: revbump (new eclass)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'sci-biology/geneathome')
-rw-r--r-- | sci-biology/geneathome/geneathome-1.10-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sci-biology/geneathome/geneathome-1.10-r1.ebuild b/sci-biology/geneathome/geneathome-1.10-r1.ebuild new file mode 100644 index 000000000..26315147c --- /dev/null +++ b/sci-biology/geneathome/geneathome-1.10-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +BOINC_MASTER_URL="https://gene.disi.unitn.it/test/" +BOINC_INVITATION_CODE="science@tn" +BOINC_HELPTEXT=\ +"gene@home is a part of TN-Grid BOINC project." + +inherit boinc boinc-app toolchain-funcs + +MY_PN="pc-boinc" +COMMIT="3186afba409a" + +DESCRIPTION="BOINC application for expanding Gene Regulatory Networks (GRN)" +HOMEPAGE+=" https://bitbucket.org/francesco-asnicar/pc-boinc" +SRC_URI="https://bitbucket.org/francesco-asnicar/${MY_PN}/get/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/francesco-asnicar-pc-boinc-${COMMIT}" + +LICENSE="sunpro public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +DEPEND="app-arch/bzip2" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/makefile.patch ) + +DOCS=( Readme.md ) + +boinc-app_add_deps + +src_prepare() { + default + + # error: inlining failed in call to ‘always_inline’ ‘int fprintf(FILE*, const char*, ...)’: target specific option mismatch + sed -i src/main.cpp \ + -e 's/stdio.h/iostream/' \ + -e 's/fprintf(stderr, \(.*\))/std::cerr << \1/g' || die +} + +src_compile() { + tc-export CC CXX + emake BOINC_DIR=/usr/include/boinc -C src +} + +src_test() { + bash ./test_run.sh || die + bash ./test_run2.sh || die +} + +src_install() { + doappinfo "${FILESDIR}"/app_info.xml + + exeinto $(get_project_root) + exeopts -m 0755 --owner boinc --group boinc + newexe bin/pc "gene_pcim_v${PV}" +} |