mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
New port: devel/fire-hpp: C++ single header library to create a CLI from a function signature
This commit is contained in:
parent
b62880f49e
commit
03d5731513
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561114
@ -644,6 +644,7 @@
|
||||
SUBDIR += fc++
|
||||
SUBDIR += fhist
|
||||
SUBDIR += fifechan
|
||||
SUBDIR += fire-hpp
|
||||
SUBDIR += firmware-utils
|
||||
SUBDIR += fistgen
|
||||
SUBDIR += flang
|
||||
|
35
devel/fire-hpp/Makefile
Normal file
35
devel/fire-hpp/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= fire-hpp
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.2
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= C++ single header library to create a CLI from a function signature
|
||||
|
||||
LICENSE= BSL
|
||||
LICENSE_FILE= ${WRKSRC}/LICENCE
|
||||
|
||||
TEST_DEPENDS= googletest>0:devel/googletest
|
||||
|
||||
USES= cmake localbase:ldflags # localbase only for tests but localbase doesn't have the 'test' argument
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= kongaskristjan
|
||||
|
||||
CMAKE_OFF= FIRE_EXAMPLES FIRE_UNIT_TESTS
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= include/fire-hpp/fire.hpp \
|
||||
lib/cmake/fire-hpp/fire-hpp-config.cmake
|
||||
|
||||
do-test:
|
||||
@cd ${BUILD_WRKSRC} && \
|
||||
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFIRE_UNIT_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
|
||||
${BUILD_WRKSRC}/tests/run_tests
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/fire-hpp/distinfo
Normal file
3
devel/fire-hpp/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1610314276
|
||||
SHA256 (kongaskristjan-fire-hpp-v0.2_GH0.tar.gz) = 50ac76005e5d45590355a51e5e1b62aba65c56f2003335acce0370da13d77b28
|
||||
SIZE (kongaskristjan-fire-hpp-v0.2_GH0.tar.gz) = 24841
|
23
devel/fire-hpp/files/patch-tests_CMakeLists.txt
Normal file
23
devel/fire-hpp/files/patch-tests_CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
- https://gitlab.kitware.com/cmake/cmake/-/issues/21686
|
||||
- https://github.com/kongaskristjan/fire-hpp/issues/11
|
||||
|
||||
--- tests/CMakeLists.txt.orig 2021-01-10 21:55:57 UTC
|
||||
+++ tests/CMakeLists.txt
|
||||
@@ -6,7 +6,7 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.11.0")
|
||||
include(GoogleTest)
|
||||
|
||||
enable_testing()
|
||||
-
|
||||
+if (FALSE)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
@@ -18,7 +18,7 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.11.0")
|
||||
FetchContent_Populate(googletest)
|
||||
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
-
|
||||
+endif()
|
||||
add_executable(run_tests tests.cpp)
|
||||
target_link_libraries(run_tests fire-hpp gtest gtest_main)
|
||||
gtest_discover_tests(run_tests)
|
4
devel/fire-hpp/pkg-descr
Normal file
4
devel/fire-hpp/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Fire for C++, inspired by python-fire, is a single header library that creates
|
||||
a command line interface from a function signature.
|
||||
|
||||
WWW: https://github.com/kongaskristjan/fire-hpp
|
Loading…
Reference in New Issue
Block a user