aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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%%