From owner-svn-ports-all@freebsd.org Sat Jun 16 22:08:55 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 09CC61000433; Sat, 16 Jun 2018 22:08:55 +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 A439471820; Sat, 16 Jun 2018 22:08:54 +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 82C5947C6; Sat, 16 Jun 2018 22:08:54 +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 w5GM8sri030200; Sat, 16 Jun 2018 22:08:54 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5GM8qCK030189; Sat, 16 Jun 2018 22:08:52 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201806162208.w5GM8qCK030189@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 16 Jun 2018 22:08:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472572 - in head/devel: . cpp2py cpp2py/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . cpp2py cpp2py/files X-SVN-Commit-Revision: 472572 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 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: Sat, 16 Jun 2018 22:08:55 -0000 Author: yuri Date: Sat Jun 16 22:08:52 2018 New Revision: 472572 URL: https://svnweb.freebsd.org/changeset/ports/472572 Log: New port: devel/cpp2py: Reflection tools based on clang Added: head/devel/cpp2py/ head/devel/cpp2py/Makefile (contents, props changed) head/devel/cpp2py/distinfo (contents, props changed) head/devel/cpp2py/files/ head/devel/cpp2py/files/patch-CMakeLists.txt (contents, props changed) head/devel/cpp2py/files/patch-cmake_CMakeLists.txt (contents, props changed) head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake (contents, props changed) head/devel/cpp2py/pkg-descr (contents, props changed) head/devel/cpp2py/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Jun 16 21:53:46 2018 (r472571) +++ head/devel/Makefile Sat Jun 16 22:08:52 2018 (r472572) @@ -353,6 +353,7 @@ SUBDIR += cpan-upload-http SUBDIR += cpp-hocon SUBDIR += cpp-netlib + SUBDIR += cpp2py SUBDIR += cppcheck SUBDIR += cppcheck-gui SUBDIR += cppi @@ -1177,12 +1178,12 @@ SUBDIR += hs-typed-process SUBDIR += hs-unamb SUBDIR += hs-unexceptionalio + SUBDIR += hs-unicode-show SUBDIR += hs-uniplate SUBDIR += hs-unix-compat SUBDIR += hs-unix-time SUBDIR += hs-unliftio SUBDIR += hs-unliftio-core - SUBDIR += hs-unicode-show SUBDIR += hs-unordered-containers SUBDIR += hs-utf8-light SUBDIR += hs-utf8-string @@ -1289,8 +1290,8 @@ SUBDIR += kdevelop-kde4 SUBDIR += kdevelop-pg-qt SUBDIR += kdevelop-pg-qt-kde4 - SUBDIR += kdevelop-php-kde4 SUBDIR += kdevelop-php-docs-kde4 + SUBDIR += kdevelop-php-kde4 SUBDIR += kdevplatform-kde4 SUBDIR += kf5-extra-cmake-modules SUBDIR += kf5-kapidox Added: head/devel/cpp2py/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/Makefile Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= cpp2py +DISTVERSION= 1.5-19 +DISTVERSIONSUFFIX= -g5fd079c +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Reflection tools based on clang + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING.txt + +PY_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} \ + llvm${LLVM_VER}>0:devel/llvm${LLVM_VER} +RUN_DEPENDS= ${PY_DEPENDS} \ + llvm${LLVM_VER}>0:devel/llvm${LLVM_VER} + +USES= cmake:outsource compiler:c++14-lang python:2.7 shebangfix +USE_GITHUB= yes +GH_ACCOUNT= TRIQS +SHEBANG_FILES= bin/c* +CMAKE_ARGS= -DPYTHON_INTERPRETER:STRING=${PYTHON_CMD} \ + -DFREEBSD_LLVM_VER:STRING=${LLVM_VER} +USE_LDCONFIG= yes + +LLVM_VER= 60 + +post-install: # there's some kind of confusion between cmake's MODULE and CONFIG modes + @cd ${STAGEDIR}${PREFIX}/share/cmake/Modules && ${CP} Cpp2PyConfig.cmake FindCpp2Py.cmake # can't be found without this + +.include Added: head/devel/cpp2py/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/distinfo Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,3 @@ +TIMESTAMP = 1529178465 +SHA256 (TRIQS-cpp2py-1.5-19-g5fd079c_GH0.tar.gz) = d989a9a76ad8a326331705263021222e3adb1fd0c83ee1ce7e89bb220b00e2d7 +SIZE (TRIQS-cpp2py-1.5-19-g5fd079c_GH0.tar.gz) = 81459 Added: head/devel/cpp2py/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/files/patch-CMakeLists.txt Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,23 @@ +--- CMakeLists.txt.orig 2018-06-04 12:58:14 UTC ++++ CMakeLists.txt +@@ -24,14 +24,14 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SO + # log info + message( STATUS "-------- cpp2py version and git hash detection -------------") + +-find_package(Git) ++#find_package(Git) + + # Get the version number from the latest annotated git tag +-execute_process(COMMAND bash "-c" "${GIT_EXECUTABLE} describe | sed \"s/-\\([0-9]*\\)-.*/.\\1/g\"" +- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" +- OUTPUT_VARIABLE CPP2PY_VERSION +- OUTPUT_STRIP_TRAILING_WHITESPACE +-) ++#execute_process(COMMAND bash "-c" "${GIT_EXECUTABLE} describe | sed \"s/-\\([0-9]*\\)-.*/.\\1/g\"" ++# WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" ++# OUTPUT_VARIABLE CPP2PY_VERSION ++# OUTPUT_STRIP_TRAILING_WHITESPACE ++#) + if(NOT CPP2PY_VERSION) + set(CPP2PY_VERSION 1.5) + endif() Added: head/devel/cpp2py/files/patch-cmake_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/files/patch-cmake_CMakeLists.txt Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,11 @@ +--- cmake/CMakeLists.txt.orig 2018-06-16 19:06:45 UTC ++++ cmake/CMakeLists.txt +@@ -1,6 +1,6 @@ + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Cpp2PyConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake @ONLY) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Cpp2PyConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfigVersion.cmake @ONLY) + +-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake) +-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules) + Added: head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,10 @@ +--- cmake/FindLibClang.cmake.orig 2018-06-16 18:48:36 UTC ++++ cmake/FindLibClang.cmake +@@ -30,6 +30,7 @@ else() + SET(TRIAL_LIBRARY_PATHS + ENV LIBRARY_PATH + ENV LD_INCLUDE_PATH ++ ${CMAKE_INSTALL_PREFIX}/llvm${FREEBSD_LLVM_VER}/lib + /usr/lib + /usr/lib/x86_64-linux-gnu + /usr/lib/llvm-5.0/lib Added: head/devel/cpp2py/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/pkg-descr Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,3 @@ +Cpp2Py is the Python-C++ interfacing tool of the TRIQS project. + +WWW: https://github.com/TRIQS/cpp2py Added: head/devel/cpp2py/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/pkg-plist Sat Jun 16 22:08:52 2018 (r472572) @@ -0,0 +1,54 @@ +bin/c++2cxx +bin/c++2py +bin/c++2rst +bin/cp_rs +include/cpp2py.hpp +include/cpp2py/converters/basic_types.hpp +include/cpp2py/converters/complex.hpp +include/cpp2py/converters/function.hpp +include/cpp2py/converters/map.hpp +include/cpp2py/converters/optional.hpp +include/cpp2py/converters/pair.hpp +include/cpp2py/converters/set.hpp +include/cpp2py/converters/std_array.hpp +include/cpp2py/converters/string.hpp +include/cpp2py/converters/tuple.hpp +include/cpp2py/converters/variant.hpp +include/cpp2py/converters/vector.hpp +include/cpp2py/exceptions.hpp +include/cpp2py/misc.hpp +include/cpp2py/py_converter.hpp +include/cpp2py/py_stream.hpp +include/cpp2py/pyref.hpp +include/cpp2py/signal_handler.hpp +lib/libcpp2py.so +%%PYTHON_SITELIBDIR%%/cpp2cxx/__init__.py +%%PYTHON_SITELIBDIR%%/cpp2cxx/cpp2cxx.py +%%PYTHON_SITELIBDIR%%/cpp2py/__init__.py +%%PYTHON_SITELIBDIR%%/cpp2py/clang_parser.py +%%PYTHON_SITELIBDIR%%/cpp2py/compiler.py +%%PYTHON_SITELIBDIR%%/cpp2py/cpp2desc.py +%%PYTHON_SITELIBDIR%%/cpp2py/cpp2py_info_base.py +%%PYTHON_SITELIBDIR%%/cpp2py/dependency_analyzer.py +%%PYTHON_SITELIBDIR%%/cpp2py/doc.py +%%PYTHON_SITELIBDIR%%/cpp2py/libclang_config.py +%%PYTHON_SITELIBDIR%%/cpp2py/magic.py +%%PYTHON_SITELIBDIR%%/cpp2py/mako/converters.cxx +%%PYTHON_SITELIBDIR%%/cpp2py/mako/desc.py +%%PYTHON_SITELIBDIR%%/cpp2py/mako/parameters.rst +%%PYTHON_SITELIBDIR%%/cpp2py/mako/wrap.cxx +%%PYTHON_SITELIBDIR%%/cpp2py/util.py +%%PYTHON_SITELIBDIR%%/cpp2py/wrap_generator.py +%%PYTHON_SITELIBDIR%%/cpp2rst/__init__.py +%%PYTHON_SITELIBDIR%%/cpp2rst/cpp2rst.py +%%PYTHON_SITELIBDIR%%/cpp2rst/doc.py +%%PYTHON_SITELIBDIR%%/cpp2rst/example.py +%%PYTHON_SITELIBDIR%%/cpp2rst/render_fnt.py +%%PYTHON_SITELIBDIR%%/cpp2rst/synopsis.py +share/cmake/Modules/Cpp2PyConfig.cmake +share/cmake/Modules/Cpp2PyConfigVersion.cmake +share/cmake/Modules/FindCpp2Py.cmake +share/cmake/cpp2py-targets-%%CMAKE_BUILD_TYPE%%.cmake +share/cmake/cpp2py-targets.cmake +%%DATADIR%%.modulefile +%%DATADIR%%vars.sh