1
0
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:
Yuri Victorovich 2021-01-10 22:10:43 +00:00
parent b62880f49e
commit 03d5731513
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561114
5 changed files with 66 additions and 0 deletions

View File

@ -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
View 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
View 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

View 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
View 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