Files
rsadowski e8035d4760 Update CMake to 4.1.2
Major update from 3.31.8 to 4.1.2.

CMake 4.0 introduces a breaking change: compatibility with versions older than
3.5 has been removed. Projects calling cmake_minimum_required() or
cmake_policy() with versions < 3.5 now error out.

To maintain compatibility with existing ports during the transition, the cmake
module now provides MODCMAKE_POLICY_VERSION_OVERRIDE (idea from sthen@)
support:

- MODCMAKE_POLICY_VERSION_OVERRIDE ?= No
- MODCMAKE_POLICY_VERSION_OVERRIDE_VER ?= 3.5

When MODCMAKE_POLICY_VERSION_OVERRIDE is set to "yes", CMake is instructed to
accept policy versions down to the specified minimum (default 3.5) via
-DCMAKE_POLICY_VERSION_MINIMUM. This allows older ports to build while
acknowledging they may use deprecated features.

https://cmake.org/cmake/help/latest/release/4.0.html
https://cmake.org/cmake/help/latest/release/4.1.html

OK sthen@
2026-02-13 12:02:13 +00:00

62 lines
1.9 KiB
Makefile

COMMENT = command line todo list manager
VERSION = 2.6.2
DISTNAME = task-${VERSION}
PKGNAME = taskwarrior-${VERSION}
CATEGORIES = productivity
REVISION = 1
HOMEPAGE = https://www.taskwarrior.org/
SITES = https://www.taskwarrior.org/download/
# MIT
PERMIT_PACKAGE = Yes
# Needs C++11; linker issues with clang
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
lang/lua \
lang/python
MODLUA_SA = Yes
MODPY_RUNDEP = No
WANTLIB += c gnutls m pthread ${COMPILER_LIBCXX}
LIB_DEPENDS = security/gnutls
CONFIGURE_STYLE = cmake
CONFIGURE_ARGS += -DTASK_DOCDIR=share/doc/taskwarrior \
-DTASK_MAN1DIR=man/man1 \
-DTASK_MAN5DIR=man/man5 \
-Ddoc_FILES="README.md"
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
NO_TEST = Yes
pre-configure:
sed -i 's,/usr/local/share/doc/task-VERSION/,${PREFIX}/share/doc/taskwarrior/,g' \
${WRKSRC}/scripts/vim/README
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions
${INSTALL_DATA_DIR} ${PREFIX}/share/fish/vendor_completions.d
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/bash/task.sh \
${PREFIX}/share/bash-completion/completions/task
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/fish/task.fish \
${PREFIX}/share/fish/vendor_completions.d/
${INSTALL_DATA_DIR} ${PREFIX}/share/vim/vimfiles/{ftdetect,syntax}
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/vim/ftdetect/task.vim \
${PREFIX}/share/vim/vimfiles/ftdetect/
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/vim/syntax/taskdata.vim \
${PREFIX}/share/vim/vimfiles/syntax/
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/vim/syntax/taskedit.vim \
${PREFIX}/share/vim/vimfiles/syntax/
${INSTALL_DATA} ${PREFIX}/share/doc/taskwarrior/scripts/vim/syntax/taskrc.vim \
${PREFIX}/share/vim/vimfiles/syntax/
rm -r ${PREFIX}/share/doc/taskwarrior/scripts/{vim,bash,fish}
.include <bsd.port.mk>