svn commit: r550083 - head/devel/nlohmann-json
Mateusz Piotrowski
0mp at FreeBSD.org
Fri Sep 25 21:18:31 UTC 2020
Author: 0mp
Date: Fri Sep 25 21:18:30 2020
New Revision: 550083
URL: https://svnweb.freebsd.org/changeset/ports/550083
Log:
devel/nlohmann-json: Install include/nlohmann/json_fwd.hpp
This header file is required by future versions of sysutils/nix.
In order to get that header installed, the JSON_MultipleHeaders option had
to be enable. This option results in the build system installing a lot of
other header files as well. As there is no need to ship those other headers
at the moment, let's delete them in post-install.
PR: 249895
Approved by: yuri@ (maintainer)
Modified:
head/devel/nlohmann-json/Makefile
Modified: head/devel/nlohmann-json/Makefile
==============================================================================
--- head/devel/nlohmann-json/Makefile Fri Sep 25 20:32:31 2020 (r550082)
+++ head/devel/nlohmann-json/Makefile Fri Sep 25 21:18:30 2020 (r550083)
@@ -4,6 +4,7 @@
PORTNAME= json
DISTVERSIONPREFIX= v
DISTVERSION= 3.9.1
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= nlohmann-
@@ -20,13 +21,19 @@ GH_ACCOUNT= nlohmann
NO_BUILD= yes
NO_ARCH= yes
+CMAKE_ON= JSON_MultipleHeaders
CMAKE_OFF= JSON_BuildTests
PLIST_FILES= lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake \
lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake \
lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake \
libdata/pkgconfig/nlohmann_json.pc \
- include/nlohmann/json.hpp
+ include/nlohmann/json.hpp \
+ include/nlohmann/json_fwd.hpp
+
+post-install:
+ @${FIND} ${STAGEDIR}${PREFIX}/include/nlohmann \
+ ! -name json.hpp -and ! -name json_fwd.hpp -delete
do-test:
@cd ${BUILD_WRKSRC} && \
More information about the svn-ports-head
mailing list