ports/64467: Update port: games/gnushogi to 1.3
KATO Tsuguru
tkato at prontomail.com
Fri Mar 19 16:40:15 UTC 2004
>Number: 64467
>Category: ports
>Synopsis: Update port: games/gnushogi to 1.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 19 08:40:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.9-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 1.3
New file:
Makefile.common
files/patch-doc::gnushogi.texinfo
Remove file:
files/patch-aa
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/games/gnushogi/Makefile games/gnushogi/Makefile
--- /usr/ports/games/gnushogi/Makefile Mon Nov 3 14:24:20 2003
+++ games/gnushogi/Makefile Fri Mar 19 11:49:35 2004
@@ -5,43 +5,51 @@
# $FreeBSD: ports/games/gnushogi/Makefile,v 1.12 2003/11/03 01:19:18 kris Exp $
#
-PORTNAME= gnushogi
-PORTVERSION= 1.2.3
+PORTNAME= ${GNUSHOGI_PORTNAME}
+PORTVERSION= ${GNUSHOGI_PORTVERSION}
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR= gnushogi
-DISTNAME= gnushogi-1.2p03
+MASTER_SITES= ${GNUSHOGI_MASTER_SITES}
+MASTER_SITE_SUBDIR= ${GNUSHOGI_MASTER_SITE_SUBDIR}
+DISTNAME= ${GNUSHOGI_DISTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= GNU version of Shogi
-DOCFILES= BOOKFILES CHANGES CONTRIB COPYING GENERAL INSTALL PORTING \
- README-FIRST listserv.ref shogi.rules tutorial1.gam tutorial2.gam
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-x --without-xshogi
+
MAN6= gnushogi.6
+INFO= gnushogi
+
+.include "${.CURDIR}/../../games/gnushogi/Makefile.common"
+.include <bsd.port.pre.mk>
+
+post-extract:
+ -@${RM} ${WRKSRC}/doc/gnushogi.info*
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/lib/gnushogi|/share/gnushogi|g' \
+ ${WRKSRC}/gnushogi/Makefile.in
-post-configure:
- ${ECHO_CMD} "DISTDIR=${WRKDIR}" >> ${WRKSRC}/src/${MAKEFILE}
- ${ECHO_CMD} "prefix=${PREFIX}" >> ${WRKSRC}/src/${MAKEFILE}
-
-do-build:
- (cd ${WRKSRC}/src; \
- ${MAKE} gnushogir; \
- ${MAKE} gnushogi.bbk; \
- ${MAKE} gnushogi; \
- ${MAKE} gnushogix )
+pre-build:
+ cd ${WRKSRC}/doc && makeinfo --no-split gnushogi
do-install:
- @${MKDIR} ${PREFIX}/share/gnushogi
- ${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogi ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogir ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/src/gnushogix ${PREFIX}/libexec
- ${INSTALL_DATA} ${WRKSRC}/src/gnushogi.bbk ${PREFIX}/share/gnushogi
- ${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.1 ${PREFIX}/man/man6/gnushogi.6
+ ${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${MANPREFIX}/man/man6
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${PREFIX}/info
+ install-info ${PREFIX}/info/gnushogi.info ${PREFIX}/info/dir
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/gnushogi
-.for doc in ${DOCFILES}
- ${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${PREFIX}/share/doc/gnushogi
-.endfor
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.gam ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.ref ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.rules ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/games/gnushogi/Makefile.common games/gnushogi/Makefile.common
--- /usr/ports/games/gnushogi/Makefile.common Thu Jan 1 09:00:00 1970
+++ games/gnushogi/Makefile.common Fri Mar 19 11:46:32 2004
@@ -0,0 +1,11 @@
+#
+# $FreeBSD$
+#
+
+GNUSHOGI_PORTNAME= gnushogi
+GNUSHOGI_PORTVERSION= 1.3
+GNUSHOGI_MASTER_SITES= ${MASTER_SITE_GNU}
+GNUSHOGI_MASTER_SITE_SUBDIR= ${PORTNAME}
+GNUSHOGI_DISTNAME= ${GNUSHOGI_PORTNAME}-${GNUSHOGI_PORTVERSION}
+
+MD5_FILE= ${.CURDIR}/../../games/gnushogi/distinfo
diff -urN /usr/ports/games/gnushogi/distinfo games/gnushogi/distinfo
--- /usr/ports/games/gnushogi/distinfo Thu Jan 29 20:25:11 2004
+++ games/gnushogi/distinfo Mon Mar 15 19:58:18 2004
@@ -1,2 +1,2 @@
-MD5 (gnushogi-1.2p03.tar.gz) = 242571d1c9e6c20fff646a0e5b0bca10
-SIZE (gnushogi-1.2p03.tar.gz) = 188078
+MD5 (gnushogi-1.3.tar.gz) = 592e9f3993ed483525b3c1bcd48b1ef9
+SIZE (gnushogi-1.3.tar.gz) = 558642
diff -urN /usr/ports/games/gnushogi/files/patch-aa games/gnushogi/files/patch-aa
--- /usr/ports/games/gnushogi/files/patch-aa Mon Apr 30 13:44:02 2001
+++ games/gnushogi/files/patch-aa Thu Jan 1 09:00:00 1970
@@ -1,53 +0,0 @@
---- src/Makefile.orig Wed May 24 07:05:26 1995
-+++ src/Makefile Sun Apr 29 21:39:00 2001
-@@ -41,22 +41,22 @@
- DIST= ../README-$(VERS) ../doc ../misc ../src
-
- # Installation directory
--prefix=/usr/local
-+#prefix=/usr/local
- #prefix=/public/projects/shogi
-
- # Change these to something less transitory, like /usr/games, and then
- # compile. Ask your system admin / unix guru to put gnushogi.{hsh,lng,tbk}
- # in $(LIBDIR).
- # Where the binaries live.
--BINDIR= $(prefix)/games
-+BINDIR= $(prefix)/bin
- #BINDIR=/public/projects/shogi/bin
-
- # Where language description, our book, and the persistent hash live.
--LIBDIR= $(prefix)/games/lib/gnushogi
-+LIBDIR= $(prefix)/share/gnushogi
- #LIBDIR=/public/projects/shogi/lib
-
- # Distribution directory
--DISTDIR=/public/projects/shogi
-+#DISTDIR=/public/projects/shogi
-
- # Programs being distributed
- PROGS=gnushogi-$(VERS)
-@@ -76,7 +76,7 @@
- #CC= c89 $(OPT) $(GENOPT)
- # Use this if you are lucky enough to have GNU CC.
- #CC= /usr/pub/bin/gcc -fsigned-char $(OPT) $(GENOPT)
--CC= gcc -W -fsigned-char $(OPT) $(GENOPT)
-+CC+= -W -fsigned-char $(OPT) $(GENOPT)
- #CC= cc $(OPT) $(GENOPT)
-
- # Miscellaneous CFLAGS. Uncomment the one you need and comment the other
-@@ -96,7 +96,8 @@
- #CFLAGS= -O2 -funroll-loops -traditional-cpp -DNO_STRING_INCLUDE -DNOFIONREAD # gnu cc 2.00 (hawk)
- #CFLAGS= -O2 -funroll-loops -DSEVENBIT # djgpp
- #CFLAGS= -g -funroll-loops # gnu cc 2.00 on SunOS with debug
--CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS
-+#CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS
-+CFLAGS+=-fno-strength-reduce
-
- # flags for DJGPP package
- #COFF2EXE= coff2exe $(GNUSHOGI)
-@@ -454,3 +455,4 @@
- -rm -f $(DISTDIR)/gnushogi-$(VERS)/src/gnushogi.bbk
- -find $(DISTDIR)/gnushogi-$(VERS) \( -name '*.o' -o -name '*~' -o -name 'CL*' -o -name 'PATCH*' -o -name '#*#' -o -name '%*%' -o -name '*orig' -o -name 'CL*' -o -name '*prt' -o -name '*bak' -o -name '*BAK' \) -exec rm -f {} \;
-
-+DISTDIR=/net/freefall/a/obrien/ports/games/gnushogi/work
diff -urN /usr/ports/games/gnushogi/files/patch-doc::gnushogi.texinfo games/gnushogi/files/patch-doc::gnushogi.texinfo
--- /usr/ports/games/gnushogi/files/patch-doc::gnushogi.texinfo Thu Jan 1 09:00:00 1970
+++ games/gnushogi/files/patch-doc::gnushogi.texinfo Mon Mar 15 20:20:41 2004
@@ -0,0 +1,13 @@
+--- doc/gnushogi.texinfo.orig Sat Apr 27 00:42:22 2002
++++ doc/gnushogi.texinfo Mon Mar 15 20:19:37 2004
+@@ -3,6 +3,10 @@
+ @c % ** Start of header.
+ @setfilename gnushogi.info
+ @settitle GNU Shogi manual
++ at dircategory
++ at direntry Games
++* GNUShogi: (gnushogi). GNU Shogi.
++ at end direntry
+ @c % ** End of header.
+
+ @setchapternewpage odd
diff -urN /usr/ports/games/gnushogi/pkg-plist games/gnushogi/pkg-plist
--- /usr/ports/games/gnushogi/pkg-plist Mon Sep 28 11:34:29 1998
+++ games/gnushogi/pkg-plist Fri Mar 19 11:54:24 2004
@@ -1,18 +1,34 @@
bin/gnushogi
-bin/gnushogir
-libexec/gnushogix
-share/doc/gnushogi/BOOKFILES
-share/doc/gnushogi/CHANGES
-share/doc/gnushogi/CONTRIB
-share/doc/gnushogi/COPYING
-share/doc/gnushogi/GENERAL
-share/doc/gnushogi/INSTALL
-share/doc/gnushogi/PORTING
-share/doc/gnushogi/README-FIRST
-share/doc/gnushogi/listserv.ref
-share/doc/gnushogi/shogi.rules
-share/doc/gnushogi/tutorial1.gam
-share/doc/gnushogi/tutorial2.gam
-share/gnushogi/gnushogi.bbk
- at dirrm share/doc/gnushogi
- at dirrm share/gnushogi
+%%PORTDOCS%%%%DOCSDIR%%/BOOKFILES
+%%PORTDOCS%%%%DOCSDIR%%/PORTING
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_1.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_10.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_11.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_12.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_13.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_14.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_15.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_16.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_17.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_18.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_19.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_2.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_20.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_21.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_22.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_3.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_4.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_5.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_6.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_7.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_8.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_9.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_stoc.html
+%%PORTDOCS%%%%DOCSDIR%%/gnushogi_toc.html
+%%PORTDOCS%%%%DOCSDIR%%/listserv.ref
+%%PORTDOCS%%%%DOCSDIR%%/shogi.rules
+%%PORTDOCS%%%%DOCSDIR%%/tutorial1.gam
+%%PORTDOCS%%%%DOCSDIR%%/tutorial2.gam
+%%DATADIR%%/gnushogi.bbk
+ at dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list