Bug 173888

Summary: [NEW PORT] games/sudoku-sensei: Enjoy playing with Sudoku boards designed by yourself
Product: Ports & Packages Reporter: nemysis <nemysis>
Component: Individual Port(s)Assignee: Rusmir Dusko <nemysis>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
.shar
none
sudoku-sensei.shar none

Description nemysis 2012-11-24 04:10:00 UTC
From the beginning, Sudoku Sensei was intended to become a program with
Graphical User Interface. Though, the first versions were just the core of that:
a sudoku logic explainer engine. That is, a library capable of solving sudokus
just like humans do.

The engine solves sudokus by applying complex logical rules a few times,
instead of applying simpler rules (like guessing and backtracking) many many
times. These complex logical rules are exactly the same ones that people use
with paper and pen.

WWW: http://sudoku-sensei.sourceforge.net/

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: new)

How-To-Repeat: 
portlint -A
looks fine.

port test: clean

Can't give build log, because RedPorts not works at the time.
Comment 1 nemysis 2013-02-23 17:21:05 UTC
Changed

DESKTOP_ENTRIES="Sudoku Sensei" "${COMMENT}" \
                "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
                "${PORTNAME}" "Game;LogicGame;" false

${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-08-14 10:29:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

submitter is now committer.
Comment 3 Rusmir Dusko freebsd_committer freebsd_triage 2014-01-14 04:08:59 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-01-14 04:16:10 UTC
Author: nemysis
Date: Tue Jan 14 04:16:00 2014
New Revision: 339661
URL: http://svnweb.freebsd.org/changeset/ports/339661

Log:
  The engine solves sudokus by applying complex logical rules a few times,
  instead of applying simpler rules (like guessing and backtracking) many
  times. These complex logical rules are exactly the same ones that people
  use with paper and pen.
  
  WWW: http://sudoku-sensei.sourceforge.net/
  
  PR:		ports/173888
  Submitted by:	nemysis (self)

Added:
  head/games/sudoku-sensei/
  head/games/sudoku-sensei/Makefile   (contents, props changed)
  head/games/sudoku-sensei/distinfo   (contents, props changed)
  head/games/sudoku-sensei/files/
  head/games/sudoku-sensei/files/pkg-message.in   (contents, props changed)
  head/games/sudoku-sensei/files/sudoku-sensei.in   (contents, props changed)
  head/games/sudoku-sensei/pkg-descr   (contents, props changed)
  head/games/sudoku-sensei/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Tue Jan 14 03:25:59 2014	(r339660)
+++ head/games/Makefile	Tue Jan 14 04:16:00 2014	(r339661)
@@ -911,6 +911,7 @@
     SUBDIR += stransball2
     SUBDIR += stratagus
     SUBDIR += sudoku
+    SUBDIR += sudoku-sensei
     SUBDIR += sudoku_solver
     SUBDIR += sudsol
     SUBDIR += sumwars

Added: head/games/sudoku-sensei/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/Makefile	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,47 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	sudoku-sensei
+PORTVERSION=	02.00
+CATEGORIES=	games
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-for-linux/Source%20and%20exe%20files%20for%20linux%2C%20ver.%202.00/ \
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES=	${PORTNAME}-src-${DISTVERSION:S/./-/}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-src-${DISTVERSION:S/./-/}${EXTRACT_SUFX}
+
+MAINTAINER=	nemysis@FreeBSD.org
+COMMENT=	Enjoy playing with Sudoku boards designed by yourself
+
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/SudokuSenseiSources
+
+USES=		qmake
+USE_QT4=	moc_build uic_build corelib gui iconengines_run imageformats_run
+CFLAGS+=	-w
+
+SUB_FILES=	${PORTNAME} \
+		pkg-message
+
+DESKTOP_ENTRIES="Sudoku Sensei" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;LogicGame;" ""
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.for d in board doc images language saves system
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+	${INSTALL_PROGRAM} ${WRKSRC}/SudokuSensei ${STAGEDIR}${DATADIR}
+
+.for d in SudokuSensei.rc license.txt
+	@(cd ${WRKSRC} && ${CP} -a ${d} ${STAGEDIR}${DATADIR})
+.endfor
+# Fix Permission that user can write in saves and system directories
+	@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} -R 775 saves system)
+
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+
+.include <bsd.port.mk>

Added: head/games/sudoku-sensei/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/distinfo	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,4 @@
+SHA256 (sudoku-sensei-src-02-00.tar.gz) = 80c6546a02ed23b6ff8e0c7af27d7b15ad5c44ea2491d61d0a91ed6d3bd7b806
+SIZE (sudoku-sensei-src-02-00.tar.gz) = 1304108
+SHA256 (sudoku-sensei.png) = 9b00a829ecfdf2ebb750be11fa62ae06fdf52f7176f13631ae1865c26190056d
+SIZE (sudoku-sensei.png) = 4887

