PORTNAME=	trimmomatic
DISTVERSION=	0.39
PORTREVISION=	1
CATEGORIES=	biology java
MASTER_SITES=	http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/
DISTNAME=	Trimmomatic-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Flexible read trimming tool for Illumina NGS data
WWW=		http://www.usadellab.org/cms/?page=trimmomatic

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		java zip

NO_BUILD=	yes
NO_ARCH=	yes

SUB_FILES=	trimmomatic

do-install:
	${INSTALL_DATA} ${WRKSRC}/trimmomatic-${PORTVERSION}.jar \
		${STAGEDIR}${JAVAJARDIR}/trimmomatic.jar
	cd ${WRKSRC} && ${COPYTREE_SHARE} adapters ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/trimmomatic ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
