ports/182751: [patch] devel/bison: update to 3.0

Johan van Selst johans at FreeBSD.org
Sun Oct 6 16:10:00 UTC 2013


>Number:         182751
>Category:       ports
>Synopsis:       [patch] devel/bison: update to 3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 06 16:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Johan van Selst
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 9.1-STABLE FreeBSD 9.1-STABLE #2 r252020: Thu Jun 20 21:03:57 CEST 2013 root at mud.stack.nl:/usr/obj/usr/src/sys/mud amd64


	
>Description:
	
	Update bison to new major release, 3.0.
	Attached patch also enables stage support.
	Considering the track record and number of dependencies,
	an exp-run is desired.
>How-To-Repeat:
	
>Fix:


diff -u bison.orig/Makefile bison/Makefile
--- bison.orig/Makefile	2013-09-20 19:03:26.000000000 +0200
+++ bison/Makefile	2013-10-06 18:00:00.000000000 +0200
@@ -2,7 +2,7 @@
 # $FreeBSD: devel/bison/Makefile 327722 2013-09-20 17:03:26Z bapt $
 
 PORTNAME=	bison
-PORTVERSION=	2.7.1
+PORTVERSION=	3.0
 PORTEPOCH=	1
 CATEGORIES=	devel
 MASTER_SITES=	GNU
@@ -14,18 +14,16 @@
 RUN_DEPENDS=	m4>=1.4.16,1:${PORTSDIR}/devel/m4
 
 USES=		charsetfix perl5
-USE_XZ=		yes
 USE_PERL5=	build
+USE_XZ=		yes
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 CONFIGURE_ARGS+=--disable-yacc
 
-MAN1=		bison.1
 INFO=		bison
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
@@ -38,18 +36,15 @@
 
 post-extract:
 	@${RM} -f ${WRKSRC}/doc/bison.info*
-	@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in
-.if ! ${PORT_OPTIONS:MNLS}
-	@${REINPLACE_CMD} 's/ install-exec-local//' ${WRKSRC}/lib/Makefile.in
-.endif
+	@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/local.mk
 
 .if ${PORT_OPTIONS:MEXAMPLES}
 PORTEXAMPLES=	calc++
 
 post-install:
-	${MKDIR} ${EXAMPLESDIR}/calc++
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/calc++
 	${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
-		${EXAMPLESDIR}/calc++
+		${STAGEDIR}${EXAMPLESDIR}/calc++
 .endif
 
 .include <bsd.port.mk>
diff -u bison.orig/distinfo bison/distinfo
--- bison.orig/distinfo	2013-04-29 22:33:11.000000000 +0200
+++ bison/distinfo	2013-07-30 17:15:52.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (bison-2.7.1.tar.xz) = b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
-SIZE (bison-2.7.1.tar.xz) = 1781068
+SHA256 (bison-3.0.tar.xz) = e9ac5585002b71208aee8a20bbe1ced96c48766e6c4247bc7ef8f3141f7624c8
+SIZE (bison-3.0.tar.xz) = 1913532
diff -u bison.orig/pkg-plist bison/pkg-plist
--- bison.orig/pkg-plist	2013-02-24 18:46:08.000000000 +0100
+++ bison/pkg-plist	2013-10-06 17:37:31.000000000 +0200
@@ -1,5 +1,7 @@
 bin/bison
 share/aclocal/bison-i18n.m4
+man/man1/bison.1.gz
+man/man1/yacc.1.gz
 %%DATADIR%%/README
 %%DATADIR%%/bison.m4
 %%DATADIR%%/c++-skel.m4
@@ -17,6 +19,7 @@
 %%DATADIR%%/m4sugar/foreach.m4
 %%DATADIR%%/m4sugar/m4sugar.m4
 %%DATADIR%%/stack.hh
+%%DATADIR%%/variant.hh
 %%DATADIR%%/xslt/bison.xsl
 %%DATADIR%%/xslt/xml2dot.xsl
 %%DATADIR%%/xslt/xml2text.xsl
@@ -45,6 +48,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
@@ -89,6 +93,8 @@
 %%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/ia/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ia
 %%NLS%%@dirrmtry share/locale/ky/LC_MESSAGES
 %%NLS%%@dirrmtry share/locale/ky
 @dirrm %%DATADIR%%/m4sugar
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list