Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 02:21:11 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/166032: Update port: games/pyawale
Message-ID:  <20120314022111.57817122.tkato432@yahoo.com>
Resent-Message-ID: <201203131810.q2DIA7IE054758@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166032
>Category:       ports
>Synopsis:       Update port: games/pyawale
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 13 18:10:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Add LICENSE
- Rearrange install directory
- Install desktop entry file

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/pyawale/Makefile games/pyawale/Makefile
--- /usr/ports/games/pyawale/Makefile	2012-03-04 14:31:06.000000000 +0900
+++ games/pyawale/Makefile	2012-03-05 15:50:27.000000000 +0900
@@ -7,30 +7,47 @@
 
 PORTNAME=	pyawale
 PORTVERSION=	0.4.0
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	http://download.gna.org/pyawale/ CENKES
+MASTER_SITES=	http://download.gna.org/pyawale/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	African board game
 
+LICENSE=	GPLv2
+
 RUN_DEPENDS=	py*-game>=1.7.1:${PORTSDIR}/devel/py-game
 
 USE_PYTHON=	yes
-PORTDOCS=	AUTHORS ChangeLog NEWS README
 
 do-build:
-	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src/
-	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src/
+	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
+	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
 	@${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/${PORTNAME}
-	@${ECHO_CMD} "exec ${PYTHON_CMD} ${DATADIR}/src/pyawale.py"\
+	@${ECHO_CMD} "exec ${PYTHON_CMD} \
+		${PYTHONPREFIX_SITELIBDIR}/pyAwale/${PORTNAME}.py" \
 		>> ${WRKSRC}/${PORTNAME}
 
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-	@cd ${WRKSRC}/&&${COPYTREE_SHARE} "docs src" ${DATADIR}/
-.ifndef NOPORTDOCS
-	@${INSTALL} -d ${DOCSDIR}
-	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/pyAwale
+	@(cd ${WRKSRC}/src \
+		&& ${COPYTREE_SHARE} . ${PYTHONPREFIX_SITELIBDIR}/pyAwale)
+	@${MKDIR} ${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.desktop \
+		${PREFIX}/share/applications
+	@${MKDIR} ${PREFIX}/share/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.png \
+		${PREFIX}/share/pixmaps
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for i in AUTHORS ChangeLog NEWS README
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+	@${MKDIR} ${DOCSDIR}/docs
+	${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}/docs
+	${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/docs
+	${INSTALL_DATA} ${WRKSRC}/docs/*.rest ${DOCSDIR}/docs
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/pyawale/pkg-plist games/pyawale/pkg-plist
--- /usr/ports/games/pyawale/pkg-plist	2012-03-04 14:31:07.000000000 +0900
+++ games/pyawale/pkg-plist	2012-03-05 15:45:04.000000000 +0900
@@ -1,94 +1,99 @@
 bin/pyawale
-%%DATADIR%%/src/images/awale_board_closed.png
-%%DATADIR%%/src/images/awale_board_empty.png
-%%DATADIR%%/src/images/awale_north_0.png
-%%DATADIR%%/src/images/awale_north_1.png
-%%DATADIR%%/src/images/awale_north_10.png
-%%DATADIR%%/src/images/awale_north_11.png
-%%DATADIR%%/src/images/awale_north_12.png
-%%DATADIR%%/src/images/awale_north_13.png
-%%DATADIR%%/src/images/awale_north_14.png
-%%DATADIR%%/src/images/awale_north_15.png
-%%DATADIR%%/src/images/awale_north_16.png
-%%DATADIR%%/src/images/awale_north_17.png
-%%DATADIR%%/src/images/awale_north_18.png
-%%DATADIR%%/src/images/awale_north_19.png
-%%DATADIR%%/src/images/awale_north_2.png
-%%DATADIR%%/src/images/awale_north_20.png
-%%DATADIR%%/src/images/awale_north_21.png
-%%DATADIR%%/src/images/awale_north_22.png
-%%DATADIR%%/src/images/awale_north_23.png
-%%DATADIR%%/src/images/awale_north_24.png
-%%DATADIR%%/src/images/awale_north_25.png
-%%DATADIR%%/src/images/awale_north_3.png
-%%DATADIR%%/src/images/awale_north_4.png
-%%DATADIR%%/src/images/awale_north_5.png
-%%DATADIR%%/src/images/awale_north_6.png
-%%DATADIR%%/src/images/awale_north_7.png
-%%DATADIR%%/src/images/awale_north_8.png
-%%DATADIR%%/src/images/awale_north_9.png
-%%DATADIR%%/src/images/awale_seed_0.png
-%%DATADIR%%/src/images/awale_seed_10d.png
-%%DATADIR%%/src/images/awale_seed_11d.png
-%%DATADIR%%/src/images/awale_seed_12d.png
-%%DATADIR%%/src/images/awale_seed_12d_13.png
-%%DATADIR%%/src/images/awale_seed_14d.png
-%%DATADIR%%/src/images/awale_seed_15d.png
-%%DATADIR%%/src/images/awale_seed_1d.png
-%%DATADIR%%/src/images/awale_seed_2c.png
-%%DATADIR%%/src/images/awale_seed_3b.png
-%%DATADIR%%/src/images/awale_seed_4D.png
-%%DATADIR%%/src/images/awale_seed_5d.png
-%%DATADIR%%/src/images/awale_seed_6c.png
-%%DATADIR%%/src/images/awale_seed_7b.png
-%%DATADIR%%/src/images/awale_seed_8e.png
-%%DATADIR%%/src/images/awale_seed_9d.png
-%%DATADIR%%/src/images/awale_south_0.png
-%%DATADIR%%/src/images/awale_south_1.png
-%%DATADIR%%/src/images/awale_south_10.png
-%%DATADIR%%/src/images/awale_south_11.png
-%%DATADIR%%/src/images/awale_south_12.png
-%%DATADIR%%/src/images/awale_south_13.png
-%%DATADIR%%/src/images/awale_south_14.png
-%%DATADIR%%/src/images/awale_south_15.png
-%%DATADIR%%/src/images/awale_south_16.png
-%%DATADIR%%/src/images/awale_south_17.png
-%%DATADIR%%/src/images/awale_south_18.png
-%%DATADIR%%/src/images/awale_south_19.png
-%%DATADIR%%/src/images/awale_south_2.png
-%%DATADIR%%/src/images/awale_south_20.png
-%%DATADIR%%/src/images/awale_south_21.png
-%%DATADIR%%/src/images/awale_south_22.png
-%%DATADIR%%/src/images/awale_south_23.png
-%%DATADIR%%/src/images/awale_south_24.png
-%%DATADIR%%/src/images/awale_south_25.png
-%%DATADIR%%/src/images/awale_south_3.png
-%%DATADIR%%/src/images/awale_south_4.png
-%%DATADIR%%/src/images/awale_south_5.png
-%%DATADIR%%/src/images/awale_south_6.png
-%%DATADIR%%/src/images/awale_south_7.png
-%%DATADIR%%/src/images/awale_south_8.png
-%%DATADIR%%/src/images/awale_south_9.png
-%%DATADIR%%/src/images/freesansbold.ttf
-%%DATADIR%%/docs/awale_algos.rest
-%%DATADIR%%/docs/awale_module.rest
-%%DATADIR%%/docs/pyawale.desktop
-%%DATADIR%%/docs/pyawale.html
-%%DATADIR%%/docs/pyawale.png
-%%DATADIR%%/docs/pyawale.rest
-%%DATADIR%%/docs/pyawale_end.jpg
-%%DATADIR%%/docs/pyawale_gui.jpg
-%%DATADIR%%/docs/pyawale_intro.jpg
-%%DATADIR%%/src/awale.py
-%%DATADIR%%/src/awale.pyc
-%%DATADIR%%/src/awale.pyo
-%%DATADIR%%/src/__init__.py
-%%DATADIR%%/src/__init__.pyc
-%%DATADIR%%/src/__init__.pyo
-%%DATADIR%%/src/pyawale.py
-%%DATADIR%%/src/pyawale.pyc
-%%DATADIR%%/src/pyawale.pyo
-@dirrm %%DATADIR%%/src/images
-@dirrm %%DATADIR%%/src
-@dirrm %%DATADIR%%/docs
-@dirrm %%DATADIR%%
+%%PYTHON_SITELIBDIR%%/pyAwale/__init__.py
+%%PYTHON_SITELIBDIR%%/pyAwale/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pyAwale/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pyAwale/awale.py
+%%PYTHON_SITELIBDIR%%/pyAwale/awale.pyc
+%%PYTHON_SITELIBDIR%%/pyAwale/awale.pyo
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_board_closed.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_board_empty.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_0.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_1.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_10.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_11.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_12.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_13.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_14.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_15.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_16.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_17.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_18.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_19.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_2.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_20.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_21.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_22.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_23.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_24.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_25.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_3.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_4.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_5.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_6.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_7.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_8.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_north_9.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_0.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_10d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_11d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_12d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_12d_13.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_14d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_15d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_1d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_2c.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_3b.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_4D.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_5d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_6c.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_7b.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_8e.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_seed_9d.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_0.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_1.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_10.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_11.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_12.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_13.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_14.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_15.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_16.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_17.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_18.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_19.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_2.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_20.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_21.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_22.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_23.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_24.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_25.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_3.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_4.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_5.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_6.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_7.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_8.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/awale_south_9.png
+%%PYTHON_SITELIBDIR%%/pyAwale/images/freesansbold.ttf
+%%PYTHON_SITELIBDIR%%/pyAwale/pyawale.py
+%%PYTHON_SITELIBDIR%%/pyAwale/pyawale.pyc
+%%PYTHON_SITELIBDIR%%/pyAwale/pyawale.pyo
+share/applications/pyawale.desktop
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/docs/awale_algos.rest
+%%PORTDOCS%%%%DOCSDIR%%/docs/awale_module.rest
+%%PORTDOCS%%%%DOCSDIR%%/docs/pyawale.html
+%%PORTDOCS%%%%DOCSDIR%%/docs/pyawale.rest
+%%PORTDOCS%%%%DOCSDIR%%/docs/pyawale_end.jpg
+%%PORTDOCS%%%%DOCSDIR%%/docs/pyawale_gui.jpg
+%%PORTDOCS%%%%DOCSDIR%%/docs/pyawale_intro.jpg
+share/pixmaps/pyawale.png
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry share/applications
+@dirrm %%PYTHON_SITELIBDIR%%/pyAwale/images
+@dirrm %%PYTHON_SITELIBDIR%%/pyAwale
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120314022111.57817122.tkato432>