2017-03-29 02:28:19 +02:00
|
|
|
# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nlohmann-json
|
|
|
|
PORTVERSION= v2.1.1
|
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
2017-04-01 17:23:30 +02:00
|
|
|
PORTREVISION= 1
|
2017-03-29 02:28:19 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= SlavaMikerov@gmail.com
|
|
|
|
COMMENT= JSON library for Modern C++
|
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= nlohmann
|
|
|
|
GH_PROJECT= json
|
|
|
|
|
|
|
|
PLIST_FILES= share/cmake/Modules/nlohmann_jsonConfig.cmake \
|
|
|
|
share/cmake/Modules/nlohmann_jsonConfigVersion.cmake \
|
|
|
|
share/cmake/Modules/nlohmann_jsonTargets.cmake \
|
|
|
|
include/nlohmann/json.hpp
|
|
|
|
|
|
|
|
USES= compiler:c++11-lib cmake:outsource
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
|
|
TEST_CMAKE_OFF= -DBuildTests=OFF
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|set(JSON_CONFIG_DESTINATION "cmake")|set(JSON_CONFIG_DESTINATION "share/cmake/Modules")|g' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
do-test-TEST-on:
|
|
|
|
@cd ${WRKDIR}/.build && ${MAKE_CMD} test
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|