aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-02-25 14:07:00 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-02-25 14:07:00 +0000
commit137a22e0a1fa4343365c3950c1cd5a49d4607cf9 (patch)
tree48779547a146f861cad36febd4b38bec89667bc9
parent1fb68423ae70479e1db2bb5421e37187a991c5c6 (diff)
downloadports-137a22e0a1fa4343365c3950c1cd5a49d4607cf9.tar.gz
ports-137a22e0a1fa4343365c3950c1cd5a49d4607cf9.zip
- Simplify MASTER_SITES
- Add LICENSE_FILE - Recompile python files to make them not reference stagedir - Drop @dirrm* from plist
Notes
Notes: svn path=/head/; revision=379911
-rw-r--r--games/gretools/Makefile14
-rw-r--r--games/gretools/pkg-plist10
2 files changed, 12 insertions, 12 deletions
diff --git a/games/gretools/Makefile b/games/gretools/Makefile
index dee2d25666a1..d68d64445a7b 100644
--- a/games/gretools/Makefile
+++ b/games/gretools/Makefile
@@ -5,13 +5,13 @@ PORTNAME= gretools
PORTVERSION= 1.2.4
PORTREVISION= 12
CATEGORIES= games gnome
-MASTER_SITES= http://randomwalker.info/gretools/%SUBDIR%/
-MASTER_SITE_SUBDIR= ${PORTVERSION:R}
+MASTER_SITES= http://randomwalker.info/gretools/${PORTVERSION:R}/
MAINTAINER= ports@FreeBSD.org
COMMENT= GNOME vocabulary builder
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake pathfix pkgconfig python shebangfix
SHEBANG_FILES= ${WRKSRC}/gretools.py
@@ -27,4 +27,14 @@ post-patch:
s|gtk\.FALSE|False|g ; \
s|gtk\.idle_add|gobject\.idle_add|g' ${WRKSRC}/gretools.py
+post-install:
+ ${RM} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gretools/gretools.pyc
+ ${RM} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gretools/gretools.pyo
+ ${PYTHON_CMD} -m compileall \
+ -d ${PYTHONPREFIX_SITELIBDIR}/gretools \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gretools
+ ${PYTHON_CMD} -O -m compileall \
+ -d ${PYTHONPREFIX_SITELIBDIR}/gretools \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gretools
+
.include <bsd.port.mk>
diff --git a/games/gretools/pkg-plist b/games/gretools/pkg-plist
index 0f1eec4c7a20..bdd40e1c33b1 100644
--- a/games/gretools/pkg-plist
+++ b/games/gretools/pkg-plist
@@ -11,13 +11,3 @@ share/gnome/help/gretools/C/gretools.xml
share/gnome/help/gretools/C/legal.xml
share/omf/gretools/gretools-C.omf
share/pixmaps/gretools.png
-@dirrm share/omf/gretools
-@dirrm share/gnome/help/gretools/C/figures
-@dirrm share/gnome/help/gretools/C
-@dirrm share/gnome/help/gretools
-@dirrm %%DATADIR%%/lists
-@dirrm %%DATADIR%%/glade
-@dirrm %%DATADIR%%
-@dirrm %%PYTHON_SITELIBDIR%%/gretools
-@dirrmtry %%PYTHON_SITELIBDIR%%
-@dirrmtry %%PYTHON_LIBDIR%%