aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-03-03 13:21:35 +0000
committerChris Rees <crees@FreeBSD.org>2012-03-03 13:21:35 +0000
commit343fd151b9d99ee151e93d7909cdc13fdf18f46b (patch)
tree2f3a5682e2f26cd72a561646b5da37f0b4b83154
parent54ab47944e4a493c9e1b411811658fe22a7846d3 (diff)
downloadports-343fd151b9d99ee151e93d7909cdc13fdf18f46b.tar.gz
ports-343fd151b9d99ee151e93d7909cdc13fdf18f46b.zip
Notes
-rw-r--r--ports-mgmt/Makefile1
-rw-r--r--ports-mgmt/mkreadmes/Makefile40
-rw-r--r--ports-mgmt/mkreadmes/distinfo2
-rw-r--r--ports-mgmt/mkreadmes/pkg-descr4
-rw-r--r--ports-mgmt/mkreadmes/pkg-message3
5 files changed, 50 insertions, 0 deletions
diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index b1d87d670eed..ded50f54d24c 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -18,6 +18,7 @@
SUBDIR += kports-qt4
SUBDIR += lsknobs
SUBDIR += managepkg
+ SUBDIR += mkreadmes
SUBDIR += p5-App-Pm2Port
SUBDIR += p5-FreeBSD-Pkgs
SUBDIR += p5-FreeBSD-Pkgs-FindUpdates
diff --git a/ports-mgmt/mkreadmes/Makefile b/ports-mgmt/mkreadmes/Makefile
new file mode 100644
index 000000000000..d5a154837443
--- /dev/null
+++ b/ports-mgmt/mkreadmes/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: mkreadmes
+# Date created: 2012-03-01
+# Whom: Conrad J. Sabatier <conrads@cox.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mkreadmes
+DISTVERSION= 1.0
+CATEGORIES= ports-mgmt
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= conrads@cox.net
+COMMENT= A speedy substitute for "make readmes"
+
+USE_BZIP2= yes
+
+PLIST_FILES= sbin/${PORTNAME}
+PORTDATA= *
+
+post-extract:
+# adjust definition of PREFIX in mkreadmes.h only if it differs from
+# the current setting of ${PREFIX}
+ @${EGREP} -q '^#define[[:space:]]+PREFIX[[:space:]]+"${PREFIX}"' \
+ ${WRKSRC}/mkreadmes.h || \
+ ${REINPLACE_CMD} -Ee \
+ 's|^(#define[[:space:]]+PREFIX[[:space:]]+)\"[^"]+\"|\1"${PREFIX}"|' \
+ ${WRKSRC}/mkreadmes.h
+
+# adjust reference to ${PREFIX} in usage() function's description of
+# the "-t pathname" option only if it differs from the current setting
+# of ${PREFIX}
+ @${EGREP} -q 'default ${PREFIX}' ${WRKSRC}/main.c || \
+ ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/main.c
+
+post-install:
+ @${CAT} pkg-message
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/mkreadmes/distinfo b/ports-mgmt/mkreadmes/distinfo
new file mode 100644
index 000000000000..7cc4d8b5d7e6
--- /dev/null
+++ b/ports-mgmt/mkreadmes/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mkreadmes-1.0.tar.bz2) = 244fbcbb19a852238797e12dc7a1d7e398f908e53315aa856540e1e635a231af
+SIZE (mkreadmes-1.0.tar.bz2) = 14904
diff --git a/ports-mgmt/mkreadmes/pkg-descr b/ports-mgmt/mkreadmes/pkg-descr
new file mode 100644
index 000000000000..7f84a7eda4d3
--- /dev/null
+++ b/ports-mgmt/mkreadmes/pkg-descr
@@ -0,0 +1,4 @@
+Mkreadmes is designed to be a very fast, flexible and easy-to-use alternative
+to the standard "make readmes" for building the README.html files for the
+FreeBSD Ports Collection, building the files in a fraction of the time of the
+standard method.
diff --git a/ports-mgmt/mkreadmes/pkg-message b/ports-mgmt/mkreadmes/pkg-message
new file mode 100644
index 000000000000..ddd7638b4c2c
--- /dev/null
+++ b/ports-mgmt/mkreadmes/pkg-message
@@ -0,0 +1,3 @@
+For full description and usage information, see the file
+"${PREFIX}/share/mkreadmes/README", or type "mkreadmes -h"
+for help (sorry, no man page).