View | Details | Raw Unified | Return to bug 203798 | Differences between
and this patch

Collapse All | Expand All

(-)games/py-mnemosyne/Makefile (-5 / +45 lines)
Lines 3-25 Link Here
3
3
4
PORTNAME=	mnemosyne
4
PORTNAME=	mnemosyne
5
PORTVERSION=	2.3.5
5
PORTVERSION=	2.3.5
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	games python
8
CATEGORIES=	games python
8
MASTER_SITES=	SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
9
MASTER_SITES=	SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${PORTVERSION}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
DISTNAME=	Mnemosyne-${DISTVERSION}
11
DISTNAME=	Mnemosyne-${PORTVERSION}
11
12
12
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	Flash-card tool which optimises your learning process
14
COMMENT=	Flash-card tool which optimises your learning process
14
15
15
LICENSE=	LGPL3
16
LICENSE=	LGPL3
16
17
17
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qt4>=4.5:${PORTSDIR}/devel/py-qt4 \
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qt4-sql>=4.5:${PORTSDIR}/databases/py-qt4-sql \
19
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
18
		${PYTHON_PKGNAMEPREFIX}matplotlib>=1.2.0:${PORTSDIR}/math/py-matplotlib \
20
		${PYTHON_PKGNAMEPREFIX}matplotlib>=1.2.0:${PORTSDIR}/math/py-matplotlib \
21
		${PYTHON_PKGNAMEPREFIX}qt4-network>=4.5:${PORTSDIR}/net/py-qt4-network \
19
		${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2:${PORTSDIR}/www/py-cherrypy \
22
		${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2:${PORTSDIR}/www/py-cherrypy \
20
		${PYTHON_PKGNAMEPREFIX}webob>=1.2.2:${PORTSDIR}/www/py-webob
23
		${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.5:${PORTSDIR}/www/py-qt4-webkit \
24
		${PYTHON_PKGNAMEPREFIX}webob>=1.2.2:${PORTSDIR}/www/py-webob \
25
		${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.5:${PORTSDIR}/x11-toolkits/py-qt4-gui
21
26
22
USES=		python
27
NO_ARCH=	yes
28
29
USES=		fortran python
23
USE_PYTHON=	distutils autoplist
30
USE_PYTHON=	distutils autoplist
24
31
32
PLIST_FILES=	bin/mnemosyne
33
34
.include <bsd.port.options.mk>
35
36
post-extract:
37
	@${LN} -sf mnemosyne ${WRKSRC}/mnemosyne/pyqt_ui/mnemosyne.exec
38
39
post-patch:
40
	@${REINPLACE_CMD} -e \
41
		's|\(pyqt_ui/mnemosyne\)"|\1.exec"| ; \
42
		 s|\(share/\)icons|\1pixmaps|' ${WRKSRC}/setup.py
43
44
post-build:
45
	@${MKDIR} ${WRKDIR}/wrappers
46
	@${ECHO_CMD} -n \
47
		> ${WRKDIR}/wrappers/mnemosyne
48
.if ${OPSYS} == FreeBSD # && ${FC:Mgfortran*}!=""
49
	@${ECHO_CMD} '#!${SH}' \
50
		>> ${WRKDIR}/wrappers/mnemosyne
51
	@${ECHO_CMD} 'LD_LIBRARY_PATH="${LOCALBASE}/lib/${FC:S/fortran/cc/}:$$LD_LIBRARY_PATH"' \
52
		>> ${WRKDIR}/wrappers/mnemosyne
53
	@${ECHO_CMD} 'export LD_LIBRARY_PATH' \
54
		>> ${WRKDIR}/wrappers/mnemosyne
55
	@${ECHO_CMD} \
56
		>> ${WRKDIR}/wrappers/mnemosyne
57
.endif
58
	@${ECHO_CMD} 'exec ${PREFIX}/bin/mnemosyne.exec "$$@"' \
59
		>> ${WRKDIR}/wrappers/mnemosyne
60
61
post-install:
62
	(cd ${WRKDIR}/wrappers && ${INSTALL_SCRIPT} mnemosyne \
63
		${STAGEDIR}${PREFIX}/bin)
64
25
.include <bsd.port.mk>
65
.include <bsd.port.mk>

Return to bug 203798