Permalink
Browse files

Python Sudoku is a text and graphical program (gtk interface) to crea…

…te or

resolve sudokus. It can also print a sudoku (1 or 4 sudokus in each page)
and write an image (png, jpeg, etc) with a sudoku.

WWW: http://pythonsudoku.sourceforge.net/

PR:		ports/171332
Submitted by:	nemysis (self)
Approved by:	wg (mentor)
  • Loading branch information...
nemysis committed Nov 30, 2013
1 parent faa1a25 commit 7a2965c5a7a7014e9f428f70a4b9e15d17ad63b0
Showing with 139 additions and 0 deletions.
  1. +1 −0 games/Makefile
  2. +76 −0 games/pythonsudoku/Makefile
  3. +4 −0 games/pythonsudoku/distinfo
  4. +5 −0 games/pythonsudoku/pkg-descr
  5. +53 −0 games/pythonsudoku/pkg-plist
View
@@ -764,6 +764,7 @@
SUBDIR += pysycache-lang
SUBDIR += pysycache-themes
SUBDIR += pythonchess
+ SUBDIR += pythonsudoku
SUBDIR += q2p
SUBDIR += q2pro
SUBDIR += q3cellshading
@@ -0,0 +1,76 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= pythonsudoku
+PORTVERSION= 0.13
+CATEGORIES= games python
+MASTER_SITES= SF/${PORTNAME}/Python%20Sudoku/${PORTVERSION}/ \
+ SF/nemysisfreebsdp/games/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= python
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= Text and graphical program to create or resolve Sudokus
+
+LICENSE= GPLv2
+
+LIB_DEPENDS+= libcups.so:${PORTSDIR}/print/cups-client
+RUN_DEPENDS= ${PYGAME} \
+ ${PYTHON_PKGNAMEPREFIX}imaging>=0:${PORTSDIR}/graphics/py-imaging \
+ ${PYTHON_PKGNAMEPREFIX}reportlab>=0:${PORTSDIR}/print/py-reportlab
+
+USE_BZIP2= yes
+USES= desktop-file-utils
+USE_GNOME= pygtk2
+USE_PYTHON= 2.7
+USE_PYDISTUTILS=yes
+INSTALLS_ICONS= yes
+
+PORTDOCS= *
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= Changelog README TODO
+
+DOCSRCDIR2= ${WRKSRC}/doc
+DOCSDIR2= ${DOCSDIR}/doc
+DOC_FILES2= *.png *.html *.txt *.css
+
+DESKTOP_ENTRIES="Python Sudoku" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;LogicGame;" false
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/games|${PREFIX}/bin| ; \
+ s|/usr/share/games|${PREFIX}/share|' \
+ ${WRKSRC}/setup.cfg
+ @${REINPLACE_CMD} -e 's|#localedir = "DIRECTORY"|localedir = "${PREFIX}/share/locale"|' \
+ ${WRKSRC}/pythonsudoku/config.py
+ @${FIND} ${WRKSRC} -name POTFILES -or -name *.po -or -name *.pot| ${XARGS} ${REINPLACE_CMD} -e \
+ 's|/usr/lib/python2.4|/usr/local/lib/python${PYTHON_DEFAULT}|g'
+ @${FIND} ${WRKSRC} -name "*.bak" -delete
+
+.if ! ${PORT_OPTIONS:MNLS}
+ @${REINPLACE_CMD} -i '' '/for lingua in linguas():/,/\["locale\/%s\/LC_MESSAGES\/pythonsudoku.mo" % lingua\]))/s/^/#/' \
+ ${WRKSRC}/setup.py
+.endif
+
+post-install:
+ @cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf pysdk-gui.py ${PORTNAME}
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} *.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/)
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
+.include <bsd.port.mk>
@@ -0,0 +1,4 @@
+SHA256 (python/pythonsudoku-0.13.tar.bz2) = 96abccca4409153af8559a87f1a8d0ee82651632fc8ecdf7698e4bcbdfd6098f
+SIZE (python/pythonsudoku-0.13.tar.bz2) = 377572
+SHA256 (python/pythonsudoku.png) = 88392758317312fe7e363eea2d9d062c47ecb190797136a51cab15651597e216
+SIZE (python/pythonsudoku.png) = 3499
@@ -0,0 +1,5 @@
+Python Sudoku is a text and graphical program (gtk interface) to create or
+resolve sudokus. It can also print a sudoku (1 or 4 sudokus in each page)
+and write an image (png, jpeg, etc) with a sudoku.
+
+WWW: http://pythonsudoku.sourceforge.net/
@@ -0,0 +1,53 @@
+bin/pysdk-gui.py
+bin/pysdk-image.py
+bin/pysdk-pdf.py
+bin/pysdk.py
+bin/pythonsudoku
+%%PYTHON_SITELIBDIR%%/pythonsudoku/__init__.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/board.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/board.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/board.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/check_modules.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/check_modules.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/check_modules.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/config.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/config.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/config.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/gui.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/gui.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/gui.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/history.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/history.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/history.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/image.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/image.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/image.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/info.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/info.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/info.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/pdf.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/pdf.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/pdf.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/printer.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/printer.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/printer.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/sudoku.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/sudoku.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/sudoku.pyo
+%%PYTHON_SITELIBDIR%%/pythonsudoku/text.py
+%%PYTHON_SITELIBDIR%%/pythonsudoku/text.pyc
+%%PYTHON_SITELIBDIR%%/pythonsudoku/text.pyo
+man/man6/pysdk-gui.6.gz
+man/man6/pysdk-image.6.gz
+man/man6/pysdk-pdf.6.gz
+man/man6/pysdk.6.gz
+%%NLS%%share/locale/ca/LC_MESSAGES/pythonsudoku.mo
+%%NLS%%share/locale/de/LC_MESSAGES/pythonsudoku.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/pythonsudoku.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/pythonsudoku.mo
+share/pixmaps/pythonsudoku.png
+%%DATADIR%%/FreeSans.ttf
+@dirrm %%DATADIR%%
+@dirrm %%PYTHON_SITELIBDIR%%/pythonsudoku

0 comments on commit 7a2965c

Please sign in to comment.