2933bb22c3
- Update PyQt to 5.15.0, py-sip to 4.19.24 and qscintilla2 to 2.11.5 - Use pypi for PYQT [1] - Add devel/py-qt5-sip (Don't use it for now. It will be used in future updates of PyQt with py-sip >= 5) - Add missing py-qt5 ports: comms/py-qt5-sensors, devel/py-qt5-location, devel/py-qt5-remoteobjects, net/py-qt5-networkauth - Strip libs - Refactor *_PATH and *_PORT parts [1] RiverBankComputing doesn't offer links to download latest version of some ports PR: 247369 Reviewed by: tcberner Differential Revision: https://reviews.freebsd.org/D25749 Exp-run by: antoine
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# Created by: Tobias Roth <ports@fsck.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= treeline
|
|
PORTVERSION= 3.1.3
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
|
|
|
|
USES= python:3.5+ pyqt:5 shebangfix
|
|
USE_PYQT= core gui network printsupport widgets 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>
|