aboutsummaryrefslogtreecommitdiff
path: root/editors/zim/Makefile
blob: 8faa3216bed2868d02a9f50b4f891d162a8ea0ab (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# New ports collection makefile for:	zim
# Date created:		2006-03-21
# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=	zim
PORTVERSION=	0.54
CATEGORIES=	editors python
MASTER_SITES=	http://www.zim-wiki.org/downloads/

MAINTAINER=	acm@FreeBSD.org
COMMENT=	A Desktop Wiki Editor

LICENSE=	GPLv2

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xdg>=0:${PORTSDIR}/devel/py-xdg \
		${LOCALBASE}/bin/xdg-open:${PORTSDIR}/devel/xdg-utils \
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3

INSTALLS_ICONS=	yes
USE_GETTEXT=	yes
USE_GNOME=	desktopfileutils gtk20 pygtk2 pygobject
USE_PYTHON=	2.5-2.7
USE_PYDISTUTILS=	yes

MAN1=		zim.1

OPTIONS=	GNUR "Add support of plot editor based on GNU R" Off \
		LATEX "Add equation editor support" Off \
		GRAPHVIZ "Add diagram editor support" Off \
		SCROT "Add screenshot taking and inserting support" Off \
		GNUPLOT "Add plot editor support" Off \
		BZR "Add version control for notebooks support" Off

.include <bsd.port.pre.mk>

.if defined(WITH_GNUR)
RUN_DEPENDS+=	R:${PORTSDIR}/math/R
.endif
.if defined(WITH_LATEX)
RUN_DEPENDS+=	latex:${PORTSDIR}/print/teTeX-base
.endif
.if defined(WITH_GRAPHVIZ)
RUN_DEPENDS+=	fdp:${PORTSDIR}/graphics/graphviz
.endif
.if defined(WITH_SCROT)
RUN_DEPENDS+=	scrot:${PORTSDIR}/graphics/scrot
.endif
.if defined(WITH_GNUPLOT)
RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
.endif
.if defined(WITH_BZR)
RUN_DEPENDS+=	bzr:${PORTSDIR}/devel/bazaar-ng
.endif

.if ${PYTHON_REL} < 260
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}simplejson>=2.0.9:${PORTSDIR}/devel/py-simplejson
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/setup.py

post-install:
	-@update-desktop-database

.include <bsd.port.post.mk>