aboutsummaryrefslogtreecommitdiff
path: root/games/gretools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/gretools/Makefile')
-rw-r--r--games/gretools/Makefile14
1 files changed, 12 insertions, 2 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>