Date: Tue, 11 Jun 2013 10:55:17 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320546 - in head/devel: . tradcpp tradcpp/files Message-ID: <201306111055.r5BAtHmb094470@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Tue Jun 11 10:55:16 2013 New Revision: 320546 URL: http://svnweb.freebsd.org/changeset/ports/320546 Log: tradcpp is a traditional (K&R-style) preprocessor. It has the particular property that it doesn't (for the most part) trash whitespace, so it can be used on makefiles. This is only release 0.1; it is missing some features and doubtless has quite a few bugs, but it's capable of building at least some packages when used with imake. Added: head/devel/tradcpp/ head/devel/tradcpp/Makefile (contents, props changed) head/devel/tradcpp/distinfo (contents, props changed) head/devel/tradcpp/files/ head/devel/tradcpp/files/patch-directive.c (contents, props changed) head/devel/tradcpp/files/patch-files.c (contents, props changed) head/devel/tradcpp/files/patch-output.c (contents, props changed) head/devel/tradcpp/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Jun 11 10:33:20 2013 (r320545) +++ head/devel/Makefile Tue Jun 11 10:55:16 2013 (r320546) @@ -4355,6 +4355,7 @@ SUBDIR += tortoisehg2 SUBDIR += tpasm SUBDIR += trac-bitten + SUBDIR += tradcpp SUBDIR += trio SUBDIR += truc SUBDIR += uatraits Added: head/devel/tradcpp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/Makefile Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= tradcpp +PORTVERSION= 0.1 +CATEGORIES= devel +MASTER_SITES= http://ftp.NetBSD.org/pub/NetBSD/misc/dholland/ + +MAINTAINER= bapt@FreeBSD.org +COMMENT= Traditional (K&R-style) C preprocessor + +LICENSE= BSD + +PLIST_FILES= bin/tradcpp + +post-patch: + @${REINPLACE_CMD} 's/NOMAN/NO_MAN/' ${WRKSRC}/Makefile + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + +.include <bsd.port.mk> Added: head/devel/tradcpp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/distinfo Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,2 @@ +SHA256 (tradcpp-0.1.tar.gz) = b3f92103bbf5df833364cd80746c5c6d14b17581cb2a4fba09739cee01445fae +SIZE (tradcpp-0.1.tar.gz) = 28288 Added: head/devel/tradcpp/files/patch-directive.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/files/patch-directive.c Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,56 @@ +--- ./directive.c.orig 2013-06-11 06:14:31.000000000 +0200 ++++ ./directive.c 2013-06-11 14:19:53.281451337 +0200 +@@ -238,7 +238,7 @@ + + static + void +-d_else(struct place *p, struct place *p2, char *line) ++d_else(struct place *p, struct place *p2 __unused, char *line __unused) + { + if (ifstate->seenelse) { + complain(p, "Multiple #else directives in one conditional"); +@@ -252,7 +252,7 @@ + + static + void +-d_endif(struct place *p, struct place *p2, char *line) ++d_endif(struct place *p, struct place *p2 __unused, char *line __unused) + { + if (ifstate->prev == NULL) { + complain(p, "Unmatched #endif"); +@@ -267,7 +267,7 @@ + + static + void +-d_define(struct place *p, struct place *p2, char *line) ++d_define(struct place *p __unused, struct place *p2, char *line) + { + size_t pos, argpos; + struct place p3, p4; +@@ -330,7 +330,7 @@ + + static + void +-d_undef(struct place *p, struct place *p2, char *line) ++d_undef(struct place *p __unused, struct place *p2, char *line) + { + uncomment(line); + oneword("#undef", p2, line); +@@ -393,7 +393,7 @@ + + static + void +-d_line(struct place *p, struct place *p2, char *line) ++d_line(struct place *p, struct place *p2 __unused, char *line __unused) + { + /* XXX */ + complain(p, "Sorry, no #line yet"); +@@ -433,7 +433,7 @@ + + static + void +-d_pragma(struct place *p, struct place *p2, char *line) ++d_pragma(struct place *p, struct place *p2 __unused, char *line) + { + complain(p, "#pragma %s", line); + complain_fail(); Added: head/devel/tradcpp/files/patch-files.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/files/patch-files.c Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,20 @@ +--- ./files.c.orig 2013-06-11 14:21:06.504446578 +0200 ++++ ./files.c 2013-06-11 14:23:44.928830892 +0200 +@@ -340,6 +340,17 @@ + + assert(place != NULL); + ++ if (name[0] == '/') { ++ fd = file_tryopen(name); ++ if (fd >= 0) { ++ pf = place_addfile(place, name, true); ++ file_read(pf, fd, name, false); ++ close(fd); ++ return; ++ } ++ complain(place, "Include file %s not found", name); ++ complain_fail(); ++ } + num = incdirarray_num(path); + for (i=0; i<num; i++) { + id = incdirarray_get(path, i); Added: head/devel/tradcpp/files/patch-output.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/files/patch-output.c Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,11 @@ +--- ./output.c.orig 2013-06-11 06:14:31.000000000 +0200 ++++ ./output.c 2013-06-11 14:19:53.285452684 +0200 +@@ -96,7 +96,7 @@ + + static + void +-filter_output(const struct place *p, const char *buf, size_t len) ++filter_output(const struct place *p __unused, const char *buf, size_t len) + { + size_t pos, start; + bool inesc = false; Added: head/devel/tradcpp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tradcpp/pkg-descr Tue Jun 11 10:55:16 2013 (r320546) @@ -0,0 +1,8 @@ +tradcpp is a traditional (K&R-style) preprocessor. + +It has the particular property that it doesn't (for the most part) +trash whitespace, so it can be used on makefiles. + +This is only release 0.1; it is missing some features and doubtless +has quite a few bugs, but it's capable of building at least some +packages when used with imake.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306111055.r5BAtHmb094470>