Date: Sun, 16 Jun 2019 20:09:13 +0000 (UTC) From: Christoph Moench-Tegeder <cmt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504361 - in head/cad/freecad: . files Message-ID: <201906162009.x5GK9D6Y086090@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cmt Date: Sun Jun 16 20:09:13 2019 New Revision: 504361 URL: https://svnweb.freebsd.org/changeset/ports/504361 Log: cad/freecad: improve pyside2 detection pyside2 changed the way it reported it's variables (they're cmake target properties now, not variables) sometime over the last releases. FreeCAD did not support pyside2's new way of doing thing, resulting in certain dialogs not working. PR: 237987 Reported by: denverh at comcast dot net Added: head/cad/freecad/files/patch-CMakeLists.txt (contents, props changed) Modified: head/cad/freecad/Makefile Modified: head/cad/freecad/Makefile ============================================================================== --- head/cad/freecad/Makefile Sun Jun 16 18:42:05 2019 (r504360) +++ head/cad/freecad/Makefile Sun Jun 16 20:09:13 2019 (r504361) @@ -2,6 +2,7 @@ PORTNAME= FreeCAD DISTVERSION= 0.18.2 +PORTREVISION= 1 # use these for bugfixes/snapshots # DISTVERSION= 0.18-16093 # git rev-list --count # DISTVERSIONSUFFIX= -g690774c0e Added: head/cad/freecad/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/freecad/files/patch-CMakeLists.txt Sun Jun 16 20:09:13 2019 (r504361) @@ -0,0 +1,31 @@ +--- CMakeLists.txt.orig 2019-06-16 18:08:47 UTC ++++ CMakeLists.txt +@@ -989,6 +989,13 @@ endif() + endif() + endif() + ++ # pyside2 changed it's cmake files, this is the dance we have ++ # to dance to be compatible with the old and the new versions ++ if(SHIBOKEN_PYTHON_INCLUDE_DIRS AND NOT SHIBOKEN_INCLUDE_DIR) ++ get_property(SHIBOKEN_INCLUDE_DIR TARGET Shiboken2::libshiboken PROPERTY INTERFACE_INCLUDE_DIRECTORIES) ++ get_property(SHIBOKEN_LIBRARY TARGET Shiboken2::libshiboken PROPERTY IMPORTED_LOCATION_RELEASE) ++ endif(SHIBOKEN_PYTHON_INCLUDE_DIRS AND NOT SHIBOKEN_INCLUDE_DIR) ++ + if(NOT SHIBOKEN_INCLUDE_DIR) + MESSAGE("====================\n" + "shiboken2 not found.\n" +@@ -996,6 +1003,14 @@ endif() + endif(NOT SHIBOKEN_INCLUDE_DIR) + + find_package(PySide2 QUIET)# REQUIRED ++ ++ # pyside2 changed it's cmake files, this is the dance we have ++ # to dance to be compatible with the old and the new versions ++ if(NOT PYSIDE_INCLUDE_DIR) ++ get_property(PYSIDE_INCLUDE_DIR TARGET PySide2::pyside2 PROPERTY INTERFACE_INCLUDE_DIRECTORIES) ++ get_property(PYSIDE_LIBRARY TARGET PySide2::pyside2 PROPERTY IMPORTED_LOCATION_RELEASE) ++ endif(NOT PYSIDE_INCLUDE_DIR) ++ + if(NOT PYSIDE_INCLUDE_DIR) + MESSAGE("==================\n" + "PySide2 not found.\n"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906162009.x5GK9D6Y086090>