diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-07-01 08:35:40 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-08-27 09:40:04 +0200 |
commit | 810687b6a989cbc43cadcb8201e800c6628970e2 (patch) | |
tree | f1281c39e739bb4c5d56e59661b65bcca7b112c0 /sci-biology/amap | |
parent | net-misc/tuba: Bump to 0.8.3 (diff) | |
download | gentoo-810687b6a989cbc43cadcb8201e800c6628970e2.tar.gz gentoo-810687b6a989cbc43cadcb8201e800c6628970e2.tar.bz2 gentoo-810687b6a989cbc43cadcb8201e800c6628970e2.zip |
sci-biology/amap: build with java-pkg-simple, add apidocs
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/37468/commits/0b394429f6c5387f57fbc675683e003eaff25337
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'sci-biology/amap')
-rw-r--r-- | sci-biology/amap/amap-2.2-r6.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-biology/amap/amap-2.2-r6.ebuild b/sci-biology/amap/amap-2.2-r6.ebuild new file mode 100644 index 000000000000..487616726fc4 --- /dev/null +++ b/sci-biology/amap/amap-2.2-r6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-opt-2 java-pkg-simple toolchain-funcs + +DESCRIPTION="Protein multiple-alignment-based sequence annealing" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="http://baboon.math.berkeley.edu/amap/download/${P/-/.}.tar.gz" +S="${WORKDIR}/amap-align" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="java" + +DEPEND="java? ( >=virtual/jdk-1.8:* )" +RDEPEND="java? ( >=virtual/jre-1.8:* )" + +DOCS=( align/{README,PROBCONS.README} ) + +PATCHES=( + "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${P}-includes.patch +) + +src_prepare() { + default + use java && java-pkg-opt-2_src_prepare && java-pkg_clean +} + +src_configure() { + tc-export CXX +} + +src_compile() { + emake -C align + if use java; then + JAVA_JAR_FILENAME="amapdisplay.jar" + JAVA_SRC_DIR="display/src" + java-pkg-simple_src_compile + fi +} + +src_install() { + dobin align/${PN} + + insinto /usr/share/${PN} + doins -r examples + + use java && java-pkg-simple_src_install +} |