From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 7 07:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A39A82CA for ; Thu, 7 Feb 2013 07:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 867F2663 for ; Thu, 7 Feb 2013 07:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r177K0c6036219 for ; Thu, 7 Feb 2013 07:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r177K0hm036218; Thu, 7 Feb 2013 07:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 7 Feb 2013 07:20:00 GMT Resent-Message-Id: <201302070720.r177K0hm036218@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Po-Chien Lin Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 222F2229 for ; Thu, 7 Feb 2013 07:17:52 +0000 (UTC) (envelope-from linpc@dev.linpc.org) Received: from dev.linpc.org (sq1.cs.nctu.edu.tw [140.113.208.226]) by mx1.freebsd.org (Postfix) with ESMTP id B4CEB647 for ; Thu, 7 Feb 2013 07:17:51 +0000 (UTC) Received: by dev.linpc.org (Postfix, from userid 1001) id 511724CD40; Thu, 7 Feb 2013 15:17:48 +0800 (CST) Message-Id: <20130207071748.511724CD40@dev.linpc.org> Date: Thu, 7 Feb 2013 15:17:48 +0800 (CST) From: Po-Chien Lin To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/175920: [PATCH] lang/cparser: update to 0.9.14 Cc: armin@frozen-zone.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 07:20:00 -0000 >Number: 175920 >Category: ports >Synopsis: [PATCH] lang/cparser: update to 0.9.14 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 07:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Po-Chien Lin >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD dev.linpc.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Sat Jan 5 22:32:49 CST >Description: - Update to 0.9.14 - Depends on ports/175919 - Switch to OptionsNG - Add Options for DEBUG - Update pkg-descr and WWW: >How-To-Repeat: >Fix: --- cparser-0.9.14.patch begins here --- diff -ruN --exclude=CVS /usr/ports/lang/cparser/Makefile ./Makefile --- /usr/ports/lang/cparser/Makefile 2013-01-06 00:18:30.435177293 +0800 +++ ./Makefile 2013-02-07 14:22:15.883084508 +0800 @@ -1,12 +1,8 @@ -# New ports collection makefile for: libFIRM -# Date created: 22 Nov 2008 -# Whom: Christoph Mallon -# +# Created by: Christoph Mallon # $FreeBSD: head/lang/cparser/Makefile 300896 2012-07-14 13:54:48Z beat $ -# PORTNAME= cparser -PORTVERSION= 0.9.13 +PORTVERSION= 0.9.14 CATEGORIES= lang devel MASTER_SITES= SF @@ -19,15 +15,30 @@ USE_BZIP2= yes USE_GMAKE= yes +USE_PKGCONFIG= yes PLIST_FILES= bin/cparser +MAN1= cparser.1 + +BUILDDIR= optimize +INSTALL_CMD= ${INSTALL_PROGRAM} + +OPTIONS_DEFINE= DEBUG + .include -MAN1= cparser.1 +.if ${PORT_OPTIONS:MDEBUG} +BUILDDIR= debug +INSTALL_CMD= ${INSTALL_PROGRAM:S,-s,,} +.else +post-patch: + @${REINPLACE_CMD} -e 's/^variant ?= debug/variant ?= optimize/' \ + ${WRKSRC}/Makefile +.endif do-install: - @${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/cparser ${PREFIX}/bin - @${INSTALL_MAN} ${INSTALL_WRKSRC}/cparser.1 ${MAN1PREFIX}/man/man1 + @${INSTALL_CMD} ${WRKSRC}/build/${BUILDDIR}/cparser ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/cparser.1 ${MAN1PREFIX}/man/man1 .include diff -ruN --exclude=CVS /usr/ports/lang/cparser/distinfo ./distinfo --- /usr/ports/lang/cparser/distinfo 2013-01-06 00:18:30.440027282 +0800 +++ ./distinfo 2013-02-07 11:38:03.865388423 +0800 @@ -1,2 +1,2 @@ -SHA256 (cparser-0.9.13.tar.bz2) = ccc44a3b230beb841404a40cc792650accee2fa45ac7ad14820f792364e02dbc -SIZE (cparser-0.9.13.tar.bz2) = 190912 +SHA256 (cparser-0.9.14.tar.bz2) = 017a83d72c14e723573520bc92d78c988485e4086a15ce42e532561951510792 +SIZE (cparser-0.9.14.tar.bz2) = 193745 diff -ruN --exclude=CVS /usr/ports/lang/cparser/files/patch-firm_machine-c ./files/patch-firm_machine-c --- /usr/ports/lang/cparser/files/patch-firm_machine-c 2013-01-06 00:18:28.130025106 +0800 +++ ./files/patch-firm_machine-c 2013-02-07 13:26:37.373217880 +0800 @@ -4,7 +4,7 @@ --- driver/firm_machine.c 2011-04-14 16:51:46.000000000 +0200 +++ driver/firm_machine.c 2011-08-12 22:04:40.000000000 +0200 -@@ -77,12 +77,18 @@ +@@ -108,12 +108,18 @@ machine_triple_t *firm_get_host_machine(void) { machine_triple_t *machine = XMALLOC(machine_triple_t); diff -ruN --exclude=CVS /usr/ports/lang/cparser/pkg-descr ./pkg-descr --- /usr/ports/lang/cparser/pkg-descr 2013-01-06 00:18:30.440027282 +0800 +++ ./pkg-descr 2013-02-07 14:27:07.997097125 +0800 @@ -1,9 +1,8 @@ -cparser is a C compiler, which can parse C90 and C99 as well as many GCC and -some MSVC extensions. It also provides many useful analyses for warnings. It -uses libFIRM, which provides an SSA-based intermediate representation in form of -explicit dependency graphs, for optimization and code generation. Parsing is -done with a handwritten recursive descent parser. The AST representation is -straightforward, so it can be used for other purposes than code generation. +cparser is a recursive descent C99 parser written in C99. It contains lexer, +parser, constructs an AST and does semantic analysis. It is currently used as +a frontend to the libFirm intermediate representation, but can be used +independently. cparser is able to bootstrap itself. It currently uses an +external preprocessor. * fast recursive descent parser, parses C90 and C99 * handles most GCC extensions, e.g. __attribute__, inline assembler, @@ -21,4 +20,4 @@ * compiler driver compatible with GCC (-fxxx, -Wxxx, -M, ...) * uses libFIRM for optimization and code generation (devel/libfirm) -WWW: http://www.libfirm.org +WWW: http://sourceforge.net/projects/cparser/ --- cparser-0.9.14.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: