aboutsummaryrefslogtreecommitdiffstats
path: root/biology/gff2ps/Makefile
blob: 2e4151842928a229f092c884dd0939ee73ffd257 (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
# New ports collection makefile for:    gff2ps
# Date created:             17 December 2001
# Whom:                 Camson Huynh <chuynh@biolateral.com.au>
#
# $FreeBSD$
#

PORTNAME=   gff2ps
PORTVERSION=    0.98d
PORTREVISION=   2
CATEGORIES= biology
MASTER_SITES=   ftp://www1.imim.es/pub/gff_tools/gff2ps/:prog \
        http://www1.imim.es/software/gfftools/gff2ps_docs/manual/:doc
DISTFILES=  ${PORTNAME}_v${PORTVERSION}.gz:prog ${GFF2PS_MAN}.gz:doc

MAINTAINER= ports@FreeBSD.org
COMMENT=    Converts gff-formated genomic data-sets to PostScript

RUN_DEPENDS=    gawk:${PORTSDIR}/lang/gawk \
        bash:${PORTSDIR}/shells/bash

GFF2PS_MAN= MANUAL_GFF2PS_v0.96.ps
PATCH_WRKSRC=   ${WRKDIR}

NO_BUILD=   yes

post-patch:
    @${REINPLACE_CMD} -e 's,^#!/bin/bash,#!${LOCALBASE}/bin/bash,; \
        s,/usr/local/bin/gawk,${LOCALBASE}/bin/gawk,' ${WRKDIR}/gff2ps

do-extract:
    @${MKDIR} ${WRKDIR}
    @${GZCAT} ${DISTDIR}/${PORTNAME}_v${PORTVERSION}.gz \
        > ${WRKDIR}/${PORTNAME}
    @${GZCAT} ${DISTDIR}/${GFF2PS_MAN}.gz > ${WRKDIR}/${GFF2PS_MAN}

do-install:
    @${INSTALL_SCRIPT} ${WRKDIR}/gff2ps ${PREFIX}/bin
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKDIR}/${GFF2PS_MAN} ${DOCSDIR}
.endif

.include <bsd.port.mk>