From owner-svn-ports-head@FreeBSD.ORG Tue Jun 11 10:55:18 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 94B4BBE7; Tue, 11 Jun 2013 10:55:18 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 86D151B7A; Tue, 11 Jun 2013 10:55:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5BAtIJI094479; Tue, 11 Jun 2013 10:55:18 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5BAtHmb094470; Tue, 11 Jun 2013 10:55:17 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201306111055.r5BAtHmb094470@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 11 Jun 2013 10:55:17 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 10:55:18 -0000 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 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