Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  7 Feb 2013 15:17:48 +0800 (CST)
From:      Po-Chien Lin <linpc@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        armin@frozen-zone.org
Subject:   ports/175920: [PATCH] lang/cparser: update to 0.9.14
Message-ID:  <20130207071748.511724CD40@dev.linpc.org>
Resent-Message-ID: <201302070720.r177K0hm036218@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <christoph.mallon@gmx.de>
-#
+# Created by: Christoph Mallon <christoph.mallon@gmx.de>
 # $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 <bsd.port.pre.mk>
 
-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 <bsd.port.post.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130207071748.511724CD40>