diff --git a/ports/py-qscintilla/portfile.cmake b/ports/py-qscintilla/portfile.cmake index cbb4f34..b12ebbf 100644 --- a/ports/py-qscintilla/portfile.cmake +++ b/ports/py-qscintilla/portfile.cmake @@ -19,16 +19,16 @@ set(SIPBUILD_ARGS "--qmake" "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin/qmake${VCPKG_HOST_EXECUTABLE_SUFFIX}" "--api-dir" "${CURRENT_PACKAGES_DIR}/share/Qt6/qsci/api/python" "--qsci-features-dir" "${SOURCE_PATH}/src/features" - "--qsci-include-dir" "${SITE_PACKAGES}/src" + "--qsci-include-dir" "${CURRENT_INSTALLED_DIR}/${PYTHON3_SITE}/PyQt6/bindings" "--qsci-library-dir" "${SOURCE_PATH}/src" "--no-make" "--verbose" "--build-dir" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel" - "--target-dir" "${CURRENT_INSTALLED_DIR}/tools/python3/Lib/site-packages/" + "--target-dir" "${CURRENT_INSTALLED_DIR}/${PYTHON3_SITE}" ) - -# TODO: help it find sip include dirs, manually patched into sipbuild/project.py for now -# "--sip-include-dirs" "${CURRENT_INSTALLED_DIR}/tools/python3/Lib/site-packages/" +if(DEFINED VCPKG_OSX_DEPLOYMENT_TARGET) + list(APPEND SIPBUILD_ARGS "--qmake-setting" "QMAKE_MACOSX_DEPLOYMENT_TARGET = ${VCPKG_OSX_DEPLOYMENT_TARGET}") +endif() vcpkg_backup_env_variables(VARS PATH) diff --git a/ports/py-qscintilla/vcpkg.json b/ports/py-qscintilla/vcpkg.json index f83167b..37894df 100644 --- a/ports/py-qscintilla/vcpkg.json +++ b/ports/py-qscintilla/vcpkg.json @@ -1,6 +1,7 @@ { "name": "py-qscintilla", "version": "2.14.1", + "port-version": 1, "description": "Python bindings for QScintilla, which is a port to Qt of the Scintilla editing component. Features syntax highlighting, code-completion and much more (Barebone build without python bindings (missing dependeny PyQt) and without QtDesigner plugin)", "homepage": "https://www.riverbankcomputing.com/software/qscintilla", "license": "GPL-3.0-or-later", @@ -10,6 +11,7 @@ "name": "qscintilla" }, "py-pyqt6", + "python3", { "name": "vcpkg-python-scripts", "host": true