2013-02-14 20:53:27 +01:00
|
|
|
# Created by: Tobias Roth <ports@fsck.ch>
|
2004-07-14 00:49:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= treeline
|
2012-01-23 21:17:28 +01:00
|
|
|
PORTVERSION= 1.4.1
|
2013-02-03 19:16:54 +01:00
|
|
|
PORTREVISION= 5
|
2004-07-14 00:49:36 +02:00
|
|
|
CATEGORIES= deskutils python
|
2012-01-23 21:17:28 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/:treeline \
|
2008-08-17 02:57:00 +02:00
|
|
|
http://treeline.bellz.org/plugins/:plugins \
|
|
|
|
http://depot.fsck.ch/mirror/distfiles/:treeline,plugins
|
2010-10-25 01:29:10 +02:00
|
|
|
MASTER_SITE_SUBDIR=treeline/:treeline
|
2008-08-17 02:57:00 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:treeline
|
2006-01-08 19:16:15 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2004-07-14 00:49:36 +02:00
|
|
|
|
2011-03-23 17:58:01 +01:00
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
2013-02-14 20:53:27 +01:00
|
|
|
COMMENT= Structured information storage program
|
2004-07-14 00:49:36 +02:00
|
|
|
|
2012-01-23 21:17:28 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-02-14 20:53:27 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}qt4-network>=0:${PORTSDIR}/net/py-qt4-network
|
2004-07-14 00:49:36 +02:00
|
|
|
|
2006-01-08 19:16:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/TreeLine
|
2012-06-06 13:41:50 +02:00
|
|
|
USE_QT4= # empty
|
2011-02-25 01:12:12 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2006-01-08 19:16:15 +01:00
|
|
|
NO_BUILD= yes
|
2010-09-30 06:27:12 +02:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES= "TreeLine" "Structured information storage program" \
|
|
|
|
"${DATADIR}/icons/tree/treeline.png" "treeline" \
|
|
|
|
"Utility;" false
|
2006-01-08 19:16:15 +01:00
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
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
|
|
|
|
|
2012-01-23 21:17:28 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-01-08 19:16:15 +01:00
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2004-07-14 00:49:36 +02:00
|
|
|
BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
|
|
|
|
.endif
|
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MISPELL}
|
2004-07-14 00:49:36 +02:00
|
|
|
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
.endif
|
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.if !${PORT_OPTIONS:MPYXML}
|
2013-02-14 20:53:27 +01:00
|
|
|
LIB_DEPENDS+= expat:${PORTSDIR}/textproc/expat2
|
2004-07-14 00:49:36 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MHTTPLOAD}
|
2008-08-17 02:57:00 +02:00
|
|
|
DISTFILES+= httpload2.py:plugins
|
2006-01-08 19:16:15 +01:00
|
|
|
PLIST_SUB+= HTTPLOAD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HTTPLOAD="@comment "
|
|
|
|
.endif
|
2004-07-14 00:49:36 +02:00
|
|
|
|
|
|
|
do-install:
|
2005-02-09 09:48:12 +01:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} install.py \
|
|
|
|
-p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons -x
|
2012-06-08 00:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MHTTPLOAD}
|
2010-09-30 06:27:12 +02:00
|
|
|
@${INSTALL_DATA} -d ${PREFIX}/lib/${PORTNAME}/plugins/
|
2008-08-17 02:57:00 +02:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/httpload2.py ${PREFIX}/lib/${PORTNAME}/plugins/
|
2007-06-22 08:36:25 +02:00
|
|
|
.endif
|
2004-07-14 00:49:36 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${RM} ${DOCSDIR}/INSTALL ${DOCSDIR}/LICENSE
|
2012-06-08 00:44:21 +02:00
|
|
|
.if !${PORT_OPTIONS:MDOCS}
|
2004-07-14 00:49:36 +02:00
|
|
|
${RM} ${DOCSDIR}/*
|
|
|
|
${RMDIR} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2012-01-23 21:17:28 +01:00
|
|
|
.include <bsd.port.mk>
|