# Created by: Mauricio Herrera Cuadra <mauricio@arareko.net>
# $FreeBSD: tags/RELEASE_11_0_0/biology/p5-bioperl-run/Makefile 412344 2016-04-01 13:29:15Z mat $

PORTNAME=	bioperl-run
PORTVERSION=	1.6.901
PORTREVISION=	1
CATEGORIES=	biology perl5
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Wrapper modules for common bioinformatics tools

LICENSE=	ART10 GPLv3
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-bioperl>=1.6.0:biology/p5-bioperl \
		p5-IPC-Run>=0:devel/p5-IPC-Run \
		p5-Algorithm-Diff>=0:devel/p5-Algorithm-Diff \
		p5-XML-Twig>=0:textproc/p5-XML-Twig \
		p5-File-Sort>=0:misc/p5-File-Sort \
		p5-Config-Any>=0:devel/p5-Config-Any
RUN_DEPENDS:=	${BUILD_DEPENDS}

CONFLICTS=	p5-bioperl-run-1.[13579]*

USE_GITHUB=	yes
GH_ACCOUNT=	bioperl
GH_TAGNAME=	96ccd93

USES=		perl5 shebangfix
USE_PERL5=	modbuild
SHEBANG_FILES=	scripts/*

OPTIONS_DEFINE=	DOCS

post-build:
	(cd ${WRKSRC} && ${PERL} ./Build manifest)

post-install:
.for i in bioperl_application_installer multi_hmmsearch panalysis papplmaker run_neighbor run_protdist
	${CP} ${WRKSRC}/scripts/${i}.PLS ${STAGEDIR}${PREFIX}/bin/bp_${i}
.endfor
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in AUTHORS Changes INSTALL.PROGRAMS README
	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
