diff options
author | miwi <miwi@FreeBSD.org> | 2012-03-25 00:25:28 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-03-25 00:25:28 +0800 |
commit | 4a0a22e008e28c7f3500d943ce347351bde72985 (patch) | |
tree | c8dcb2631b445c1d52b8d359ffef9b234f5ba5c5 /games | |
parent | a0d5d0359347fd51ecc81a37b286d7a30d87f250 (diff) | |
download | freebsd-ports-gnome-4a0a22e008e28c7f3500d943ce347351bde72985.tar.gz freebsd-ports-gnome-4a0a22e008e28c7f3500d943ce347351bde72985.tar.zst freebsd-ports-gnome-4a0a22e008e28c7f3500d943ce347351bde72985.zip |
- Add LICENSE
- Rearrange install directory
- Install desktop entry file
PR: 166032
Submitted by: Ports Fury
Feature safe: yes
Diffstat (limited to 'games')
-rw-r--r-- | games/pyawale/Makefile | 37 | ||||
-rw-r--r-- | games/pyawale/pkg-plist | 191 |
2 files changed, 125 insertions, 103 deletions
diff --git a/games/pyawale/Makefile b/games/pyawale/Makefile index 5a94be43984d..20ff6ddabbe1 100644 --- a/games/pyawale/Makefile +++ b/games/pyawale/Makefile @@ -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 --git a/games/pyawale/pkg-plist b/games/pyawale/pkg-plist index 30a6c5956ae5..99864eaa3427 100644 --- a/games/pyawale/pkg-plist +++ b/games/pyawale/pkg-plist @@ -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 |