diff options
author | mva <mva@FreeBSD.org> | 2014-02-22 18:52:54 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2014-02-22 18:52:54 +0800 |
commit | 24135766a017b07656b1ef93975ce0fc39afd01b (patch) | |
tree | 86b9c8b8a21383b6da27fb9c08ee88d3d26b7cea | |
parent | be64c665614ec3ce7e63073a1eaf157b27366f06 (diff) | |
download | freebsd-ports-gnome-24135766a017b07656b1ef93975ce0fc39afd01b.tar.gz freebsd-ports-gnome-24135766a017b07656b1ef93975ce0fc39afd01b.tar.zst freebsd-ports-gnome-24135766a017b07656b1ef93975ce0fc39afd01b.zip |
- Respect DATADIR
PR: ports/185947
With hat: python@
-rw-r--r-- | games/kye/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/games/kye/Makefile b/games/kye/Makefile index 4b1f39384669..4c4e329a1e82 100644 --- a/games/kye/Makefile +++ b/games/kye/Makefile @@ -3,7 +3,7 @@ PORTNAME= kye PORTVERSION= 1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games python MASTER_SITES= http://games.moria.org.uk/kye/download/ \ SF/nemysisfreebsdp/games/${PORTNAME}/:levels @@ -37,6 +37,11 @@ DESKTOP_ENTRIES="Python Kye" "" "Kye" \ .include <bsd.port.options.mk> +post-patch: + @${REINPLACE_CMD} -e 's|share/kye|${DATADIR_REL}|' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e 's|/usr/local/share/kye|${DATADIR}|' \ + ${WRKSRC}/kye/common.py + post-extract-script: @${MKDIR} ${WRKDIR}/${PORTNAME} .for l in kye-data_moria_levels.20121101.tar.gz kye-data_nuke_levels.20121101.tar.gz \ |