From owner-svn-ports-head@freebsd.org Sat Jun 16 23:20:57 2018 Return-Path: Delivered-To: svn-ports-head@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 43D911001B97; Sat, 16 Jun 2018 23:20:57 +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 E3FE97344D; Sat, 16 Jun 2018 23:20:56 +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 C5185540B; Sat, 16 Jun 2018 23:20:56 +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 w5GNKuOe066984; Sat, 16 Jun 2018 23:20:56 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5GNKtvI066975; Sat, 16 Jun 2018 23:20:55 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201806162320.w5GNKtvI066975@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 23:20:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472575 - in head/devel/cpp2py: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel/cpp2py: . files X-SVN-Commit-Revision: 472575 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.26 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: Sat, 16 Jun 2018 23:20:57 -0000 Author: yuri Date: Sat Jun 16 23:20:55 2018 New Revision: 472575 URL: https://svnweb.freebsd.org/changeset/ports/472575 Log: devel/cpp2py: Correct cmake file paths Also remove unnecessary files under share/ Added: head/devel/cpp2py/files/patch-cmake_Cpp2PyConfig.cmake.in (contents, props changed) head/devel/cpp2py/files/patch-lib_CMakeLists.txt (contents, props changed) Modified: head/devel/cpp2py/Makefile head/devel/cpp2py/files/patch-cmake_CMakeLists.txt head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake head/devel/cpp2py/pkg-plist Modified: head/devel/cpp2py/Makefile ============================================================================== --- head/devel/cpp2py/Makefile Sat Jun 16 22:51:22 2018 (r472574) +++ head/devel/cpp2py/Makefile Sat Jun 16 23:20:55 2018 (r472575) @@ -3,6 +3,7 @@ PORTNAME= cpp2py DISTVERSION= 1.5-19 DISTVERSIONSUFFIX= -g5fd079c +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org @@ -30,7 +31,7 @@ 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 +post-install: # remove unnecessary files + @cd ${STAGEDIR}${PREFIX} && ${RM} share/cpp2py.modulefile share/cpp2pyvars.sh .include Modified: head/devel/cpp2py/files/patch-cmake_CMakeLists.txt ============================================================================== --- head/devel/cpp2py/files/patch-cmake_CMakeLists.txt Sat Jun 16 22:51:22 2018 (r472574) +++ head/devel/cpp2py/files/patch-cmake_CMakeLists.txt Sat Jun 16 23:20:55 2018 (r472575) @@ -1,4 +1,4 @@ ---- cmake/CMakeLists.txt.orig 2018-06-16 19:06:45 UTC +--- cmake/CMakeLists.txt.orig 2018-06-04 12:58:14 UTC +++ cmake/CMakeLists.txt @@ -1,6 +1,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Cpp2PyConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake @ONLY) @@ -6,6 +6,6 @@ -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) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/cpp2py) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/cpp2py) Added: head/devel/cpp2py/files/patch-cmake_Cpp2PyConfig.cmake.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/files/patch-cmake_Cpp2PyConfig.cmake.in Sat Jun 16 23:20:55 2018 (r472575) @@ -0,0 +1,11 @@ +--- cmake/Cpp2PyConfig.cmake.in.orig 2018-06-16 22:36:50 UTC ++++ cmake/Cpp2PyConfig.cmake.in +@@ -47,7 +47,7 @@ add_executable(c++2rst IMPORTED) + set_property(TARGET c++2rst PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/bin/c++2rst") + + # include the exported targets of this project +-include(@CMAKE_INSTALL_PREFIX@/share/cmake/cpp2py-targets.cmake) ++include(@CMAKE_INSTALL_PREFIX@/lib/cmake/cpp2py/cpp2py-targets.cmake) + + # FIXME : should we just put the rpath in the cpp2y + # FIXME : who needs the rpath ? Modified: head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake ============================================================================== --- head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake Sat Jun 16 22:51:22 2018 (r472574) +++ head/devel/cpp2py/files/patch-cmake_FindLibClang.cmake Sat Jun 16 23:20:55 2018 (r472575) @@ -1,10 +1,10 @@ ---- cmake/FindLibClang.cmake.orig 2018-06-16 18:48:36 UTC +--- cmake/FindLibClang.cmake.orig 2018-06-04 12:58:14 UTC +++ cmake/FindLibClang.cmake -@@ -30,6 +30,7 @@ else() +@@ -32,6 +32,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 + /usr/lib/llvm-6.0/lib Added: head/devel/cpp2py/files/patch-lib_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cpp2py/files/patch-lib_CMakeLists.txt Sat Jun 16 23:20:55 2018 (r472575) @@ -0,0 +1,8 @@ +--- lib/CMakeLists.txt.orig 2018-06-16 22:38:48 UTC ++++ lib/CMakeLists.txt +@@ -26,4 +26,4 @@ target_include_directories(cpp2py SYSTEM + + # Install the library in lib and prepare an exported cmake file to reimport it + install(TARGETS cpp2py DESTINATION lib EXPORT cpp2py-targets) +-install(EXPORT cpp2py-targets DESTINATION share/cmake) ++install(EXPORT cpp2py-targets DESTINATION lib/cmake/cpp2py) Modified: head/devel/cpp2py/pkg-plist ============================================================================== --- head/devel/cpp2py/pkg-plist Sat Jun 16 22:51:22 2018 (r472574) +++ head/devel/cpp2py/pkg-plist Sat Jun 16 23:20:55 2018 (r472575) @@ -21,6 +21,10 @@ include/cpp2py/py_converter.hpp include/cpp2py/py_stream.hpp include/cpp2py/pyref.hpp include/cpp2py/signal_handler.hpp +lib/cmake/cpp2py/Cpp2PyConfig.cmake +lib/cmake/cpp2py/Cpp2PyConfigVersion.cmake +lib/cmake/cpp2py/cpp2py-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/cpp2py/cpp2py-targets.cmake lib/libcpp2py.so %%PYTHON_SITELIBDIR%%/cpp2cxx/__init__.py %%PYTHON_SITELIBDIR%%/cpp2cxx/cpp2cxx.py @@ -45,10 +49,3 @@ lib/libcpp2py.so %%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