summaryrefslogtreecommitdiff
path: root/deskutils/treeline/Makefile
blob: b2a6e1d215c4bbd92ea79aea70891a65a1e937b5 (plain)
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
69
# Created by: Tobias Roth <ports@fsck.ch>
# $FreeBSD$

PORTNAME=	treeline
PORTVERSION=	1.4.1
PORTREVISION=	5
CATEGORIES=	deskutils python
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}/:treeline \
		http://treeline.bellz.org/plugins/:plugins \
		http://depot.fsck.ch/mirror/distfiles/:treeline,plugins
MASTER_SITE_SUBDIR=treeline/:treeline
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:treeline
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	pawel@FreeBSD.org
COMMENT=	Structured information storage program

LICENSE=	GPLv2

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui \
		${PYTHON_PKGNAMEPREFIX}qt4-network>=0:${PORTSDIR}/net/py-qt4-network

WRKSRC=		${WRKDIR}/TreeLine
USE_QT4=	# empty
USE_PYTHON=	2.5+
NO_BUILD=	yes

DESKTOP_ENTRIES=	"TreeLine" "Structured information storage program" \
			"${DATADIR}/icons/tree/treeline.png" "treeline" \
			"Utility;" false

OPTIONS_DEFINE=		HTTPLOAD PYXML
OPTIONS_SINGLE=		SPELLER
OPTIONS_SINGLE_SPELLER=	ASPELL ISPELL

ASPELL_DESC=	Install with aspell support
HTTPLOAD_DESC=	Install httpLoad plugin
ISPELL_DESC=	Install with ispell support
PYXML_DESC=	Use pythons py-xml instead of textproc/expat2

OPTIONS_DEFAULT=	ASPELL PYXML
OPTIONS_SUB=		yes

ASPELL_BUILD_DEPENDS=	aspell:${PORTSDIR}/textproc/aspell
HTTPLOAD_DISTFILES=	httpload2.py:plugins
ISPELL_BUILD_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell

.include <bsd.port.options.mk>

.if !${PORT_OPTIONS:MPYXML}
LIB_DEPENDS+=	expat:${PORTSDIR}/textproc/expat2
.endif

do-install:
	@cd ${WRKSRC} && ${PYTHON_CMD} install.py \
	-p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons -x
.if ${PORT_OPTIONS:MHTTPLOAD}
	@${INSTALL_DATA} -d ${PREFIX}/lib/${PORTNAME}/plugins/
	@${INSTALL_DATA} ${DISTDIR}/httpload2.py ${PREFIX}/lib/${PORTNAME}/plugins/
.endif

post-install:
	${RM} ${DOCSDIR}/INSTALL ${DOCSDIR}/LICENSE
.if !${PORT_OPTIONS:MDOCS}
	${RM} ${DOCSDIR}/*
	${RMDIR} ${DOCSDIR}
.endif

.include <bsd.port.mk>