mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
sci-biology/geneathome: revbump (new eclass)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
59
sci-biology/geneathome/geneathome-1.10-r1.ebuild
Normal file
59
sci-biology/geneathome/geneathome-1.10-r1.ebuild
Normal file
@@ -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}"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user