svn commit: r357466 - in head: . devel devel/c2mdoc devel/c2mdoc/files
John Marino
marino at FreeBSD.org
Wed Jun 11 12:23:27 UTC 2014
Author: marino
Date: Wed Jun 11 12:23:25 2014
New Revision: 357466
URL: http://svnweb.freebsd.org/changeset/ports/357466
QAT: https://qat.redports.org/buildarchive/r357466/
Log:
Resurrect devel/c2mdoc (with stage support), assign maintainer
It seems that this port was killed for not having publically available
distfiles, but from what I can tell, this was always a distfile-free
port, meaning that it was removed in error.
The PR to bring it back did not provide the required stage support, but
luckily that was trivial to add. Differences from the previous version:
* pkg-descr rewrapped
* whitespace removed from awk script (caused PORTREVISION bump)
* Header trimmed
* NOMAN definition removed
* CP+REINPLACE_CMD replaced with SED and moved to post-extract target
* Stage support
* Maintenance passed to PR submitter
PR: 189009
Submitted by: Chris Hutchinson
Tweaks by: marino
Added:
head/devel/c2mdoc/
- copied from r270910, head/devel/c2mdoc/
Modified:
head/MOVED
head/devel/Makefile
head/devel/c2mdoc/Makefile (contents, props changed)
head/devel/c2mdoc/files/c2mdoc.awk (contents, props changed)
head/devel/c2mdoc/pkg-descr (contents, props changed)
Modified: head/MOVED
==============================================================================
--- head/MOVED Wed Jun 11 12:09:47 2014 (r357465)
+++ head/MOVED Wed Jun 11 12:23:25 2014 (r357466)
@@ -2056,7 +2056,6 @@ editors/xenon||2011-05-02|Has expired: U
devel/a2dev||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
devel/c2lib||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
devel/c2man||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
-devel/c2mdoc||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
devel/c_parser||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
devel/cdoc||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
devel/diffconvert||2011-05-02|Has expired: Upstream disappeared and distfile is no longer available
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Jun 11 12:09:47 2014 (r357465)
+++ head/devel/Makefile Wed Jun 11 12:23:25 2014 (r357466)
@@ -178,6 +178,7 @@
SUBDIR += bzr-upload
SUBDIR += bzrtools
SUBDIR += c-unit
+ SUBDIR += c2mdoc
SUBDIR += c4
SUBDIR += calibrator
SUBDIR += capstone
Modified: head/devel/c2mdoc/Makefile
==============================================================================
--- head/devel/c2mdoc/Makefile Mon Mar 14 22:57:15 2011 (r270910)
+++ head/devel/c2mdoc/Makefile Wed Jun 11 12:23:25 2014 (r357466)
@@ -1,33 +1,29 @@
-# New ports collection makefile for: c2mdoc
-# Date created: 2 March 2004
-# Whom: Bruce M. Simpson <bms at FreeBSD.org>
-#
+# Created by: Bruce M. Simpson <bms at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= c2mdoc
PORTVERSION= 20040302
+PORTREVISION= 1
CATEGORIES= devel textproc
MASTER_SITES= #
DISTFILES=
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= portmaster at bsdforge.com
COMMENT= Script to generate mdoc(7) markup from C functions
RUN_DEPENDS= cproto:${PORTSDIR}/devel/cproto
-NOMAN=
-
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= bin/c2mdoc libexec/c2mdoc.awk
+post-extract:
+ ${SED} -e "s|%%LIBEXECDIR%%|${PREFIX}/libexec|g;" \
+ ${FILESDIR}/c2mdoc > ${WRKDIR}/c2mdoc
+
do-install:
- ${INSTALL_SCRIPT} ${FILESDIR}/c2mdoc.awk ${PREFIX}/libexec
- ${CP} ${FILESDIR}/c2mdoc ${WRKDIR}
- ${REINPLACE_CMD} -e "s|%%LIBEXECDIR%%|${PREFIX}/libexec|g;" \
- ${WRKDIR}/c2mdoc
- ${INSTALL_SCRIPT} ${WRKDIR}/c2mdoc ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${FILESDIR}/c2mdoc.awk ${STAGEDIR}${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKDIR}/c2mdoc ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
Modified: head/devel/c2mdoc/files/c2mdoc.awk
==============================================================================
--- head/devel/c2mdoc/files/c2mdoc.awk Mon Mar 14 22:57:15 2011 (r270910)
+++ head/devel/c2mdoc/files/c2mdoc.awk Wed Jun 11 12:23:25 2014 (r357466)
@@ -10,6 +10,6 @@ BEGIN { FS="\t" }
printf ".Ft %s\n", $1 ;
printf ".Fn %s", $2 ;
for (i = 4; i < NF; i++)
- printf " \"%s\"", $i
+ printf " \"%s\"", $i
printf "\n" ;
}
Modified: head/devel/c2mdoc/pkg-descr
==============================================================================
--- head/devel/c2mdoc/pkg-descr Mon Mar 14 22:57:15 2011 (r270910)
+++ head/devel/c2mdoc/pkg-descr Wed Jun 11 12:23:25 2014 (r357466)
@@ -1,5 +1,5 @@
-c2mdoc is a shell and awk script wrapper which abuses devel/cproto's parser
-to spit out function prototypes in a format ready to paste into FreeBSD
-developer documentation. c2man already claims to do such a thing, but seems
-crippled in the face of our kernel source. The toolchain used by this port
-whinges but still generates markup.
+c2mdoc is a shell and awk script wrapper which abuses devel/cproto's
+parser to spit out function prototypes in a format ready to paste into
+FreeBSD developer documentation. c2man already claims to do such a
+thing, but seems crippled in the face of our kernel source. The
+toolchain used by this port whinges but still generates markup.
More information about the svn-ports-head
mailing list