Tweak deskutils/nagaina version 0.1.2_10
[dports.git] / deskutils / zim / Makefile
1 # Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2 # $FreeBSD$
3
4 PORTNAME=       zim
5 PORTVERSION=    0.63
6 CATEGORIES=     deskutils python
7 MASTER_SITES=   http://www.zim-wiki.org/downloads/
8
9 MAINTAINER=     rm@FreeBSD.org
10 COMMENT=        Desktop wiki editor
11
12 LICENSE=        GPLv2
13 LICENSE_FILE=   ${WRKSRC}/LICENSE.txt
14
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
18
19 NO_ARCH=        yes
20
21 USES=           desktop-file-utils gettext python:2 shared-mime-info
22 USE_GNOME=      pygtk2
23 USE_PYTHON=     autoplist distutils
24 INSTALLS_ICONS= yes
25
26 OPTIONS_DEFINE=         BZR DITAA GIT GNUPLOT GNUR GRAPHVIZ LATEX \
27                         MERCURIAL SCROT
28
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
44
45 post-patch:
46         @${REINPLACE_CMD} -e \
47                 '/.command.install /s|distutils|setuptools| ; \
48                  s|share/man|man| ; \
49                  /.skip_xdg_cmd = /s|0|1|' \
50                 ${WRKSRC}/setup.py
51         @${REINPLACE_CMD} -e \
52                 's|decode('utf-8')|decode('utf-8','replace')|g' \
53                 ${WRKSRC}/zim/utils.py
54
55 .include <bsd.port.mk>