svn commit: r498708 - head/games/pythonsudoku

Muhammad Moinur Rahman bofh at FreeBSD.org
Fri Apr 12 09:02:33 UTC 2019


Author: bofh
Date: Fri Apr 12 09:02:32 2019
New Revision: 498708
URL: https://svnweb.freebsd.org/changeset/ports/498708

Log:
  games/pythonsudoku: Change DEPENDS from py-reportlab1 to py-reportlab
  
  - Modernize OPTIONS

Modified:
  head/games/pythonsudoku/Makefile

Modified: head/games/pythonsudoku/Makefile
==============================================================================
--- head/games/pythonsudoku/Makefile	Fri Apr 12 09:01:15 2019	(r498707)
+++ head/games/pythonsudoku/Makefile	Fri Apr 12 09:02:32 2019	(r498708)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pythonsudoku
 PORTVERSION=	0.13
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	games python
 MASTER_SITES=	SF/${PORTNAME}/Python%20Sudoku/${PORTVERSION}/ \
 		SF/nemysisfreebsdp/games/:icons
@@ -12,7 +12,7 @@ DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
 DIST_SUBDIR=	python
 EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	bofh at FreeBSD.org
 COMMENT=	Text and graphical program to create or resolve Sudokus
 
 LICENSE=	GPLv2+
@@ -21,25 +21,23 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS+=	libcups.so:print/cups
 RUN_DEPENDS=	${PYGAME} \
 		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}reportlab1>=0:print/py-reportlab1@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}reportlab>=0:print/py-reportlab@${PY_FLAVOR}
 
-USES=		python:2.7 tar:bzip2
+USES=		gnome python:2.7 tar:bzip2
 USE_GNOME=	pygtk2
 USE_PYTHON=	distutils
-INSTALLS_ICONS=	yes
 
 PORTDOCS=	*
 
 DESKTOP_ENTRIES="Python Sudoku" "" "${PORTNAME}" \
 		"${PORTNAME}" "Game;LogicGame;" ""
+INSTALLS_ICONS=	yes
+NO_ARCH=	yes
 
 OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
-
 NLS_USES=	gettext-runtime:run
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/games|${PREFIX}/bin|; \
 		s|/usr/share/games|${PREFIX}/share|' \
@@ -52,11 +50,10 @@ post-patch:
 		's|/usr/lib/python2.4|${PYTHON_CMD}|'
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
 
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
 	@${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}


More information about the svn-ports-all mailing list