From owner-svn-ports-head@freebsd.org Sun Jan 10 22:10:45 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 26C724DBC56; Sun, 10 Jan 2021 22:10:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDWHn0fNPz3nPS; Sun, 10 Jan 2021 22:10:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 097D27BAD; Sun, 10 Jan 2021 22:10:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10AMAiHq031488; Sun, 10 Jan 2021 22:10:44 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10AMAib3031483; Sun, 10 Jan 2021 22:10:44 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202101102210.10AMAib3031483@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 10 Jan 2021 22:10:44 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . fire-hpp fire-hpp/files X-SVN-Commit-Revision: 561114 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2021 22:10:45 -0000 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 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