blob: 8e8587cce5e4f19b7eac21b72e9862e61baddc01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Beech Rintoul <beech@FreeBSD.org>
# $FreeBSD$
PORTNAME= mnemosyne
PORTVERSION= 2.3.6
PORTEPOCH= 1
CATEGORIES= games python
MASTER_SITES= SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Mnemosyne-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Flash-card tool which optimises your learning process
LICENSE= LGPL3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-sql>=4.5:databases/py-qt4-sql \
${PYTHON_PKGNAMEPREFIX}qt4-network>=4.5:net/py-qt4-network \
${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.5:www/py-qt4-webkit \
${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.5:x11-toolkits/py-qt4-gui \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}matplotlib>=1.2.0:math/py-matplotlib \
${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2:www/py-cherrypy \
${PYTHON_PKGNAMEPREFIX}webob>=1.2.2:www/py-webob
USES= fortran python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
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>
|