aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2013-05-26 20:02:15 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2013-05-26 20:02:15 +0000
commit842162bd3950e2cbdec69217c95f501b82caac7a (patch)
tree721d1c4ddecb62e0793233562344b4774cd690c4
parentb615cad328c8614184f0c2c919e3e7c449e298a8 (diff)
downloadports-842162bd3950e2cbdec69217c95f501b82caac7a.tar.gz
ports-842162bd3950e2cbdec69217c95f501b82caac7a.zip
Notes
-rw-r--r--sysutils/cw/Makefile19
-rw-r--r--sysutils/cw/pkg-plist8
2 files changed, 10 insertions, 17 deletions
diff --git a/sysutils/cw/Makefile b/sysutils/cw/Makefile
index 811f2b65204d..f9495ec43d35 100644
--- a/sysutils/cw/Makefile
+++ b/sysutils/cw/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cw
-# Date created: 4 December 2006
-# Whom: Dryice Liu <dryice@dryice.name>
-#
+# Created by: Dryice Liu <dryice@dryice.name>
# $FreeBSD$
-#
PORTNAME= cw
PORTVERSION= 1.0.16
@@ -12,19 +8,24 @@ MASTER_SITES= http://cwrapper.sourceforge.net/ \
http://www.fakehalo.us/cw/
MAINTAINER= ports@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>
diff --git a/sysutils/cw/pkg-plist b/sysutils/cw/pkg-plist
index b0479e0302c2..225572bdece4 100644
--- a/sysutils/cw/pkg-plist
+++ b/sysutils/cw/pkg-plist
@@ -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