1 # Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
6 CATEGORIES= deskutils python
7 MASTER_SITES= http://www.zim-wiki.org/downloads/
9 MAINTAINER= rm@FreeBSD.org
10 COMMENT= Desktop wiki editor
13 LICENSE_FILE= ${WRKSRC}/LICENSE.txt
15 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xdg>0:${PORTSDIR}/devel/py-xdg \
16 xdg-open:${PORTSDIR}/devel/xdg-utils \
17 ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
21 USES= desktop-file-utils gettext python:2 shared-mime-info
23 USE_PYTHON= autoplist distutils
26 OPTIONS_DEFINE= BZR DITAA GIT GNUPLOT GNUR GRAPHVIZ LATEX \
29 DITAA_DESC= Diagram editor support
30 DITAA_RUN_DEPENDS= ditaa:${PORTSDIR}/graphics/ditaa
31 BZR_DESC= Version control for notebooks using bzr
32 BZR_RUN_DEPENDS= bzr:${PORTSDIR}/devel/bzr
33 GIT_DESC= Version control for notebooks using git
34 GIT_RUN_DEPENDS= git:${PORTSDIR}/devel/git
35 GNUPLOT_RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
36 GNUR_DESC= Support of plot editor based on GNU R
37 GNUR_RUN_DEPENDS= R:${PORTSDIR}/math/R
38 GRAPHVIZ_RUN_DEPENDS= fdp:${PORTSDIR}/graphics/graphviz
39 LATEX_USE= tex=latex:run
40 MERCURIAL_DESC= Version control for notebooks using hg
41 MERCURIAL_RUN_DEPENDS= hg:${PORTSDIR}/devel/mercurial
42 SCROT_DESC= Screenshot taking and inserting support
43 SCROT_RUN_DEPENDS= scrot:${PORTSDIR}/graphics/scrot
46 @${REINPLACE_CMD} -e \
47 '/.command.install /s|distutils|setuptools| ; \
49 /.skip_xdg_cmd = /s|0|1|' \
51 @${REINPLACE_CMD} -e \
52 's|decode('utf-8')|decode('utf-8','replace')|g' \
53 ${WRKSRC}/zim/utils.py
55 .include <bsd.port.mk>