svn commit: r319132 - head/sysutils/cw
Boris Samorodov
bsam at FreeBSD.org
Sun May 26 20:02:16 UTC 2013
Author: bsam
Date: Sun May 26 20:02:15 2013
New Revision: 319132
URL: http://svnweb.freebsd.org/changeset/ports/319132
Log:
. trim Makefile headers;
. remove the indefinite article from COMMENT;
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. define PORTDOCS at Makefile;
. remove port docs from pkg-plist;
. indent .for loop inside .if statement.
Modified:
head/sysutils/cw/Makefile
head/sysutils/cw/pkg-plist
Modified: head/sysutils/cw/Makefile
==============================================================================
--- head/sysutils/cw/Makefile Sun May 26 19:36:04 2013 (r319131)
+++ head/sysutils/cw/Makefile Sun May 26 20:02:15 2013 (r319132)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cw
-# Date created: 4 December 2006
-# Whom: Dryice Liu <dryice at dryice.name>
-#
+# Created by: Dryice Liu <dryice at dryice.name>
# $FreeBSD$
-#
PORTNAME= cw
PORTVERSION= 1.0.16
@@ -12,19 +8,24 @@ MASTER_SITES= http://cwrapper.sourceforg
http://www.fakehalo.us/cw/
MAINTAINER= ports at FreeBSD.org
-COMMENT= A non-intrusive color wrapper for common commands
+COMMENT= Non-intrusive color wrapper for common commands
GNU_CONFIGURE= yes
MANCOMPRESSED= yes
MAN1= cw.1 cwe.1 cwu.1
+OPTIONS_DEFINE= DOCS
+PORTDOCS= *
+
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in CHANGES CONTRIB FILES INSTALL PLATFORM README VERSION
+. for file in CHANGES CONTRIB FILES INSTALL PLATFORM README VERSION
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+. endfor
.endif
.include <bsd.port.mk>
Modified: head/sysutils/cw/pkg-plist
==============================================================================
--- head/sysutils/cw/pkg-plist Sun May 26 19:36:04 2013 (r319131)
+++ head/sysutils/cw/pkg-plist Sun May 26 20:02:15 2013 (r319132)
@@ -121,13 +121,5 @@ lib/cw/wc
lib/cw/whereis
lib/cw/who
lib/cw/xferlog@
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
-%%PORTDOCS%%%%DOCSDIR%%/FILES
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/PLATFORM
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/VERSION
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/cw/etc
@dirrm lib/cw
More information about the svn-ports-all
mailing list