From owner-svn-ports-all@freebsd.org Mon Dec 26 16:43:24 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A793C91D3C; Mon, 26 Dec 2016 16:43:24 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1279D1DEF; Mon, 26 Dec 2016 16:43:23 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBQGhNV3099378; Mon, 26 Dec 2016 16:43:23 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBQGhNOl099376; Mon, 26 Dec 2016 16:43:23 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201612261643.uBQGhNOl099376@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Mon, 26 Dec 2016 16:43:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r429539 - head/devel/bison X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2016 16:43:24 -0000 Author: sunpoet Date: Mon Dec 26 16:43:22 2016 New Revision: 429539 URL: https://svnweb.freebsd.org/changeset/ports/429539 Log: - Change from post-extract: to post-patch: - Cosmetic change - Update WWW Modified: head/devel/bison/Makefile head/devel/bison/pkg-descr Modified: head/devel/bison/Makefile ============================================================================== --- head/devel/bison/Makefile Mon Dec 26 16:43:18 2016 (r429538) +++ head/devel/bison/Makefile Mon Dec 26 16:43:22 2016 (r429539) @@ -15,30 +15,27 @@ BUILD_DEPENDS= m4>=1.4.16,1:devel/m4 RUN_DEPENDS= m4>=1.4.16,1:devel/m4 OPTIONS_DEFINE= EXAMPLES NLS +OPTIONS_SUB= yes -USES= charsetfix makeinfo perl5 tar:xz -USE_PERL5= build -GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--disable-yacc CPPFLAGS+= -I${LOCALBASE}/include +GNU_CONFIGURE= yes LDFLAGS+= -L${LOCALBASE}/lib - -CONFIGURE_ARGS+=--disable-yacc +USE_PERL5= build +USES= charsetfix makeinfo perl5 tar:xz INFO= bison +PORTEXAMPLES= calc++ -NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls -OPTIONS_SUB= yes +NLS_USES= gettext -post-extract: +post-patch: @${RM} ${WRKSRC}/doc/bison.info* @${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in -PORTEXAMPLES= calc++ - post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/calc++ - ${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \ - ${STAGEDIR}${EXAMPLESDIR}/calc++ + ${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* ${STAGEDIR}${EXAMPLESDIR}/calc++ .include Modified: head/devel/bison/pkg-descr ============================================================================== --- head/devel/bison/pkg-descr Mon Dec 26 16:43:18 2016 (r429538) +++ head/devel/bison/pkg-descr Mon Dec 26 16:43:22 2016 (r429539) @@ -1,22 +1,13 @@ -Bison is a tool used to write parsers, such as the parser for GNU cc. -It is similar to Yacc, which is included in the base FreeBSD system. +Bison is a general-purpose parser generator that converts an annotated +context-free grammar into a deterministic LR or generalized LR (GLR) parser +employing LALR(1) parser tables. As an experimental feature, Bison can also +generate IELR(1) or canonical LR(1) parser tables. Once you are proficient with +Bison, you can use it to develop a wide range of language parsers, from those +used in simple desk calculators to complex programming languages. -The main difference between Bison and Yacc that I know of is that -Bison supports the @N construction, which gives you access to -the starting and ending line number and character number associated -with any of the symbols in the current rule. +Bison is upward compatible with Yacc: all properly-written Yacc grammars ought +to work with Bison with no change. Anyone familiar with Yacc should be able to +use Bison with little trouble. You need to be fluent in C or C++ programming in +order to use Bison. Java is also supported as an experimental feature. -Also, Bison supports the command `%expect N' which says not to mention -the conflicts if there are N shift/reduce conflicts and no reduce/reduce -conflicts. - -The differences in the algorithms stem mainly from the horrible -kludges that Johnson had to perpetrate to make Yacc fit in a PDP-11. - -Also, Bison uses a faster but less space-efficient encoding for the -parse tables (see Corbett's PhD thesis from Berkeley, "Static -Semantics in Compiler Error Recovery", June 1985, Report No. UCB/CSD -85/251), and more modern technique for generating the lookahead sets. -(See "Efficient Construction of LALR(1) Lookahead Sets" by F. DeRemer -and A. Pennello, in ACM TOPLS Vol 4 No 4, October 1982. Their -technique is the standard one now.) +WWW: https://www.gnu.org/software/bison/