Ticket #41407: Portfile

File Portfile, 1.8 KB (added by arjanvandervelde (Arjan van der Velde), 11 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                bedtools
6version             2.17.0
7revision            1
8categories          science
9maintainers         gmail.com:vandervelde.ag openmaintainer
10license             GPL-2
11description         Utilities to perform basic operations on BED files
12long_description    The BEDTools utilities allow one to address common genomics \
13                    tasks such as finding feature overlaps and computing coverage. \
14                    The utilities are largely based on four widely-used file formats: \
15                    BED, GFF/GTF, VCF, and SAM/BAM.
16homepage            https://code.google.com/p/bedtools/
17master_sites        https://bedtools.googlecode.com/files/
18platforms           darwin
19depends_lib         port:zlib
20distname            BEDTools.v${version}
21worksrcdir          bedtools-${version}
22checksums           sha1    1b1de3c35394a423f9ad98a9957a8853b426a578 \
23                    rmd160  dccc7dc02dd0519977e30f83a0d49c9f9b0e0ca9 \
24                    sha256  6dcfacdcbccc968e872b81ba1f37a086b1bcc486571582ed595db717e924d0fe
25use_configure       no
26configure.cflags-append -std=gnu89
27build.args              CC=${configure.cc} \
28                        CFLAGS="-g -Wall ${configure.cflags} ${configure.cc_archflags}"
29use_parallel_build  no
30set bedtools_destdir ${destroot}${prefix}/bin
31build.target        all
32
33destroot {
34    eval xinstall -m 755 [glob ${worksrcpath}/bin/*] ${bedtools_destdir}/
35    xinstall -d ${destroot}${prefix}/share/doc/${name}
36    xinstall -d ${destroot}${prefix}/share/${name}/genomes
37    xinstall -m 644 -W ${worksrcpath} \
38        LICENSE README.rst RELEASE_HISTORY \
39        ${destroot}${prefix}/share/doc/${name}
40    eval xinstall -m 644 [glob ${worksrcpath}/genomes/*] ${destroot}${prefix}/share/${name}/genomes/
41}
42