blob: 89b3f6b13f34cdfc494f5fd88f011aa61a24639f (
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
|
PORTNAME= treeline
PORTVERSION= 3.1.4
PORTREVISION= 3
CATEGORIES= deskutils python
MASTER_SITES= https://github.com/doug-101/TreeLine/releases/download/v${PORTVERSION}/ \
SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Structured information storage program
WWW= https://treeline.bellz.org
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
USES= python:3.5+ pyqt:5 shebangfix
USE_PYQT= pyqt5 sip
SHEBANG_FILES= source/treeline.py
CONFIGURE_ARGS= -b ${STAGEDIR} -p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/TreeLine
OPTIONS_DEFINE= DOCS NLS
SPELL_DESC= Spell check support
OPTIONS_SINGLE= SPELL
OPTIONS_SINGLE_SPELL= ASPELL HUNSPELL ISPELL
OPTIONS_DEFAULT= ASPELL
OPTIONS_SUB= yes
ASPELL_BUILD_DEPENDS= aspell:textproc/aspell
ASPELL_RUN_DEPENDS= aspell:textproc/aspell
ASPELL_VARS= SPELL_ENGINE=aspell
HUNSPELL_BUILD_DEPENDS= hunspell:textproc/hunspell
HUNSPELL_RUN_DEPENDS= hunspell:textproc/hunspell
HUNSPELL_VARS= SPELL_ENGINE=hunspell
ISPELL_BUILD_DEPENDS= ispell:textproc/aspell-ispell
ISPELL_RUN_DEPENDS= ispell:textproc/aspell-ispell
ISPELL_VARS= SPELL_ENGINE=ispell
NLS_CONFIGURE_OFF= -s
post-patch:
@${REINPLACE_CMD} -e 's|%%SPELL_ENGINE%%|${SPELL_ENGINE}|' \
${WRKSRC}/install.py \
${WRKSRC}/source/spellcheck.py
do-install:
(cd ${WRKSRC} && ${PYTHON_CMD} install.py ${CONFIGURE_ARGS})
(cd ${STAGEDIR}${PREFIX} && \
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${DATADIR} -f ${DATADIR_REL})
(cd ${STAGEDIR}${DATADIR} && ${RM} *.bak *.orig *.pro *.spec)
(cd ${STAGEDIR}${DOCSDIR} && ${RM} INSTALL LICENSE)
.include <bsd.port.mk>
|