From owner-svn-ports-all@freebsd.org Thu Nov 15 08:17:34 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4B04112CC48; Thu, 15 Nov 2018 08:17:33 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E68C89952; Thu, 15 Nov 2018 08:17:33 +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 1EEC53D65; Thu, 15 Nov 2018 08:17:33 +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 wAF8HXQC002177; Thu, 15 Nov 2018 08:17:33 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAF8HV5G002172; Thu, 15 Nov 2018 08:17:31 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201811150817.wAF8HV5G002172@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Thu, 15 Nov 2018 08:17:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485006 - in head/devel: . docopt.cpp docopt.cpp/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . docopt.cpp docopt.cpp/files X-SVN-Commit-Revision: 485006 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3E68C89952 X-Spamd-Result: default: False [-106.88 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; IP_SCORE(-3.77)[ip: (-9.91), ipnet: 2610:1c1:1::/48(-4.93), asn: 11403(-3.91), country: US(-0.10)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 08:17:34 -0000 Author: yuri Date: Thu Nov 15 08:17:31 2018 New Revision: 485006 URL: https://svnweb.freebsd.org/changeset/ports/485006 Log: New port: devel/docopt.cpp: C++11 options parser based on help messages Added: head/devel/docopt.cpp/ head/devel/docopt.cpp/Makefile (contents, props changed) head/devel/docopt.cpp/distinfo (contents, props changed) head/devel/docopt.cpp/files/ head/devel/docopt.cpp/files/patch-CMakeLists.txt (contents, props changed) head/devel/docopt.cpp/pkg-descr (contents, props changed) head/devel/docopt.cpp/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Nov 15 07:46:53 2018 (r485005) +++ head/devel/Makefile Thu Nov 15 08:17:31 2018 (r485006) @@ -468,6 +468,7 @@ SUBDIR += dmake SUBDIR += dmalloc SUBDIR += dmucs + SUBDIR += docopt.cpp SUBDIR += doctorj SUBDIR += dolphin-plugins SUBDIR += dolphin-plugins-kde4 Added: head/devel/docopt.cpp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/docopt.cpp/Makefile Thu Nov 15 08:17:31 2018 (r485006) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= docopt.cpp +DISTVERSION= 0.6.2-6 +DISTVERSIONSUFFIX= -g7476f8e +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++11 options parser based on help messages + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE-MIT + +TEST_DEPENDS= python${PYTHON_DEFAULT}:lang/python${PYTHON_DEFAULT:S/.//} + +USES= cmake:outsource compiler:c++11-lang +USE_GITHUB= yes +GH_ACCOUNT= docopt +USE_LDCONFIG= yes + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DWITH_TESTS=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + python${PYTHON_DEFAULT} run_tests + +.include Added: head/devel/docopt.cpp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/docopt.cpp/distinfo Thu Nov 15 08:17:31 2018 (r485006) @@ -0,0 +1,3 @@ +TIMESTAMP = 1542265786 +SHA256 (docopt-docopt.cpp-0.6.2-6-g7476f8e_GH0.tar.gz) = 6bb641a2b4502feba7302e7190f4a60537298134d334df6b1e27c5d85ad819bc +SIZE (docopt-docopt.cpp-0.6.2-6-g7476f8e_GH0.tar.gz) = 27080 Added: head/devel/docopt.cpp/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/docopt.cpp/files/patch-CMakeLists.txt Thu Nov 15 08:17:31 2018 (r485006) @@ -0,0 +1,52 @@ +--- CMakeLists.txt.orig 2018-11-15 07:15:24 UTC ++++ CMakeLists.txt +@@ -42,7 +42,7 @@ if(MSVC OR XCODE) + # Xcode does not support libraries with only object files as sources. + # See https://cmake.org/cmake/help/v3.0/command/add_library.html?highlight=add_library + add_library(docopt SHARED ${docopt_SOURCES} ${docopt_HEADERS}) +- add_library(docopt_s STATIC ${docopt_SOURCES} ${docopt_HEADERS}) ++ #add_library(docopt_s STATIC ${docopt_SOURCES} ${docopt_HEADERS}) + else() + # If not using MSVC or Xcode, we will create an intermediate object target + # to avoid compiling the source code twice. +@@ -50,11 +50,11 @@ else() + set_target_properties(docopt_o PROPERTIES POSITION_INDEPENDENT_CODE TRUE) + + add_library(docopt SHARED $) +- add_library(docopt_s STATIC $) ++ #add_library(docopt_s STATIC $) + endif() + + target_include_directories(docopt PUBLIC $ $) +-target_include_directories(docopt_s PUBLIC $ $) ++#target_include_directories(docopt_s PUBLIC $ $) + + if(MSVC) + # DOCOPT_DLL: Must be specified when building *and* when using the DLL. +@@ -67,7 +67,7 @@ endif() + + if(NOT MSVC) + set_target_properties(docopt PROPERTIES OUTPUT_NAME docopt) +- set_target_properties(docopt_s PROPERTIES OUTPUT_NAME docopt) ++ #set_target_properties(docopt_s PROPERTIES OUTPUT_NAME docopt) + endif() + + if(USE_BOOST_REGEX) +@@ -79,7 +79,7 @@ if(USE_BOOST_REGEX) + include_directories(${Boost_INCLUDE_DIRS}) + target_link_libraries(docopt ${Boost_LIBRARIES}) + if(WITH_STATIC) +- target_link_libraries(docopt_s ${Boost_LIBRARIES}) ++ #target_link_libraries(docopt_s ${Boost_LIBRARIES}) + endif() + endif() + +@@ -116,7 +116,7 @@ set(export_name "docopt-targets") + install(TARGETS docopt EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + # Development package +-install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++#install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR}) + install(FILES ${docopt_HEADERS} DESTINATION include/docopt) + + # CMake Package Added: head/devel/docopt.cpp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/docopt.cpp/pkg-descr Thu Nov 15 08:17:31 2018 (r485006) @@ -0,0 +1,5 @@ +docopt.cpp generates an option parser based on help messages in man-like style. +It eliminates the need to write the repeatable parser code, and instead works +off of help messages. + +WWW: https://github.com/docopt/docopt.cpp Added: head/devel/docopt.cpp/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/docopt.cpp/pkg-plist Thu Nov 15 08:17:31 2018 (r485006) @@ -0,0 +1,9 @@ +include/docopt/docopt.h +include/docopt/docopt_private.h +include/docopt/docopt_util.h +include/docopt/docopt_value.h +lib/cmake/docopt/docopt-config-version.cmake +lib/cmake/docopt/docopt-config.cmake +lib/cmake/docopt/docopt-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/docopt/docopt-targets.cmake +lib/libdocopt.so