blob: ed2fe042f46611477890dd431b81e1240b22ebed (
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
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: treeline
# Date created: Wed Jul 7 20:50:24 CEST 2004
# Whom: Tobias Roth <ports@fsck.ch>
#
# $FreeBSD$
#
PORTNAME= treeline
PORTVERSION= 1.0.2
PORTREVISION= 1
CATEGORIES= deskutils python
MASTER_SITES= http://www.bellz.org/treeline/ \
http://depot.fsck.ch/mirror/distfiles/
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@fsck.ch
COMMENT= TreeLine is a structured information storage program
BUILD_DEPENDS= pyuic:${PORTSDIR}/x11-toolkits/py-qt
RUN_DEPENDS= ${BUILD_DEPENDS}
OPTIONS= ASPELL "install with aspell support" off \
ISPELL "install with ispell support" off \
PYXML "use pythons py-xml instead of textproc/expat2" on \
HTTPLOAD "install httpLoad plugin" off \
TYPESEARCH "install typesearch plugin" off
WRKSRC= ${WRKDIR}/TreeLine
USE_QT_VER= 3
USE_PYTHON= 2.3+
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if defined(WITH_ASPELL)
BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
.endif
.if defined(WITH_ISPELL)
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.endif
.if defined(WITHOUT_PYXML)
LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
.endif
.if defined(WITH_HTTPLOAD)
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} httpload.py
PLIST_SUB+= HTTPLOAD=""
.else
PLIST_SUB+= HTTPLOAD="@comment "
.endif
.if defined(WITH_TYPESEARCH)
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} typesearch.py
PLIST_SUB+= TYPESEARCH=""
.else
PLIST_SUB+= TYPESEARCH="@comment "
.endif
do-install:
@cd ${WRKSRC} && ${PYTHON_CMD} install.py \
-p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons -x
.if defined(WITH_HTTPLOAD)
@${INSTALL_DATA} ${DISTDIR}/httpload.py ${PREFIX}/lib/${PORTNAME}/plugins/
.endif
.if defined(WITH_TYPESEARCH)
@${INSTALL_DATA} ${DISTDIR}/typesearch.py ${PREFIX}/lib/${PORTNAME}/plugins/
.endif
post-install:
${RM} ${DOCSDIR}/INSTALL ${DOCSDIR}/LICENSE
.if defined(NOPORTDOCS)
${RM} ${DOCSDIR}/*
${RMDIR} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|