Bug 171332 - [NEW PORT] games/py27-pythonsudoku: Text and graphical program to create or resolve Sudokus
Summary: [NEW PORT] games/py27-pythonsudoku: Text and graphical program to create or r...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-05 01:10 UTC by nemysis
Modified: 2013-11-30 12:10 UTC (History)
1 user (show)

See Also:


Attachments
.shar (4.76 KB, text/plain)
2012-09-05 01:10 UTC, nemysis
no flags Details
pythonsudoku.shar (4.72 KB, application/x-shar)
2012-09-13 10:05 UTC, nemysis
no flags Details
pythonsudoku.shar (4.81 KB, application/x-shar)
2012-10-11 03:07 UTC, nemysis
no flags Details
pythonsudoku.shar (5.70 KB, application/x-shar)
2012-12-08 17:47 UTC, nemysis
no flags Details
pythonsudoku.shar (5.92 KB, application/x-shar)
2013-02-14 16:15 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-09-05 01:10:02 UTC
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/

Generated and tested manually, tested with port test and with RedPorts (all RELEASES), sent  with FreeBSD Port Tools 0.99_6 (mode: new)
Comment 1 nemysis 2012-09-13 10:05:08 UTC
Changed to use

RUN_DEPENDS= ${PYGAME}
Comment 2 nemysis 2012-12-08 17:47:13 UTC
Makefile changed:

MASTER_SITES=
DISTFILES=
EXTRACT_ONLY=
MAN6=           pysdk-gui.6 pysdk-image.6 pysdk-pdf.6 pysdk.6
DOCSRCDIR1=
OPTIONS_DEFINE= NLS

Removed
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Changed and refined:
 post-patch:
 post-install:
.if ${PORT_OPTIONS:MDOCS} 
 pkg-plist

portlint -A
looks fine.

port test: clean
Comment 3 nemysis 2013-02-14 16:15:12 UTC
portlint -A    
WARN: Makefile: [44]: possible direct use of command "false" found. use ${FALSE} instead.
WARN: Makefile: [11]: possible direct use of command "python" found. use ${PYTHON_CMD} instead.
0 fatal errors and 2 warnings found.

port test: clean
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2013-08-14 10:23:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

submitter is committer now.
Comment 5 Rusmir Dusko freebsd_committer freebsd_triage 2013-11-30 12:07:18 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2013-11-30 12:09:03 UTC
Author: nemysis
Date: Sat Nov 30 12:08:15 2013
New Revision: 335286
URL: http://svnweb.freebsd.org/changeset/ports/335286

Log:
  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)

Added:
  head/games/pythonsudoku/
  head/games/pythonsudoku/Makefile   (contents, props changed)
  head/games/pythonsudoku/distinfo   (contents, props changed)
  head/games/pythonsudoku/pkg-descr   (contents, props changed)
  head/games/pythonsudoku/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sat Nov 30 11:19:34 2013	(r335285)
+++ head/games/Makefile	Sat Nov 30 12:08:15 2013	(r335286)
@@ -764,6 +764,7 @@
     SUBDIR += pysycache-lang
     SUBDIR += pysycache-themes
     SUBDIR += pythonchess
+    SUBDIR += pythonsudoku
     SUBDIR += q2p
     SUBDIR += q2pro
     SUBDIR += q3cellshading

Added: head/games/pythonsudoku/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pythonsudoku/Makefile	Sat Nov 30 12:08:15 2013	(r335286)
@@ -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>

Added: head/games/pythonsudoku/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pythonsudoku/distinfo	Sat Nov 30 12:08:15 2013	(r335286)
@@ -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

Added: head/games/pythonsudoku/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pythonsudoku/pkg-descr	Sat Nov 30 12:08:15 2013	(r335286)
@@ -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/

Added: head/games/pythonsudoku/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pythonsudoku/pkg-plist	Sat Nov 30 12:08:15 2013	(r335286)
@@ -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
_______________________________________________
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"