Commit ba9838f2 authored by yuri's avatar yuri
Browse files

New port: devel/cpp2py: Reflection tools based on clang

parent a8b5516d
......@@ -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
......
# $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 <bsd.port.mk>
TIMESTAMP = 1529178465
SHA256 (TRIQS-cpp2py-1.5-19-g5fd079c_GH0.tar.gz) = d989a9a76ad8a326331705263021222e3adb1fd0c83ee1ce7e89bb220b00e2d7
SIZE (TRIQS-cpp2py-1.5-19-g5fd079c_GH0.tar.gz) = 81459
--- 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()
--- 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)
--- 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
Cpp2Py is the Python-C++ interfacing tool of the TRIQS project.
WWW: https://github.com/TRIQS/cpp2py
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment