aboutsummaryrefslogtreecommitdiff
path: root/biology
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2013-06-19 18:56:37 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2013-06-19 18:56:37 +0000
commitc23d4e5464eb2ee7d48e164e817470cf3e80ae46 (patch)
tree611f049d5b67da79364a26ddb0c9c181795c9655 /biology
parenta4c819f7093bc75a8f3c6a9db88d40691e21e97b (diff)
downloadports-c23d4e5464eb2ee7d48e164e817470cf3e80ae46.tar.gz
ports-c23d4e5464eb2ee7d48e164e817470cf3e80ae46.zip
Notes
Diffstat (limited to 'biology')
-rw-r--r--biology/gff2ps/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/biology/gff2ps/Makefile b/biology/gff2ps/Makefile
index b95c40ae5545..c5073acc68f6 100644
--- a/biology/gff2ps/Makefile
+++ b/biology/gff2ps/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gff2ps
-# Date created: 17 December 2001
-# Whom: Camson Huynh <chuynh@biolateral.com.au>
-#
+# Created by: Camson Huynh <chuynh@biolateral.com.au>
# $FreeBSD$
-#
PORTNAME= gff2ps
PORTVERSION= 0.98d
@@ -12,9 +8,6 @@ CATEGORIES= biology
MASTER_SITES= ftp://genome.crg.es/pub/gff_tools/gff2ps/ \
http://genome.crg.es/software/gfftools/gff2ps_docs/manual/:doc
DISTFILES= ${PORTNAME}_v${PORTVERSION}.gz
-.if !defined(NOPORTDOCS)
-DISTFILES+= ${GFF2PS_MAN}.gz:doc
-.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts gff-formated genomic data-sets to PostScript
@@ -32,11 +25,19 @@ PLIST_FILES= bin/${PORTNAME}
GFF2PS_MAN= MANUAL_GFF2PS_v0.96.ps
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+DISTFILES+= ${GFF2PS_MAN}.gz:doc
+.endif
+
do-extract:
@${MKDIR} ${WRKDIR}
@${GZCAT} ${DISTDIR}/${PORTNAME}_v${PORTVERSION}.gz \
> ${WRKDIR}/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${GZCAT} ${DISTDIR}/${GFF2PS_MAN}.gz > ${WRKDIR}/${GFF2PS_MAN}
.endif
@@ -47,7 +48,7 @@ post-patch:
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/gff2ps ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${GFF2PS_MAN} ${DOCSDIR}
.endif