aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/zim/Makefile
blob: dd1fccb22b835ff4d7f07d7ba1ab077443ba4f7b (plain) (blame)
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
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$

PORTNAME=   zim
DISTVERSION=    0.73.5
CATEGORIES= deskutils python
MASTER_SITES=   https://www.zim-wiki.org/downloads/

MAINTAINER= rm@FreeBSD.org
COMMENT=    Desktop wiki editor

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
        xdg-open:devel/xdg-utils \
        ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}

USES=       desktop-file-utils gettext gnome python:3.3+ shared-mime-info
USE_GNOME=  gtk30 pygobject3
USE_PYTHON= autoplist distutils noflavors

INSTALLS_ICONS= yes
NO_ARCH=    yes

OPTIONS_DEFINE=     DITAA GIT GNUPLOT GNUR GRAPHVIZ LATEX \
            MERCURIAL SCROT

DITAA_DESC=     Diagram editor support
DITAA_RUN_DEPENDS=  ditaa:graphics/ditaa
GIT_DESC=       Version control for notebooks using git
GIT_RUN_DEPENDS=    git:devel/git
GNUPLOT_RUN_DEPENDS=    gnuplot:math/gnuplot
GNUR_DESC=      Support of plot editor based on GNU R
GNUR_RUN_DEPENDS=   R:math/R
GRAPHVIZ_RUN_DEPENDS=   fdp:graphics/graphviz
LATEX_USE=      tex=latex:run
MERCURIAL_DESC=     Version control for notebooks using hg
MERCURIAL_RUN_DEPENDS=  ${PY_MERCURIAL}
SCROT_DESC=     Screenshot taking and inserting support
SCROT_RUN_DEPENDS=  scrot:graphics/scrot

post-patch:
    @${REINPLACE_CMD} -e \
        '/.command.install /s|distutils|setuptools| ; \
         s|share/man|man|' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>