aboutsummaryrefslogtreecommitdiff
blob: b57f4fb268baf0c4ac59bbfc926e2359aadc1040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit java-pkg-2 java-ant-2

DESCRIPTION="Java tools and APIs for efficient compression of sequence read data"
HOMEPAGE="http://www.ebi.ac.uk/ena/software/cram-toolkit
	https://github.com/enasequence/cramtools"
SRC_URI="https://github.com/enasequence/cramtools/archive/v3.0.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	>=virtual/jdk-1.7:*
	dev-java/ant-core
	dev-java/htsjdk"
RDEPEND="
	${DEPEND}
	>=virtual/jre-1.7:*"

# TODO: zap bundled htsjdk to ensure it uses dev-java/htsjdk?
# https://github.com/enasequence/cramtools/issues/58
# https://github.com/enasequence/cramtools/issues/59
src_compile(){
	ant -f build/build.xml runnable || die
}

src_install() {
	java-pkg_newjar "${P}.jar" "${PN}.jar"
}