aboutsummaryrefslogtreecommitdiffstats
path: root/biology/ddocent/Makefile
blob: 1608e3c3d1af45aa89a04a2fa31503b0a0ca02af (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
66
67
68
# $FreeBSD$

PORTNAME=   dDocent
DISTVERSIONPREFIX=  v
DISTVERSION=    2.2.25
PORTREVISION=   1
CATEGORIES= biology java

MAINTAINER= jwb@FreeBSD.org
COMMENT=    Bash pipeline for RAD sequencing

LICENSE=    MIT

# ddocent test data do not unpack with FreeBSD 11.1 /usr/bin/unzip
RUN_DEPENDS=    unzip>=0:archivers/unzip \
        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

USES=       perl5 python shebangfix
SHEBANG_FILES=  dDocent scripts/*.sh scripts/*.pl scripts/dDocent_filters
USE_JAVA=   yes
USE_GITHUB= yes
GH_ACCOUNT= jpuritz

NO_BUILD=   yes
NO_ARCH=    yes

# 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|%%PREFIX%%|${PREFIX}|g' \
        -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g' \
        -e 's|%%BASH%%|${LOCALBASE}/bin/bash|g' \
        -e 's|python|${PYTHON_CMD}|g' \
        ${STAGEDIR}${PREFIX}/bin/dDocent

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

.include <bsd.port.mk>