head 1.11; access; symbols pkgsrc-2023Q4:1.11.0.46 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.44 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.42 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.40 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.38 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.36 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.34 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.32 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.30 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.11.0.28 pkgsrc-2021Q3-base:1.11 pkgsrc-2021Q2:1.11.0.26 pkgsrc-2021Q2-base:1.11 pkgsrc-2021Q1:1.11.0.24 pkgsrc-2021Q1-base:1.11 pkgsrc-2020Q4:1.11.0.22 pkgsrc-2020Q4-base:1.11 pkgsrc-2020Q3:1.11.0.20 pkgsrc-2020Q3-base:1.11 pkgsrc-2020Q2:1.11.0.18 pkgsrc-2020Q2-base:1.11 pkgsrc-2020Q1:1.11.0.14 pkgsrc-2020Q1-base:1.11 pkgsrc-2019Q4:1.11.0.16 pkgsrc-2019Q4-base:1.11 pkgsrc-2019Q3:1.11.0.12 pkgsrc-2019Q3-base:1.11 pkgsrc-2019Q2:1.11.0.10 pkgsrc-2019Q2-base:1.11 pkgsrc-2019Q1:1.11.0.8 pkgsrc-2019Q1-base:1.11 pkgsrc-2018Q4:1.11.0.6 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.11.0.4 pkgsrc-2018Q3-base:1.11 pkgsrc-2018Q2:1.11.0.2 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.10.0.2 pkgsrc-2018Q1-base:1.10 pkgsrc-2017Q4:1.9.0.6 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.9.0.4 pkgsrc-2017Q3-base:1.9 pkgsrc-2017Q2:1.8.0.20 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.18 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.16 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.14 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.12 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.10 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.8 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.6 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.4 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.2 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.7.0.2 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.5.0.2 pkgsrc-2014Q3-base:1.5; locks; strict; comment @# @; 1.11 date 2018.06.15.09.18.55; author wiz; state Exp; branches; next 1.10; commitid 1kneGOSj7yZjfmGA; 1.10 date 2018.01.14.17.33.57; author rillig; state Exp; branches; next 1.9; commitid x3p17A5ooWt7SRmA; 1.9 date 2017.09.03.08.53.09; author wiz; state Exp; branches; next 1.8; commitid EfT0kpQ2wSMtgJ5A; 1.8 date 2015.02.21.08.10.13; author wiz; state Exp; branches; next 1.7; commitid lLEuwVPUEHOdLQay; 1.7 date 2014.12.11.15.27.03; author wiz; state Exp; branches; next 1.6; commitid KhUmhx0wDsGauD1y; 1.6 date 2014.11.13.17.06.18; author wiz; state Exp; branches; next 1.5; commitid clILsvm78MyoW2Yx; 1.5 date 2014.09.03.12.56.06; author tron; state Exp; branches; next 1.4; commitid mcAjiEBdHtn3QTOx; 1.4 date 2014.09.03.10.27.21; author wiz; state Exp; branches; next 1.3; commitid UGaKEQ7s3rb11TOx; 1.3 date 2014.08.21.07.54.08; author wiz; state Exp; branches; next 1.2; commitid tYelilDun13oAcNx; 1.2 date 2014.08.13.13.04.28; author wiz; state Exp; branches; next 1.1; commitid ZbuUw1BSu4rLycMx; 1.1 date 2014.08.10.13.12.31; author wiz; state Exp; branches; next ; commitid OupmmGiRxDMxHOLx; desc @@ 1.11 log @MyGoGrinder: update to 2.3.1. Bugfix against zip slib attacks @ text @# $NetBSD: Makefile,v 1.10 2018/01/14 17:33:57 rillig Exp $ DISTNAME= MyGoGrinder-2.3.1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mygogrinder/} EXTRACT_SUFX= .zip MAINTAINER= pkgsrc-users@@NetBSD.org 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} INSTALLATION_DIRS+= share/doc/${PKGBASE}/docs INSTALLATION_DIRS+= share/examples/${PKGBASE} INSTALLATION_DIRS+= share/pixmaps do-build: ${ECHO} '#!/bin/sh' > ${WRKDIR}/MyGoGrinder.sh ${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 ${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} 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}/*/*.* ${CHMOD} a-wx ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/*/*/*.* .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" @ 1.10 log @games/*: fix alignment of variable values pkglint -Wall -r --autofix --only aligned After running the above command, three packages had to be adjusted manually: In maelstrom-x11, pkglint didn't see that a commented variable assignment should have been re-aligned as well. In netmaze, there was a single line that didn't align well with all the others, but pkglint decided to adjust the whole paragraph to this single line. The result would have been ok, but not good. In tscp, there was a paragraph where some of the lines were indented one space more than the others. This rule is useful when one variable name is very long compared to the others, but not in this case. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2017/09/03 08:53:09 wiz Exp $ d3 1 a3 1 DISTNAME= MyGoGrinder-2.3.0 @ 1.9 log @Follow some redirects. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2015/02/21 08:10:13 wiz Exp $ d16 2 a17 2 USE_JAVA= run USE_JAVA2= yes @ 1.8 log @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 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2014/12/11 15:27:03 wiz Exp $ d9 1 a9 1 HOMEPAGE= http://sourceforge.net/projects/mygogrinder/ @ 1.7 log @Update to 2.2.0: Version 2.2.0 (DECEMBER 2014) Bugs fixed: * The WGF-editor didn't take the new board size in some circumstances (introduced with the work on the parser)- repaired * play stone was also registered on the invisible part of the board (already in 1.02) * Splash screen: was too much white - repaired Bug or feature?: * When the "Apply Tag..." button has the focus, a key pressed sets the tag with this first letter, so key "c" or "C" would set "Corner" but if you type "cu", the code would set "Corner" AND "Cut"! This is not clean, as you would need to delete "Corner", if this isn't wanted. This is an old "feature": I found it also in version 1.02 Further: * PathToSettings can now be set by environment variable (path needs to exist and be write enabled) - so you can have a 2nd, 3rd etc. profile for the same user * Environment variable: same goes with toggle stacktrace on for SGF-errors and set path to doc (help files) --> see SysVariables.txt * The same with log level for SGF errors (0-3, default is 1) --> see SysVariables.txt * Grinder can now recognize the location of the program's .jar file (usually it expects the help files in the program's subdirectory "doc" - this was a problem, when Grinder was started with a desktop script, which didn't cd to Grinder's program folder before) * Startup: shortened the display of the scanned path - now it fits better in the splash screen * Error messages concerning SGF code: they can now show the affected code and highlight it (loglevel 2 and 3) * DEMO.WGF moved to doc folder (where the help files reside) (Grinder tries to find it there, but falls back to load it from the program's folder) * File size is now restricted to files with up to ~100kby (default); this can be overridden in the settings file or with setting a system variable --> see SysVariables.txt * Set some system variables to control the behaviour of the program: MYGG_DOCPATH, MYGG_SETTINGS, MYGG_LOG_LVL, MYGG_SGF_MAX_SZ (and some more) * you get a warning, if one of the log files grows too big (default is ~1mby, change that in the settings file) * I thought, that the price for my works in the parser is more time consumption when parsing. I did a small test with ~1000 files, one time with GoGrinder 1.14, one time with MyGoGrinder 2.1.1: nothing remarkable! both needed around 45 seconds! * Portable - use the command line switch -p or -portable to run Grinder with sgf and settings in Grinder's program folder: this still needs some polishing: switching to the next problem takes too long. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2014/11/13 17:06:18 wiz Exp $ d3 1 a3 1 DISTNAME= MyGoGrinder-2.2.0 d32 2 a33 2 ${INSTALL_DATA} ${WRKSRC}/*.ico ${DESTDIR}${PREFIX}/share/pixmaps ${INSTALL_DATA} ${WRKSRC}/*.png ${DESTDIR}${PREFIX}/share/pixmaps @ 1.6 log @Update to 2.1.0: Version 2.1.0 (oct.29th 2014) Bugs fixed: * The switch -sysinfo worked only in Windows - in Linux (?also in Mac?) the clipboard is deleted on exit * extensive work in the SGF-parser, "\" and "]" are handled correct IN THE PARSER (not yet in the display) Further: * SGF FF[3] files (AddWhite, SiZe, DaTe, CiRcle, ...) are now processed and displayed!! * Files from a defect version of Hibiscus 2.1 (LB[yy:0]...) are now displayed * Many defect SGF files get now a suitable error message; a stacktrace is only shown for debugging (internal switch "DEBUG2"). Normal file errors shouldn't give a stack trace. (If you have a defect sgf file, which doesn't get an sppropriate error message - let me know!) * Grinder has now an extra log file for SGF file errors: sgf-log.txt @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2014/09/03 12:56:06 tron Exp $ d3 1 a3 1 DISTNAME= MyGoGrinder-2.1.0 a37 1 ${INSTALL_DATA} ${WRKSRC}/DEMO.WGF ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}/demo.wgf @ 1.5 log @Fix installation under Mac OS X. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2014/09/03 10:27:21 wiz Exp $ d3 1 a3 1 DISTNAME= MyGoGrinder-2.0.3 @ 1.4 log @Update to 2.0.3: Version 2.0.3 (sept.2nd 2014) Bugs fixed: * corrected command line help und command line sysinfo * save wgf file was defect since several weeks * split sgf (with more than one problem) was defect (since v.2.0) Version 2.0.2 (aug.26th 2014) Bugs fixed: * Test/start editor uses now the editor's program directory as working directory * When a program's path is handed over from the file selection window, and the path for the executable contains spaces: encase the path with quotation marks * When at first startup a "default.sgf" is written, it has now (;GM[1]... as GaMe type GM[0] is wrong and impossible (CGoban gave me the hint) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2014/08/21 07:54:08 wiz Exp $ d22 1 a22 1 INSTALLATION_DIRS+= share/doc/${PKGBASE} @ 1.3 log @Update to 2.0.1: Version 2.0.1 (aug.20th 2014) Bugs fixed: * The Mac resize thing doesn't anymore look ugly (but still: if you close the program with apple-q, it doesn't save settings) * Set default language by command line switch works now as planned * Repaired a bug in the settings window Further: * One .jar file for both Java 5 and Java 6+ * Validate files works now better, but you still get a long stack trace for every defect file * some small corrections @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2014/08/13 13:04:28 wiz Exp $ d3 1 a3 1 DISTNAME= MyGoGrinder-2.0.1 @ 1.2 log @Fix help display. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2014/08/10 13:12:31 wiz Exp $ d3 1 a3 3 DISTNAME= MyGoGrinder-2-0-0-J6 PKGNAME= ${DISTNAME:S/2-0-0-/2.0.0./} PKGREVISION= 1 d36 1 a36 1 ${INSTALL_DATA} ${WRKSRC}/License.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} @ 1.1 log @Import MyGoGrinder-2.0.0.J6 as games/MyGoGrinder. MyGoGrinder is a Java program to solve Go (Weiqi, Baduk) problems. This work is based on GoGrinder. @ text @d1 1 a1 1 # $NetBSD$ d5 1 d30 1 a30 1 ${ECHO} "exec ${JAVA_BINPREFIX}-java -jar "'"'"${PREFIX}/share/${PKGBASE}/MyGoGrinder.jar"'" "$$@@"' >> ${WRKDIR}/MyGoGrinder.sh d42 2 a43 1 cd ${WRKSRC}/docs && pax -pp -rw * ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} d46 1 @