ports/devel/pyside6-tools/Makefile
Jason E. Hale 7e3e6797d2 Qt6: Update to 6.8.1
December 02, 2024

We (Qt upstream) have released Qt 6.8.1 today. As a patch release,
Qt 6.8.1 does not introduce new features but contains more than 550 bug
fixes, security updates, and other improvements on top of Qt 6.8.0
release. See more information about the most important changes and bug
fixes from the Qt 6.8.1 release note.

Announcement: https://www.qt.io/blog/qt-6.8.1-released
Release note: https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.1/release-note.md

We (kde@) skipped shipping Qt 6.8.0 due to waiting for a compatible
version of PyQt to be released, but here are the announcements and
release notes from Qt 6.8.0.

Announcement: https://www.qt.io/blog/qt-6.8-released
Release note: https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.0/release-note.md

PySide6: Update to 6.8.0.2

PySide6 and its related components have been updated alongside the Qt
release for compatibility. Older versions will not build with Qt 6.8.x.

Announcement: https://www.qt.io/blog/qt-for-python-release-6.8

PyQt6: Update to 6.8.0

This release also introduces x11-toolkits/py-qt6-graphs, python bindings
for the Qt Graphs module. As with PySide6, older versions of PyQt6 will
not build with Qt 6.8.x.

Support tools like py-sip and py-qtbuilder have also been updated to their
latest versions.

Announcement: https://www.riverbankcomputing.com/news/PyQt_v6.8.0_Released

Special thanks to Kenneth Raplee for testing and to SponiX for providing
access to build hardware!

PR:		283290
Exp-run by:	antoine (x2)
2025-01-05 01:28:11 -05:00

63 lines
2.4 KiB
Makefile

PORTNAME= pyside6
DISTVERSION= ${PYSIDE6_VERSION}
CATEGORIES= devel
MASTER_SITES= QT/official_releases/QtForPython/shiboken6/PySide6-${DISTVERSION}-src
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= -tools
DISTNAME= pyside-setup-everywhere-src-${DISTVERSION:R}
DIST_SUBDIR= KDE/Qt/${PYSIDE6_VERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= PySide6 development tools
WWW= https://wiki.qt.io/Qt_for_Python
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= multi
LIB_DEPENDS= libshiboken6.abi${PYTHON_MAJOR_VER}.so:devel/shiboken6@${PY_FLAVOR} \
libpyside6.abi${PYTHON_MAJOR_VER}.so:devel/pyside6@${PY_FLAVOR} \
libxkbcommon.so:x11/libxkbcommon \
libzstd.so:archivers/zstd
USES= cmake gl llvm:lib,min=17,noexport python qt:6 shebangfix tar:xz
USE_GL= opengl
USE_PYTHON= flavors
USE_QT= base declarative languageserver quick3d shadertools tools
SHEBANG_FILES= pyside_tool.py \
qtpy2cpp_lib/tests/baseline/basic_test.py
WRKSRC_SUBDIR= sources/pyside-tools
PLIST_SUB= PYSIDE_BINDIR_REL=${PYSIDE_BINDIR_REL}
PYSIDE_RELNAME= ${PORTNAME}
PYSIDE_BINDIR_REL?= bin/${PYSIDE_RELNAME}
post-install:
# Move scripts into a dedicated directory. They're too generically named, e.g.:
# deploy.py and project.py. Unversioned copies of Qt tools like lrelease and
# rcc are also installed which we probably don't want in PATH by default.
# Install to: ${PREFIX}/bin/pyside6 by default for now until there are
# consumers of this and a more fitting location is deemed necessary.
@${MV} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/${PYSIDE_RELNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/${PYSIDE_BINDIR_REL}
@${MV} ${STAGEDIR}${PREFIX}/${PYSIDE_RELNAME} ${STAGEDIR}${PREFIX}/bin
# These directories contain templates that should not be byte-compiled.
# Temporarily relocate them to avoid errors.
@${MV} ${STAGEDIR}${PREFIX}/${PYSIDE_BINDIR_REL}/deploy_lib/android/recipes ${WRKDIR}
.for d in deploy_lib project qtpy2cpp_lib
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PREFIX}/${PYSIDE_BINDIR_REL}/${d} \
${STAGEDIR}${PREFIX}/${PYSIDE_BINDIR_REL}/${d}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PREFIX}/${PYSIDE_BINDIR_REL}/${d} \
${STAGEDIR}${PREFIX}/${PYSIDE_BINDIR_REL}/${d}
.endfor
# Move the aforementioned templates back into STAGEDIR after the byte-compiling
# operation has finished.
@${MV} ${WRKDIR}/recipes ${STAGEDIR}${PREFIX}/${PYSIDE_BINDIR_REL}/deploy_lib/android
.include <bsd.port.mk>