diff options
author | pawel <pawel@FreeBSD.org> | 2014-06-13 18:27:53 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-06-13 18:27:53 +0800 |
commit | 25a1fafd5fd37b2a1595a1ae3c67ec14ca7d68a4 (patch) | |
tree | 228c9b89fb4790d3302f3f7c280650cd13f8e51a | |
parent | eb1b6779fb23a285ee38609aa4d57f11decb70da (diff) | |
download | freebsd-ports-gnome-25a1fafd5fd37b2a1595a1ae3c67ec14ca7d68a4.tar.gz freebsd-ports-gnome-25a1fafd5fd37b2a1595a1ae3c67ec14ca7d68a4.tar.zst freebsd-ports-gnome-25a1fafd5fd37b2a1595a1ae3c67ec14ca7d68a4.zip |
- Add staging support
- Use PYGAME macro
- Port is DATADIR, DOCSDIR safe - reflect this in pkg-plist
-rw-r--r-- | misc/pypanda/Makefile | 16 | ||||
-rw-r--r-- | misc/pypanda/pkg-plist | 18 |
2 files changed, 16 insertions, 18 deletions
diff --git a/misc/pypanda/Makefile b/misc/pypanda/Makefile index 9aa7206d7bf7..36eb0e242683 100644 --- a/misc/pypanda/Makefile +++ b/misc/pypanda/Makefile @@ -10,24 +10,22 @@ MASTER_SITES= # none MAINTAINER= ports@FreeBSD.org COMMENT= Viewer for San Diego Zoo Pandacam written in Python -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game +RUN_DEPENDS= ${PYGAME} USE_PYTHON= yes -NO_STAGE= yes do-build: ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} do-install: - @${MKDIR} ${DATADIR} -.for ext in py pyc pyo jpg png - ${INSTALL_DATA} ${WRKSRC}/*.${ext} ${DATADIR} -.endfor - @${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} *.py *.pyc *.pyo *.jpg *.png \ + ${STAGEDIR}${DATADIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} @printf "#!/bin/sh\ncd ${DATADIR} && \ exec ${PYTHON_CMD} ${DATADIR}/pypanda.py\n" > ${WRKDIR}/pypanda.sh - @${INSTALL_SCRIPT} ${WRKDIR}/pypanda.sh ${PREFIX}/bin/pypanda + ${INSTALL_SCRIPT} ${WRKDIR}/pypanda.sh ${STAGEDIR}${PREFIX}/bin/pypanda .include <bsd.port.mk> diff --git a/misc/pypanda/pkg-plist b/misc/pypanda/pkg-plist index 4e247203da3a..56df0e8c0ceb 100644 --- a/misc/pypanda/pkg-plist +++ b/misc/pypanda/pkg-plist @@ -1,10 +1,10 @@ bin/pypanda -share/doc/pypanda/README -share/pypanda/camdown.jpg -share/pypanda/camrefresh.jpg -share/pypanda/pypanda.png -share/pypanda/pypanda.py -share/pypanda/pypanda.pyc -share/pypanda/pypanda.pyo -@dirrm share/pypanda -@dirrm share/doc/pypanda +%%DOCSDIR%%/README +%%DATADIR%%/camdown.jpg +%%DATADIR%%/camrefresh.jpg +%%DATADIR%%/pypanda.png +%%DATADIR%%/pypanda.py +%%DATADIR%%/pypanda.pyc +%%DATADIR%%/pypanda.pyo +@dirrm %%DATADIR%% +@dirrm %%DOCSDIR%% |