FreeBSD Bugzilla – Attachment 251700 Details for
Bug 279993
games/gnushogi: Fix games/xshogi not working and take maintainership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix xshogi not working
patch.gnushogi (text/plain), 3.43 KB, created by
mew14930xvi
on 2024-06-26 01:22:08 UTC
(
hide
)
Description:
fix xshogi not working
Filename:
MIME Type:
Creator:
mew14930xvi
Created:
2024-06-26 01:22:08 UTC
Size:
3.43 KB
patch
obsolete
>diff --git a/games/gnushogi/Makefile b/games/gnushogi/Makefile >index ec5da7c0df06..5488f6dda197 100644 >--- a/games/gnushogi/Makefile >+++ b/games/gnushogi/Makefile >@@ -1,12 +1,12 @@ > PORTNAME= gnushogi > PORTVERSION= 1.4.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= games > MASTER_SITES= GNU > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= mew14930xvi@inbox.lv > COMMENT= GNU version of Shogi >-WWW= http://www.cs.caltech.edu/~mvanier/hacking/gnushogi/gnushogi.html >+WWW= https://www.gnu.org/software/gnushogi/ > > LICENSE= GPLv3 > LICENSE_FILE= ${WRKSRC}/COPYING >@@ -14,36 +14,35 @@ LICENSE_FILE= ${WRKSRC}/COPYING > GNU_CONFIGURE= yes > MAKE_JOBS_UNSAFE= yes > >-OPTIONS_DEFINE= DOCS INFO >+PLIST_FILES= bin/gnushogi share/man/man6/gnushogi.6.gz \ >+ ${DATADIR}/gnushogi.bbk >+PORTDOCS= BOOKFILES PORTING shogi.rules tutorial1.gam tutorial2.gam >+ >+OPTIONS_DEFINE= DOCS INFO > OPTIONS_DEFAULT= INFO > > INFO_USES= makeinfo > INFO_INFO= gnushogi > >-post-extract-INFO-on: >- -@${RM} ${WRKSRC}/doc/gnushogi.info* >- > post-patch: >- @${REINPLACE_CMD} -e '/<sys\/file.h>/d' \ >- ${WRKSRC}/gnushogi/*dsp.c >+ @${REINPLACE_CMD} -e '/<sys\/file.h>/d' ${WRKSRC}/gnushogi/*dsp.c > > pre-build-INFO-on: > cd ${WRKSRC}/doc && makeinfo --no-split gnushogi > > do-install: >- @${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${STAGEDIR}${PREFIX}/bin >- @${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${STAGEDIR}${PREFIX}/share/man/man6 >+ ${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 \ >+ ${STAGEDIR}${PREFIX}/share/man/man6 > @${MKDIR} ${STAGEDIR}${DATADIR} >- @${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR} >- >-do-install-INFO-on: >- @${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${STAGEDIR}${PREFIX}/${INFO_PATH} >+ ${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR} > > do-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${STAGEDIR}${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${STAGEDIR}${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/doc/*.gam ${STAGEDIR}${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/doc/*.rules ${STAGEDIR}${DOCSDIR} >+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} >+ >+do-install-INFO-on: >+ ${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info \ >+ ${STAGEDIR}${PREFIX}/${INFO_PATH} > > .include <bsd.port.mk> >diff --git a/games/gnushogi/files/patch-gnushogi_init.c b/games/gnushogi/files/patch-gnushogi_init.c >index a684d7f006f2..fff71ab72899 100644 >--- a/games/gnushogi/files/patch-gnushogi_init.c >+++ b/games/gnushogi/files/patch-gnushogi_init.c >@@ -1,14 +1,5 @@ > --- gnushogi/init.c.orig 2014-02-17 20:26:59 UTC > +++ gnushogi/init.c >-@@ -63,7 +63,7 @@ short nolist = 1; /* Don't list the game aft >- * or DISPLAY_X; the default is DISPLAY_X to make life easier for xshogi. >- */ >- >--display_t display_type = DISPLAY_X; >-+display_t display_type = DISPLAY_CURSES; >- >- /* .... MOVE GENERATION VARIABLES AND INITIALIZATIONS .... */ >- > @@ -100,7 +100,7 @@ distance(short a, short b) > short > distance(short a, short b) >diff --git a/games/gnushogi/pkg-plist b/games/gnushogi/pkg-plist >deleted file mode 100644 >index 18f2f522b45c..000000000000 >--- a/games/gnushogi/pkg-plist >+++ /dev/null >@@ -1,8 +0,0 @@ >-bin/gnushogi >-share/man/man6/gnushogi.6.gz >-%%PORTDOCS%%%%DOCSDIR%%/BOOKFILES >-%%PORTDOCS%%%%DOCSDIR%%/PORTING >-%%PORTDOCS%%%%DOCSDIR%%/shogi.rules >-%%PORTDOCS%%%%DOCSDIR%%/tutorial1.gam >-%%PORTDOCS%%%%DOCSDIR%%/tutorial2.gam >-%%DATADIR%%/gnushogi.bbk
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279993
:
251700
|
251701
|
251711
|
251839
|
253991