aboutsummaryrefslogtreecommitdiff
path: root/biology/ddocent/Makefile
blob: 735eba8216d7a42a9003c8c06617f181e8583801 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
PORTNAME=		dDocent
DISTVERSIONPREFIX=	v
DISTVERSION=		2.7.8
PORTREVISION=	2
CATEGORIES=		biology java perl5 python

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Bash pipeline for RAD sequencing
WWW=		http://ddocent.com

LICENSE=	MIT

RUN_DEPENDS=	mawk>=0:lang/mawk \
		gawk>=0:lang/gawk \
		coreutils>=0:sysutils/coreutils \
		gnuplot>=0:math/gnuplot \
		parallel>=0:sysutils/parallel \
		bash:shells/bash \
		bwa>=0.7.13:biology/bwa \
		cd-hit>=0:biology/cd-hit \
		samtools>=1.3:biology/samtools \
		vcftools>=0.1.15:biology/vcftools \
		trimmomatic>=0:biology/trimmomatic \
		bamtools>=0:biology/bamtools \
		stacks>=0:biology/stacks \
		rainbow>=0:biology/rainbow \
		trimadap>=0:biology/trimadap \
		seqtk>=0:biology/seqtk \
		bedtools>=2.26.0:biology/bedtools \
		pear-merger>=0:biology/pear-merger \
		vcflib>=0:biology/vcflib \
		freebayes:biology/freebayes \
		fastp:biology/fastp

USES=		perl5 python shebangfix
USE_JAVA=	yes
USE_GITHUB=	yes

SHEBANG_FILES=	dDocent scripts/*.sh scripts/*.pl scripts/dDocent_filters
GH_ACCOUNT=	jpuritz

NO_BUILD=	yes
NO_ARCH=	yes

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} \
		${WRKSRC}/dDocent \
		${WRKSRC}/*.sh \
		${FILESDIR}/ddocent-assembly-test \
		${FILESDIR}/ddocent-assembly-test-cleanup \
		${WRKSRC}/scripts/*.sh \
		${WRKSRC}/scripts/*.pl \
		${WRKSRC}/scripts/dDocent_filters \
		${STAGEDIR}${PREFIX}/bin

# These are on top of patch-dDocent, so don't apply them within the source
# tree, or they'll get picked up by patch generators, and hard-code PREFIX.
post-install:
	@${REINPLACE_CMD} -i '' \
		-e 's|SHELL=bash|SHELL=${LOCALBASE}/bin/bash|g' \
		-e 's|python|${PYTHON_CMD}|g' \
		${STAGEDIR}${PREFIX}/bin/dDocent

.include <bsd.port.mk>