[Midnightbsd-cvs] mports [22875] trunk/devel/bison: bison 3.0.4

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Oct 1 19:51:42 EDT 2017


Revision: 22875
          http://svnweb.midnightbsd.org/mports/?rev=22875
Author:   laffer1
Date:     2017-10-01 19:51:41 -0400 (Sun, 01 Oct 2017)
Log Message:
-----------
bison 3.0.4

Modified Paths:
--------------
    trunk/devel/bison/Makefile
    trunk/devel/bison/distinfo
    trunk/devel/bison/pkg-descr
    trunk/devel/bison/pkg-plist

Modified: trunk/devel/bison/Makefile
===================================================================
--- trunk/devel/bison/Makefile	2017-10-01 23:48:39 UTC (rev 22874)
+++ trunk/devel/bison/Makefile	2017-10-01 23:51:41 UTC (rev 22875)
@@ -1,8 +1,8 @@
 # $MidnightBSD$
 
 PORTNAME=	bison
-PORTVERSION=	2.7.1
-PORTREVISION=	5
+PORTVERSION=	3.0.4
+PORTREVISION=	0
 PORTEPOCH=	1
 CATEGORIES=	devel
 MASTER_SITES=	GNU
@@ -11,35 +11,30 @@
 COMMENT=	Parser generator from FSF, (mostly) compatible with Yacc
 
 LICENSE=	gpl3
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-OPTIONS_DEFINE=	EXAMPLES NLS
+BUILD_DEPENDS=	m4>=1.4.16:devel/m4
+RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-BUILD_DEPENDS=	gm4:${PORTSDIR}/devel/m4
-RUN_DEPENDS=	gm4:${PORTSDIR}/devel/m4
+OPTIONS_DEFINE=	DOCS EXAMPLES NLS
+OPTIONS_SUB=	yes
 
-USES=		charsetfix makeinfo perl5 tar:xz
-USE_PERL5_BUILD=yes
+CONFIGURE_ARGS=	--disable-yacc
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+TEST_TARGET=	check
+USE_PERL5=	build
+USES=		charsetfix localbase makeinfo perl5 tar:xz
 
-CONFIGURE_ARGS+=--disable-yacc
-
 INFO=		bison
+PORTDATA=	*
+PORTDOCS=	*
+PORTEXAMPLES=	*
 
-NLS_USES=	gettext
 NLS_CONFIGURE_ENABLE=	nls
-OPTIONS_SUB=	yes
+NLS_USES=		gettext
 
-post-extract:
-	@${RM} -f ${WRKSRC}/doc/bison.info*
-	@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in
+post-patch:
+	@${REINPLACE_CMD} -e 's|$$(docdir)\(/examples\)|$$(datarootdir)\1/bison|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's/\(.*\) _Noreturn void/_Noreturn \1 void/' ${WRKSRC}/data/*.c ${WRKSRC}/lib/*.[ch]
 
-PORTEXAMPLES=	calc++
-
-post-install:
-	${MKDIR} ${EXAMPLESDIR}/calc++
-	${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
-		${EXAMPLESDIR}/calc++
-
 .include <bsd.port.mk>

Modified: trunk/devel/bison/distinfo
===================================================================
--- trunk/devel/bison/distinfo	2017-10-01 23:48:39 UTC (rev 22874)
+++ trunk/devel/bison/distinfo	2017-10-01 23:51:41 UTC (rev 22875)
@@ -1,2 +1,3 @@
-SHA256 (bison-2.7.1.tar.xz) = b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
-SIZE (bison-2.7.1.tar.xz) = 1781068
+TIMESTAMP = 1482778226
+SHA256 (bison-3.0.4.tar.xz) = a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1
+SIZE (bison-3.0.4.tar.xz) = 1973796

Modified: trunk/devel/bison/pkg-descr
===================================================================
--- trunk/devel/bison/pkg-descr	2017-10-01 23:48:39 UTC (rev 22874)
+++ trunk/devel/bison/pkg-descr	2017-10-01 23:51:41 UTC (rev 22875)
@@ -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/

Modified: trunk/devel/bison/pkg-plist
===================================================================
--- trunk/devel/bison/pkg-plist	2017-10-01 23:48:39 UTC (rev 22874)
+++ trunk/devel/bison/pkg-plist	2017-10-01 23:51:41 UTC (rev 22875)
@@ -1,28 +1,6 @@
 bin/bison
 man/man1/bison.1.gz
 share/aclocal/bison-i18n.m4
-%%DATADIR%%/README
-%%DATADIR%%/bison.m4
-%%DATADIR%%/c++-skel.m4
-%%DATADIR%%/c++.m4
-%%DATADIR%%/c-like.m4
-%%DATADIR%%/c-skel.m4
-%%DATADIR%%/c.m4
-%%DATADIR%%/glr.c
-%%DATADIR%%/glr.cc
-%%DATADIR%%/java-skel.m4
-%%DATADIR%%/java.m4
-%%DATADIR%%/lalr1.cc
-%%DATADIR%%/lalr1.java
-%%DATADIR%%/location.cc
-%%DATADIR%%/m4sugar/foreach.m4
-%%DATADIR%%/m4sugar/m4sugar.m4
-%%DATADIR%%/stack.hh
-%%DATADIR%%/xslt/bison.xsl
-%%DATADIR%%/xslt/xml2dot.xsl
-%%DATADIR%%/xslt/xml2text.xsl
-%%DATADIR%%/xslt/xml2xhtml.xsl
-%%DATADIR%%/yacc.c
 %%NLS%%share/locale/ast/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/da/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/da/LC_MESSAGES/bison.mo
@@ -46,6 +24,7 @@
 %%NLS%%share/locale/hr/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/hr/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/hu/LC_MESSAGES/bison-runtime.mo
+%%NLS%%share/locale/ia/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/id/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/id/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/it/LC_MESSAGES/bison-runtime.mo
@@ -63,18 +42,18 @@
 %%NLS%%share/locale/nl/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/pl/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/pl/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/bison-runtime.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo
-%%NLS%%share/locale/pt/LC_MESSAGES/bison-runtime.mo
-%%NLS%%share/locale/pt/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/ro/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/ro/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/sl/LC_MESSAGES/bison-runtime.mo
+%%NLS%%share/locale/sq/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/sr/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/sr/LC_MESSAGES/bison.mo
-%%NLS%%share/locale/sq/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/sv/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/sv/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/th/LC_MESSAGES/bison-runtime.mo
@@ -88,10 +67,3 @@
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/bison-runtime.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/bison.mo
-%%NLS%%@dirrmtry share/locale/ast/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/ast
-%%NLS%%@dirrmtry share/locale/ky/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/ky
- at dirrm %%DATADIR%%/m4sugar
- at dirrm %%DATADIR%%/xslt
- at dirrm %%DATADIR%%



More information about the Midnightbsd-cvs mailing list