pkgsrc/games/MyGoGrinder/Makefile

47 lines
1.9 KiB
Makefile
Raw Normal View History

2017-09-03 10:53:04 +02:00
# $NetBSD: Makefile,v 1.9 2017/09/03 08:53:09 wiz Exp $
Update to 2.3.0: Version 2.3.0 (feb.18th 2015) New features: * Grinder can now find the CA[] property (ChAracter set, e.g. "CA[big5]") in the sgf and decode the file appropriate. However, some decodings are not supported by Java, e.g. HZ / CA[hz-gb-2312] / ~{NbGeT49mJV~} * When reading a file with no "CA[]" property set, we use the default of the jvm to read the sgf (this was and is the default behaviour). You can set a different character set as preferred default in the settings window. The selection of a default decoding (settings) helps decoding files, if MyGoGrinder is used in portable mode on different OSs: Linux and Mac usually use UTF-8, while Windows uses the local decoding/encoding. * If comments of sgf files are not displayed correctly, you can set the decoding manually: you can switch the decoding ("View" menu -> "Change text decoding") and you can also set this for all files of the current folder - without subdirectories (Grinder will remember this). * The settings file (mygrinder.ini) is now saved and read always with UTF-8 encoding, so that it doesn't matter which default decoding the machine uses. * Log files are now also always written with UTF-8 encoding, so that messages with Russian, Chinese, Hebrew and Inuktitut characters can be read side by side with Latin (ASCII) characters. The old logs and settings are backed up. * When importing tags from a file, you can select the decoding. * You can let Grinder automatically move defect and unusable files to the folders "defect" resp. "notsupported"; activate this manually in the settings file (mygrinder.ini)! This will deactivate editing of defect files. * Changed display order of directories in the selection window: Java's file lists were not sorted, when got from some file system: FAT32 (thumb drive), ext4 (Linux). NTFS file systems gave an ordered list, so possibly you didn't ever observe this. You can switch sorted display off, if you liked the old unsorted list. * If you want to use the wgf editor, you need to activate it's main window's menue entry manually in the settings file: WGFFRAME.ENABLED=true I took the check box out of the settings window. Tweaks, bug fixes: * I reduced the count of warning messages, if starting a new profile. * "\" and "]" are now also handled correctly in the comment area of the main window * If there is an error in the sgf code or the file was not found (moved or deleted), instead of "Exit" we use now a default code, so that the program can continue normally. * Refresh the directories view in the selection window without closing the program * While working on the code, I remembered a behaviour in Linux: if you make a soft link to an external problems collection in your problems folder, these problems are used as if they were inside your problems folder. So stats files are created (but defect files cannot be moved). This doesn't work in Windows! * Sometimes, when deleting a tag in the selection window, the tags list was suddenly empty (shock). This was just a refresh-display-problem - seemingly solved * I threw the MYGG_DEBUG... system variables out. * ... and some more small tweaks and fixes, which I don't remember
2015-02-21 09:10:13 +01:00
DISTNAME= MyGoGrinder-2.3.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mygogrinder/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
2017-09-03 10:53:04 +02:00
HOMEPAGE= https://sourceforge.net/projects/mygogrinder/
COMMENT= Program to solve Go (Weiqi, Baduk) problems
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/MyGoGrinder
USE_LANGUAGES= # none
USE_JAVA= run
USE_JAVA2= yes
USE_TOOLS+= pax
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/${PKGBASE}
2014-09-03 14:56:06 +02:00
INSTALLATION_DIRS+= share/doc/${PKGBASE}/docs
INSTALLATION_DIRS+= share/examples/${PKGBASE}
INSTALLATION_DIRS+= share/pixmaps
do-build:
${ECHO} '#!/bin/sh' > ${WRKDIR}/MyGoGrinder.sh
2014-08-13 15:04:28 +02:00
${ECHO} "cd ${PREFIX}/share/doc/${PKGBASE} && exec ${JAVA_BINPREFIX}-java -jar "'"'"${PREFIX}/share/${PKGBASE}/MyGoGrinder.jar"'" "$$@"' >> ${WRKDIR}/MyGoGrinder.sh
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/MyGoGrinder.sh ${DESTDIR}${PREFIX}/bin
Update to 2.3.0: Version 2.3.0 (feb.18th 2015) New features: * Grinder can now find the CA[] property (ChAracter set, e.g. "CA[big5]") in the sgf and decode the file appropriate. However, some decodings are not supported by Java, e.g. HZ / CA[hz-gb-2312] / ~{NbGeT49mJV~} * When reading a file with no "CA[]" property set, we use the default of the jvm to read the sgf (this was and is the default behaviour). You can set a different character set as preferred default in the settings window. The selection of a default decoding (settings) helps decoding files, if MyGoGrinder is used in portable mode on different OSs: Linux and Mac usually use UTF-8, while Windows uses the local decoding/encoding. * If comments of sgf files are not displayed correctly, you can set the decoding manually: you can switch the decoding ("View" menu -> "Change text decoding") and you can also set this for all files of the current folder - without subdirectories (Grinder will remember this). * The settings file (mygrinder.ini) is now saved and read always with UTF-8 encoding, so that it doesn't matter which default decoding the machine uses. * Log files are now also always written with UTF-8 encoding, so that messages with Russian, Chinese, Hebrew and Inuktitut characters can be read side by side with Latin (ASCII) characters. The old logs and settings are backed up. * When importing tags from a file, you can select the decoding. * You can let Grinder automatically move defect and unusable files to the folders "defect" resp. "notsupported"; activate this manually in the settings file (mygrinder.ini)! This will deactivate editing of defect files. * Changed display order of directories in the selection window: Java's file lists were not sorted, when got from some file system: FAT32 (thumb drive), ext4 (Linux). NTFS file systems gave an ordered list, so possibly you didn't ever observe this. You can switch sorted display off, if you liked the old unsorted list. * If you want to use the wgf editor, you need to activate it's main window's menue entry manually in the settings file: WGFFRAME.ENABLED=true I took the check box out of the settings window. Tweaks, bug fixes: * I reduced the count of warning messages, if starting a new profile. * "\" and "]" are now also handled correctly in the comment area of the main window * If there is an error in the sgf code or the file was not found (moved or deleted), instead of "Exit" we use now a default code, so that the program can continue normally. * Refresh the directories view in the selection window without closing the program * While working on the code, I remembered a behaviour in Linux: if you make a soft link to an external problems collection in your problems folder, these problems are used as if they were inside your problems folder. So stats files are created (but defect files cannot be moved). This doesn't work in Windows! * Sometimes, when deleting a tag in the selection window, the tags list was suddenly empty (shock). This was just a refresh-display-problem - seemingly solved * I threw the MYGG_DEBUG... system variables out. * ... and some more small tweaks and fixes, which I don't remember
2015-02-21 09:10:13 +01:00
${INSTALL_DATA} ${WRKSRC}/icons/*.ico ${DESTDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/icons/*.png ${DESTDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/Tag*.txt ${DESTDIR}${PREFIX}/share/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/*.jar ${DESTDIR}${PREFIX}/share/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/"GNU LICENSE v.2 (1991).txt" ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKDIR}/"Xuan-Xuan-Qi-Jing-(problems).zip" ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
2014-08-13 15:04:28 +02:00
cd ${WRKSRC}/docs && pax -pp -rw * ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/docs
${RM} -f ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/docs/Notizen*
${CHMOD} a-wx ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/*.*
${CHMOD} a-wx ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/*/*.*
2014-08-13 15:04:28 +02:00
${CHMOD} a-wx ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/*/*/*.*
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"