aboutsummaryrefslogtreecommitdiff
blob: 3b491b3900ea7be9579d4da32b051bce21b62ba1 (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="Illumina adapter trimming tool"
HOMEPAGE="http://www.usadellab.org/cms/?page=trimmomatic"
SRC_URI="
	http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-Src-${PV}.zip
	http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/TrimmomaticManual_V0.32.pdf -> "${P}"_manual.pdf"

# http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.32.zip

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=">=virtual/jdk-1.6:*
	dev-java/ant-core
	app-arch/unzip"
RDEPEND=">=virtual/jre-1.6:*"

# somehow fails to build with oracle-jdk-bin-1.7 while ibm-jdk-bin-1.6 works

EANT_BUILD_TARGET="dist"

src_install() {
	java-pkg_newjar "dist/jar/${P}.jar" "${PN}.jar"
	insinto /usr/share/${PN}/Illumina
	doins adapters/*.fa
	dodoc "${DISTDIR}"/${P}_manual.pdf
}