summaryrefslogtreecommitdiffstats
path: root/games/galaxymage
diff options
context:
space:
mode:
Diffstat (limited to 'games/galaxymage')
-rw-r--r--games/galaxymage/Makefile2
-rw-r--r--games/galaxymage/files/patch-src_Translate.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/games/galaxymage/Makefile b/games/galaxymage/Makefile
index fdaeb97..53b55e2 100644
--- a/games/galaxymage/Makefile
+++ b/games/galaxymage/Makefile
@@ -33,7 +33,7 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
post-configure:
@${REINPLACE_CMD} -e 's@%%DATADIR%%@${DATADIR}@g' ${WRKSRC}/GalaxyMage.py ${WRKSRC}/src/Resources.py
- @${REINPLACE_CMD} -e 's@%%X11BASE%%@${X11BASE}@g' ${WRKSRC}/src/Translate.py
+ @${REINPLACE_CMD} -e 's@%%LOCALBASE%%@${LOCALBASE}@g' ${WRKSRC}/src/Translate.py
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/GalaxyMage.py ${PREFIX}/bin/GalaxyMage
diff --git a/games/galaxymage/files/patch-src_Translate.py b/games/galaxymage/files/patch-src_Translate.py
index dce3e47..f6d7d0e 100644
--- a/games/galaxymage/files/patch-src_Translate.py
+++ b/games/galaxymage/files/patch-src_Translate.py
@@ -5,7 +5,7 @@
def getLanguageDict(self,lang):
- return gettext.translation('GalaxyMage',os.path.join(os.getcwd(),'locale'), languages=[lang])
-+ return gettext.translation('GalaxyMage',os.path.join('%%X11BASE%%/share/locale'), languages=[lang])
++ return gettext.translation('GalaxyMage',os.path.join('%%LOCALBASE%%/share/locale'), languages=[lang])
def __init__(self):
#fill our language dictionnary with each language
OpenPOWER on IntegriCloud