Date: Sun, 6 May 2018 12:31:03 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469196 - in head/textproc: . c2man c2man/files Message-ID: <201805061231.w46CV3JJ038768@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lwhsu Date: Sun May 6 12:31:02 2018 New Revision: 469196 URL: https://svnweb.freebsd.org/changeset/ports/469196 Log: Add c2man, tool to generate documentation from C source code comments Add with DEPRECATED but without EXPIRATION_DATE because it is not recommended for use in new projects. We still add this port because there is needed for building GNU FriBidi from git snapshot. PR: 226915 Submitted by: Ting-Wei Lan <lantw44@gmail.com> Added: head/textproc/c2man/ head/textproc/c2man/Makefile (contents, props changed) head/textproc/c2man/distinfo (contents, props changed) head/textproc/c2man/files/ head/textproc/c2man/files/patch-grammar.y (contents, props changed) head/textproc/c2man/files/patch-lex.l (contents, props changed) head/textproc/c2man/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Sun May 6 12:16:27 2018 (r469195) +++ head/textproc/Makefile Sun May 6 12:31:02 2018 (r469196) @@ -70,6 +70,7 @@ SUBDIR += bsdsort SUBDIR += btparse SUBDIR += c2html + SUBDIR += c2man SUBDIR += ca-aspell SUBDIR += catdoc SUBDIR += cdif Added: head/textproc/c2man/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/c2man/Makefile Sun May 6 12:31:02 2018 (r469196) @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= c2man +PORTVERSION= ${VERSION}.${PATCHLEVEL} +CATEGORIES= textproc +MASTER_SITES= http://www.ciselant.de/${PORTNAME}/ +DISTNAME= ${PORTNAME}-${VERSION}@${PATCHLEVEL} + +MAINTAINER= lantw44@gmail.com +COMMENT= Tool to generate documentation from C source code comments + +LICENSE= ${PORTNAME} +LICENSE_NAME= ${PORTNAME} +LICENSE_FILE= ${WRKSRC}/README +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +DEPRECATED= Not recommended for use in new projects + +VERSION= 2.0 +PATCHLEVEL= 42 + +NO_WRKSUBDIR= yes +NO_INSTALL= yes + +PLIST_FILES= bin/c2man man/man1/c2man.1.gz + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT=Configure +CONFIGURE_ARGS= -des -Dcc="${CC}" -Dccflags="${CFLAGS}" -Dldflags="${LDFLAGS}" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/ + +.include <bsd.port.mk> Added: head/textproc/c2man/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/c2man/distinfo Sun May 6 12:31:02 2018 (r469196) @@ -0,0 +1,3 @@ +TIMESTAMP = 1518289578 +SHA256 (c2man-2.0@42.tar.gz) = 0280ba17471da32216af2109e7e3b17ff2fda15f294d68efdc0108eca64cd577 +SIZE (c2man-2.0@42.tar.gz) = 188551 Added: head/textproc/c2man/files/patch-grammar.y ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/c2man/files/patch-grammar.y Sun May 6 12:31:02 2018 (r469196) @@ -0,0 +1,22 @@ +--- grammar.y.orig 1998-09-30 01:29:13 UTC ++++ grammar.y +@@ -14,7 +14,7 @@ + %token T_INLINE + + /* type specifiers */ +-%token T_CHAR T_DOUBLE T_FLOAT T_INT T_VOID ++%token T_CHAR T_DOUBLE T_FLOAT T_INT T_VOID T_VALIST + %token T_LONG T_SHORT T_SIGNED T_UNSIGNED + %token T_ENUM T_STRUCT T_UNION + +@@ -374,6 +374,10 @@ type_specifier + { + new_decl_spec(&$$, "void", DS_NONE); + } ++ | T_VALIST ++ { ++ new_decl_spec(&$$, "va_list", DS_NONE); ++ } + | struct_or_union_specifier + | enum_specifier + | T_TYPEDEF_NAME Added: head/textproc/c2man/files/patch-lex.l ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/c2man/files/patch-lex.l Sun May 6 12:31:02 2018 (r469196) @@ -0,0 +1,10 @@ +--- lex.l.orig 2000-02-25 01:41:11 UTC ++++ lex.l +@@ -167,6 +167,7 @@ QUOTED ({STRING}|\'(\\\'|[^'\n])*\'|\\. + <INITIAL>float return T_FLOAT; + <INITIAL>int return T_INT; + <INITIAL>void return T_VOID; ++<INITIAL>__builtin_va_list return T_VALIST; + <INITIAL>long return T_LONG; + <INITIAL>short return T_SHORT; + <INITIAL>signed return T_SIGNED; Added: head/textproc/c2man/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/c2man/pkg-descr Sun May 6 12:31:02 2018 (r469196) @@ -0,0 +1,5 @@ +c2man is an obsolete and unmaintained documentation tool that extracts comments +from C source code. Do not use this tool in new projects. The only reason for it +to exist in FreeBSD ports is to allow building GNU FriBidi from a git snapshot. + +WWW: http://www.ciselant.de/c2man/c2man.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805061231.w46CV3JJ038768>