From 7a2965c5a7a7014e9f428f70a4b9e15d17ad63b0 Mon Sep 17 00:00:00 2001 From: nemysis Date: Sat, 30 Nov 2013 12:08:15 +0000 Subject: 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/ PR: ports/171332 Submitted by: nemysis (self) Approved by: wg (mentor) --- games/pythonsudoku/Makefile | 76 ++++++++++++++++++++++++++++++++++++++++++++ games/pythonsudoku/distinfo | 4 +++ games/pythonsudoku/pkg-descr | 5 +++ games/pythonsudoku/pkg-plist | 53 ++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 games/pythonsudoku/Makefile create mode 100644 games/pythonsudoku/distinfo create mode 100644 games/pythonsudoku/pkg-descr create mode 100644 games/pythonsudoku/pkg-plist (limited to 'games/pythonsudoku') diff --git a/games/pythonsudoku/Makefile b/games/pythonsudoku/Makefile new file mode 100644 index 000000000000..0e5c8b331552 --- /dev/null +++ b/games/pythonsudoku/Makefile @@ -0,0 +1,76 @@ +# Created by: Rusmir Dusko +# $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 + +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 diff --git a/games/pythonsudoku/distinfo b/games/pythonsudoku/distinfo new file mode 100644 index 000000000000..d739f5e0ec53 --- /dev/null +++ b/games/pythonsudoku/distinfo @@ -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 diff --git a/games/pythonsudoku/pkg-descr b/games/pythonsudoku/pkg-descr new file mode 100644 index 000000000000..bc50212c42b5 --- /dev/null +++ b/games/pythonsudoku/pkg-descr @@ -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/ diff --git a/games/pythonsudoku/pkg-plist b/games/pythonsudoku/pkg-plist new file mode 100644 index 000000000000..3c069a8502ae --- /dev/null +++ b/games/pythonsudoku/pkg-plist @@ -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 -- cgit