svn commit: r345625 - head/games/kye

Marcus von Appen mva at FreeBSD.org
Sat Feb 22 10:52:55 UTC 2014


Author: mva
Date: Sat Feb 22 10:52:54 2014
New Revision: 345625
URL: http://svnweb.freebsd.org/changeset/ports/345625
QAT: https://qat.redports.org/buildarchive/r345625/

Log:
  - Respect DATADIR
  
  PR:		ports/185947
  With hat:	python@

Modified:
  head/games/kye/Makefile

Modified: head/games/kye/Makefile
==============================================================================
--- head/games/kye/Makefile	Sat Feb 22 10:52:50 2014	(r345624)
+++ head/games/kye/Makefile	Sat Feb 22 10:52:54 2014	(r345625)
@@ -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 \


More information about the svn-ports-all mailing list