aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-03-14 14:24:38 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-03-14 14:24:38 +0000
commitf88d0883b855ec74338a7ab478dc2fa3d993486f (patch)
tree63cde8386a37bcaade79621b51b5b8c91890e227 /games
parent691bf3a384d8530d73f5385edfb41548b2429758 (diff)
downloadports-f88d0883b855ec74338a7ab478dc2fa3d993486f.tar.gz
ports-f88d0883b855ec74338a7ab478dc2fa3d993486f.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/py-mnemosyne/Makefile38
1 files changed, 35 insertions, 3 deletions
diff --git a/games/py-mnemosyne/Makefile b/games/py-mnemosyne/Makefile
index 8ca8efd2bdd8..1f71fc9dcfd8 100644
--- a/games/py-mnemosyne/Makefile
+++ b/games/py-mnemosyne/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mnemosyne
PORTVERSION= 2.3.5
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= games python
MASTER_SITES= SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
@@ -14,12 +15,43 @@ COMMENT= Flash-card tool which optimises your learning process
LICENSE= LGPL3
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4>=4.5:${PORTSDIR}/devel/py-qt4 \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-sql>=4.5:${PORTSDIR}/databases/py-qt4-sql \
+ ${PYTHON_PKGNAMEPREFIX}qt4-network>=4.5:${PORTSDIR}/net/py-qt4-network \
+ ${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.5:${PORTSDIR}/www/py-qt4-webkit \
+ ${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.5:${PORTSDIR}/x11-toolkits/py-qt4-gui \
+ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}matplotlib>=1.2.0:${PORTSDIR}/math/py-matplotlib \
${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2:${PORTSDIR}/www/py-cherrypy \
${PYTHON_PKGNAMEPREFIX}webob>=1.2.2:${PORTSDIR}/www/py-webob
-USES= python
+USES= fortran python
USE_PYTHON= distutils autoplist
+NO_ARCH= yes
-.include <bsd.port.mk>
+PLIST_FILES= bin/mnemosyne
+
+_GCC_LD_PATH= ${LOCALBASE}/lib/gcc${GCC_DEFAULT:S/.//}
+
+.include <bsd.port.pre.mk>
+
+post-extract:
+ @${LN} -sf mnemosyne ${WRKSRC}/mnemosyne/pyqt_ui/mnemosyne.exec
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|\(pyqt_ui/mnemosyne\)"|\1.exec"| ; \
+ s|\(share/\)icons|\1pixmaps|' ${WRKSRC}/setup.py
+
+post-build:
+ @${MKDIR} ${WRKDIR}/wrappers
+ @${ECHO_CMD} '#!${SH}' > ${WRKDIR}/wrappers/mnemosyne
+.if ${OPSYS} == FreeBSD && ${fortran_ARGS} == gcc
+ @${ECHO_CMD} 'LD_LIBRARY_PATH="${_GCC_LD_PATH}:$$LD_LIBRARY_PATH"' \
+ >> ${WRKDIR}/wrappers/mnemosyne
+ @${ECHO_CMD} 'export LD_LIBRARY_PATH' >> ${WRKDIR}/wrappers/mnemosyne
+.endif
+ @${ECHO_CMD} 'exec ${PREFIX}/bin/mnemosyne.exec "$$@"' >> ${WRKDIR}/wrappers/mnemosyne
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/wrappers/mnemosyne ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.post.mk>