svn commit: r321308 - head/biology/gff2ps

Boris Samorodov bsam at FreeBSD.org
Wed Jun 19 18:56:38 UTC 2013


Author: bsam
Date: Wed Jun 19 18:56:37 2013
New Revision: 321308
URL: http://svnweb.freebsd.org/changeset/ports/321308

Log:
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . trim Makefile headers.

Modified:
  head/biology/gff2ps/Makefile

Modified: head/biology/gff2ps/Makefile
==============================================================================
--- head/biology/gff2ps/Makefile	Wed Jun 19 18:53:54 2013	(r321307)
+++ head/biology/gff2ps/Makefile	Wed Jun 19 18:56:37 2013	(r321308)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	gff2ps
-# Date created:				17 December 2001
-# Whom:					Camson Huynh <chuynh at biolateral.com.au>
-#
+# Created by: Camson Huynh <chuynh at 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 at 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


More information about the svn-ports-head mailing list