Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2021 22:10:44 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561114 - in head/devel: . fire-hpp fire-hpp/files
Message-ID:  <202101102210.10AMAib3031483@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Jan 10 22:10:43 2021
New Revision: 561114
URL: https://svnweb.freebsd.org/changeset/ports/561114

Log:
  New port: devel/fire-hpp: C++ single header library to create a CLI from a function signature

Added:
  head/devel/fire-hpp/
  head/devel/fire-hpp/Makefile   (contents, props changed)
  head/devel/fire-hpp/distinfo   (contents, props changed)
  head/devel/fire-hpp/files/
  head/devel/fire-hpp/files/patch-tests_CMakeLists.txt   (contents, props changed)
  head/devel/fire-hpp/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jan 10 22:03:05 2021	(r561113)
+++ head/devel/Makefile	Sun Jan 10 22:10:43 2021	(r561114)
@@ -644,6 +644,7 @@
     SUBDIR += fc++
     SUBDIR += fhist
     SUBDIR += fifechan
+    SUBDIR += fire-hpp
     SUBDIR += firmware-utils
     SUBDIR += fistgen
     SUBDIR += flang

Added: head/devel/fire-hpp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/fire-hpp/Makefile	Sun Jan 10 22:10:43 2021	(r561114)
@@ -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>

Added: head/devel/fire-hpp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/fire-hpp/distinfo	Sun Jan 10 22:10:43 2021	(r561114)
@@ -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

Added: head/devel/fire-hpp/files/patch-tests_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/fire-hpp/files/patch-tests_CMakeLists.txt	Sun Jan 10 22:10:43 2021	(r561114)
@@ -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)

Added: head/devel/fire-hpp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/fire-hpp/pkg-descr	Sun Jan 10 22:10:43 2021	(r561114)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101102210.10AMAib3031483>