Added: head/games/sudoku-sensei/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/files/pkg-message.in	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,12 @@
+===============================================================================
+
+Sudoku Sensei has been installed.
+
+User settings and saves are in %%DATADIR%%
+
+After deinstallation, some files may stay in %%DATADIR%%,
+you can delete them with
+
+    /bin/rm -fr %%DATADIR%%
+
+===============================================================================

Added: head/games/sudoku-sensei/files/sudoku-sensei.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/files/sudoku-sensei.in	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec ./SudokuSensei "${@}"

Added: head/games/sudoku-sensei/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/pkg-descr	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,6 @@
+The engine solves sudokus by applying complex logical rules a few times,
+instead of applying simpler rules (like guessing and backtracking) many
+times. These complex logical rules are exactly the same ones that people
+use with paper and pen.
+
+WWW: http://sudoku-sensei.sourceforge.net/

Added: head/games/sudoku-sensei/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sudoku-sensei/pkg-plist	Tue Jan 14 04:16:00 2014	(r339661)
@@ -0,0 +1,136 @@
+bin/sudoku-sensei
+share/pixmaps/sudoku-sensei.png
+%%DATADIR%%/SudokuSensei
+%%DATADIR%%/SudokuSensei.rc
+%%DATADIR%%/board/2x3TripleX.brd
+%%DATADIR%%/board/3x3cua.brd
+%%DATADIR%%/board/board.brd
+%%DATADIR%%/board/cuatro.brd
+%%DATADIR%%/board/diamond3.brd
+%%DATADIR%%/board/dobleX.brd
+%%DATADIR%%/board/heart.brd
+%%DATADIR%%/board/line.brd
+%%DATADIR%%/board/smile.brd
+%%DATADIR%%/board/tripleX.brd
+%%DATADIR%%/board/v.brd
+%%DATADIR%%/board/w.brd
+%%DATADIR%%/doc/About_en.html
+%%DATADIR%%/doc/About_es.html
+%%DATADIR%%/doc/LogoUAH.bmp
+%%DATADIR%%/doc/Manual_en.html
+%%DATADIR%%/doc/Manual_es.html
+%%DATADIR%%/doc/Tutorial1.bmp
+%%DATADIR%%/doc/Tutorial2.bmp
+%%DATADIR%%/doc/Tutorial3.bmp
+%%DATADIR%%/doc/Tutorial4.bmp
+%%DATADIR%%/doc/Tutorial5.bmp
+%%DATADIR%%/doc/Tutorial_en.html
+%%DATADIR%%/doc/Tutorial_es.html
+%%DATADIR%%/doc/manual_en/2Introduccion.html
+%%DATADIR%%/doc/manual_en/6ReporteErrores.html
+%%DATADIR%%/doc/manual_en/1Instalacion.html
+%%DATADIR%%/doc/manual_en/7LicenseGPL.html
+%%DATADIR%%/doc/manual_en/5Glosario.html
+%%DATADIR%%/doc/manual_en/4descripcion.html
+%%DATADIR%%/doc/manual_en/3SistemaJuego.html
+%%DATADIR%%/doc/manual_es/4descripcion_html_m1973b546.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_mdf7fa06.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_m290420f7.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_m26c1431e.png
+%%DATADIR%%/doc/manual_es/2Introduccion_html_m28c7ffa7.png
+%%DATADIR%%/doc/manual_es/2Introduccion_html_m542ae663.png
+%%DATADIR%%/doc/manual_es/2Introduccion.html
+%%DATADIR%%/doc/manual_es/6ReporteErrores.html
+%%DATADIR%%/doc/manual_es/1Instalacion.html
+%%DATADIR%%/doc/manual_es/4descripcion_html_5a3cf324.png
+%%DATADIR%%/doc/manual_es/2Introduccion_html_m2def4f34.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_m5ef5060d.png
+%%DATADIR%%/doc/manual_es/5Glosario.html
+%%DATADIR%%/doc/manual_es/4descripcion_html_3f011949.png
+%%DATADIR%%/doc/manual_es/7LicenseGPL.html
+%%DATADIR%%/doc/manual_es/4descripcion_html_m2f12683.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_m79bedd81.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_43feae4f.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_m6db82d32.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_m51c7468c.png
+%%DATADIR%%/doc/manual_es/2Introduccion_html_m6c839d90.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_m29000c8a.png
+%%DATADIR%%/doc/manual_es/2Introduccion_html_59dfe02b.png
+%%DATADIR%%/doc/manual_es/4descripcion_html_154e00b0.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_693179c8.png
+%%DATADIR%%/doc/manual_es/4descripcion.html
+%%DATADIR%%/doc/manual_es/4descripcion_html_m79d65a9f.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego_html_m645574e0.png
+%%DATADIR%%/doc/manual_es/3SistemaJuego.html
+%%DATADIR%%/images/SudokuSensei.ico
+%%DATADIR%%/language/sudoku_en.qm
+%%DATADIR%%/language/sudoku_en.ts
+%%DATADIR%%/language/sudoku_es.qm
+%%DATADIR%%/language/sudoku_es.ts
+%%DATADIR%%/license.txt
+%%DATADIR%%/saves/25simbolos.sdk
+%%DATADIR%%/saves/30simbolos.sdk
+%%DATADIR%%/saves/30simbolos_2.sdk
+%%DATADIR%%/saves/30simbolos_3.sdk
+%%DATADIR%%/saves/redundant1.sdk
+%%DATADIR%%/saves/samurai.sdk
+%%DATADIR%%/saves/samurai2.sdk
+%%DATADIR%%/saves/smile1.sdk
+%%DATADIR%%/saves/tutorial/level1/child1.sdk
+%%DATADIR%%/saves/tutorial/level1/child2.sdk
+%%DATADIR%%/saves/tutorial/level1/child3.sdk
+%%DATADIR%%/saves/tutorial/level1/child4.sdk
+%%DATADIR%%/saves/tutorial/level1/child5.sdk
+%%DATADIR%%/saves/tutorial/level2/line1.sdk
+%%DATADIR%%/saves/tutorial/level2/line2.sdk
+%%DATADIR%%/saves/tutorial/level2/line3.sdk
+%%DATADIR%%/saves/tutorial/level2/line4.sdk
+%%DATADIR%%/saves/tutorial/level2/line5.sdk
+%%DATADIR%%/saves/tutorial/level3/minisam1.sdk
+%%DATADIR%%/saves/tutorial/level3/minisam2.sdk
+%%DATADIR%%/saves/tutorial/level3/minisam3.sdk
+%%DATADIR%%/saves/tutorial/level3/minisam4.sdk
+%%DATADIR%%/saves/tutorial/level3/minisam5.sdk
+%%DATADIR%%/saves/tutorial/level4/hchild1.sdk
+%%DATADIR%%/saves/tutorial/level4/hchild2.sdk
+%%DATADIR%%/saves/tutorial/level4/hchild3.sdk
+%%DATADIR%%/saves/tutorial/level4/hchild4.sdk
+%%DATADIR%%/saves/tutorial/level4/hchild5.sdk
+%%DATADIR%%/saves/tutorial/level5/4x3easy1.sdk
+%%DATADIR%%/saves/tutorial/level5/4x3easy2.sdk
+%%DATADIR%%/saves/tutorial/level5/4x3easy3.sdk
+%%DATADIR%%/saves/tutorial/level5/4x3easy4.sdk
+%%DATADIR%%/saves/tutorial/level5/4x3easy5.sdk
+%%DATADIR%%/system/noerrsav.sdk
+%%DATADIR%%/system/save0.sdk
+%%DATADIR%%/system/save1.sdk
+%%DATADIR%%/system/save2.sdk
+%%DATADIR%%/system/save3.sdk
+%%DATADIR%%/system/save4.sdk
+%%DATADIR%%/system/save5.sdk
+%%DATADIR%%/system/save6.sdk
+%%DATADIR%%/system/save7.sdk
+%%DATADIR%%/system/save8.sdk
+%%DATADIR%%/system/save9.sdk
+%%DATADIR%%/system/savea.sdk
+%%DATADIR%%/system/saveb.sdk
+%%DATADIR%%/system/savec.sdk
+%%DATADIR%%/system/saved.sdk
+%%DATADIR%%/system/savee.sdk
+%%DATADIR%%/system/savef.sdk
+%%DATADIR%%/system/saveg.sdk
+@dirrm %%DATADIR%%/system
+@dirrm %%DATADIR%%/saves/tutorial/level5
+@dirrm %%DATADIR%%/saves/tutorial/level4
+@dirrm %%DATADIR%%/saves/tutorial/level3
+@dirrm %%DATADIR%%/saves/tutorial/level2
+@dirrm %%DATADIR%%/saves/tutorial/level1
+@dirrm %%DATADIR%%/saves/tutorial
+@dirrm %%DATADIR%%/saves
+@dirrm %%DATADIR%%/language
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/doc/manual_es
+@dirrm %%DATADIR%%/doc/manual_en
+@dirrm %%DATADIR%%/doc
+@dirrm %%DATADIR%%/board
+@dirrm %%DATADIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"