aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorLoïc Bartoletti <lbartoletti@FreeBSD.org>2021-07-04 16:55:16 +0000
committerLoïc Bartoletti <lbartoletti@FreeBSD.org>2021-07-04 16:55:16 +0000
commitbe86c4fe23e089aeef1ed7467161c2ce321a8c81 (patch)
treeeebf8f5b9a2bc359ffda39b2eac6fa88f6345545 /misc
parent066b4db9b1ddaadd5fb0c7076733998f810dcda8 (diff)
downloadports-be86c4fe23e089aeef1ed7467161c2ce321a8c81.tar.gz
ports-be86c4fe23e089aeef1ed7467161c2ce321a8c81.zip
misc/qtchooser: remove
QtChooser allows you to select your version of Qt among those installed. However, this tool is no longer supported upstream and will not be available for Qt6. By default, our Qt installations are done in ${LOCALBASE}/lib/qt${QT_VERSION} as recommended. We have added symbolic linking for the main binaries to ${LOCALBASE}/bin with the suffix -qt5.
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/qtchooser/Makefile61
-rw-r--r--misc/qtchooser/distinfo3
-rw-r--r--misc/qtchooser/files/patch-Makefile17
-rw-r--r--misc/qtchooser/files/update-qtchooser-wrapper.in93
-rw-r--r--misc/qtchooser/pkg-descr4
-rw-r--r--misc/qtchooser/pkg-message13
-rw-r--r--misc/qtchooser/pkg-plist6
8 files changed, 0 insertions, 198 deletions
diff --git a/misc/Makefile b/misc/Makefile
index eefd3804a87d..3b899e27b543 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -429,7 +429,6 @@
SUBDIR += qt5-examples
SUBDIR += qt5-l10n
SUBDIR += qt5ct
- SUBDIR += qtchooser
SUBDIR += quantum++
SUBDIR += raspberrypi-gpioshutdown
SUBDIR += raspberrypi-userland
diff --git a/misc/qtchooser/Makefile b/misc/qtchooser/Makefile
deleted file mode 100644
index 3c7005931336..000000000000
--- a/misc/qtchooser/Makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-PORTNAME= qtchooser
-PORTVERSION= 66
-PORTREVISION= 4
-CATEGORIES= misc
-MASTER_SITES= QT/official_releases/${PORTNAME}
-DIST_SUBDIR= KDE/Qt/qtchooser
-
-MAINTAINER= kde@FreeBSD.org
-COMMENT= Qt tool wrapper
-
-LICENSE= GPLv3 LGPL21
-LICENSE_COMB= dual
-
-USES= gmake tar:xz
-DESTDIRNAME= INSTALL_ROOT
-MAKE_ARGS= prefix=${PREFIX}
-
-SUB_FILES= update-qtchooser-wrapper
-# Keep this synchronized with Uses/qt.mk
-SUB_LIST= QT_SUPPORTED="5"
-
-# bin/linguist -- the second bunch no longer exists in the ports tree
-CONFLICTS_INSTALL= rubygem-github-linguist
-CONFLICTS_INSTALL+= rubygem-github-linguist47 rubygem-gitlab-linguist
-
-QT_QTCHOOSERDIR=${PREFIX}/etc/xdg/qtchooser
-
-post-patch:
- @${REINPLACE_CMD} -e 's,/etc/xdg,${LOCALBASE}/etc/xdg,' \
- ${WRKSRC}/src/${PORTNAME}/main.cpp
-
-post-install:
-# Install qtchooser config file. Note this is not optimal.
-# -> we could install the qtchooser config files via devel/qt5-qmake.
-# Unfortunately they will be missing for ports that only use say "rcc"
-# without qmake.
-# So it is easier to install the config files in qtchooser.
-# -> As we cannot include Uses/qt.mk at the moment without specifying
-# a version, we also do not have the variables needed to sub the variables
-# properly (we could use USES=qt:5 just to get _QT_SUPPORTED, but that
-# is a lot of overkill).
-#
-# Always make sure the following is in sync with Uses/qt.mk .
-# At the very least all the _QT_SUPPORTED versions should be
-# in the .for loop, although we still keep Qt4 around over a year
-# after it was removed from the ports tree.
-#
- ${MKDIR} ${STAGEDIR}${QT_QTCHOOSERDIR}
-.for qt_version in 4 5
- ${ECHO} ${PREFIX}/lib/qt${qt_version}/bin > ${STAGEDIR}${QT_QTCHOOSERDIR}/qt${qt_version}.conf
- ${ECHO} ${PREFIX}/lib/qt${qt_version} >> ${STAGEDIR}${QT_QTCHOOSERDIR}/qt${qt_version}.conf
-.endfor
-# Install man page.
- ${INSTALL_DATA} ${WRKSRC}/doc/qtchooser.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
-# Create the default profile.
- cd ${STAGEDIR}/${QT_QTCHOOSERDIR} && ${LN} -s qt5.conf default.conf
- ${INSTALL_SCRIPT} ${WRKDIR}/update-qtchooser-wrapper \
- ${STAGEDIR}${PREFIX}/bin/update-qtchooser-wrapper
-
-
-.include <bsd.port.mk>
diff --git a/misc/qtchooser/distinfo b/misc/qtchooser/distinfo
deleted file mode 100644
index 2ab816e72e3f..000000000000
--- a/misc/qtchooser/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1539022663
-SHA256 (KDE/Qt/qtchooser/qtchooser-66.tar.xz) = b22c21df135d48fc775d26d771170c2c70555704d4625605383be2cd149c7cea
-SIZE (KDE/Qt/qtchooser/qtchooser-66.tar.xz) = 32008
diff --git a/misc/qtchooser/files/patch-Makefile b/misc/qtchooser/files/patch-Makefile
deleted file mode 100644
index d7e61cc17d58..000000000000
--- a/misc/qtchooser/files/patch-Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
---- Makefile.orig 2018-05-04 07:41:32 UTC
-+++ Makefile
-@@ -66,12 +66,11 @@ distclean:
-
- install:
- cd src/qtchooser && $(MAKE) install
-- for tool in $(TOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done
- case `uname -s` in Darwin) \
- for tool in $(MACTOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done \
- ;; esac
-- $(MKDIR) $(INSTALL_ROOT)$(prefix)/share/man/man1
-- install -m 644 -p doc/qtchooser.1 $(INSTALL_ROOT)$(prefix)/share/man/man1
-+ $(MKDIR) $(INSTALL_ROOT)$(prefix)/man/man1
-+ install -m 644 -p doc/qtchooser.1 $(INSTALL_ROOT)$(prefix)/man/man1
-
- uninstall:
- cd src/qtchooser && $(MAKE) uninstall
diff --git a/misc/qtchooser/files/update-qtchooser-wrapper.in b/misc/qtchooser/files/update-qtchooser-wrapper.in
deleted file mode 100644
index 2b2b2c76f02e..000000000000
--- a/misc/qtchooser/files/update-qtchooser-wrapper.in
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-
-# If a port installs Qt version-specific binaries (e.g. "designer" which
-# existed as a Qt4 application and exists as a Qt5 application and will
-# probably be a Qt6 application) which should have a qtchooser-based
-# wrapper, the port should set `QT_BINARIES=yes`.
-#
-# When QT_BINARIES is set to yes, compatibility symlinks (in bin/,
-# designer -> qtchooser, so that qtchooser can run designer-qt5 or
-# whatever is the selected Qt version) are installed by the port.
-#
-# Versioned binaries in ports are conventionally installed in <ver>/bin/,
-# so qt5/bin/designer is the versioned form of "designer".
-
-PREFIX=%%PREFIX%%
-BINDIR=${PREFIX}/bin
-QTCHOOSER=${BINDIR}/qtchooser
-VERSIONS=%%QT_SUPPORTED%%
-
-# Sanity-checking. Distinguish weird failure cases by exit code.
-if [ ! -d ${BINDIR} ] ; then
- echo "Binary directory '${BINDIR}' missing." >&2
- exit 1
-fi
-
-if [ ! -x ${QTCHOOSER} ] ; then
- echo "Qtchooser binary '${QTCHOOSER}' missing." >&2
- exit 2
-fi
-
-# Remove links-to-qtchooser that are no longer needed.
-#
-# We check in ${BINDIR} -- only **directly** in bindir, hence the
-# `-maxdepth 1` -- for symlinks to qtchooser. Those are unversioned
-# names (e.g. designer -> qtchooser) for the case where qtchooser
-# should pick the right one.
-#
-# If there aren't any versioned names for the same, remove the link
-# (e.g. when designer is removed from the versioned bin/ directory
-# under qt5/bin/, then designer -> qtchooser can go as well).
-#
-remove_links() {
- for file in $(find -L ${BINDIR} -maxdepth 1 -samefile ${QTCHOOSER}) ; do
- # Only symlinks count, since qtchooser lives here too
- if [ ! -L ${file} ] ; then
- continue
- fi
- # If at least one versioned executable is found for this name,
- # keep the qtchooser compatibility symlink for this name;
- # otherwise, remove it.
- local found=0
- for version in ${VERSIONS} ; do
- version_bin_dir=${PREFIX}/lib/qt${version}/bin
- target=${version_bin_dir}/$(basename ${file})
- # Only need to find **one** to keep the link.
- if [ -x ${target} ] ; then
- found=1
- break
- fi
- done
- if [ ${found} -eq 0 ] ; then
- rm ${file}
- fi
- done
-}
-
-# Create links-to-qtchooser when a versioned application is installed.
-#
-# We check directly under the versioned bin/ directories, not in subdirectories
-# of bin/ -- so we need `-maxdepth 1` -- for names which can be hooked up to
-# qtchooser. Each of the names in the versioned bin/ dir is connected to
-# qtchooser if there isn't already a link of that name.
-#
-create_links() {
- for version in ${VERSIONS} ; do
- version_bin_dir=${PREFIX}/lib/qt${version}/bin
- if [ -d ${version_bin_dir} ] ; then
- for file in $(find ${version_bin_dir} -type f -maxdepth 1) ; do
- # target is the **unversioned** one (e.g.
- # designer, living in bin/) which needs to
- # be pointed at qtchooser because there is a
- # **versioned** designer in e.g. qt5/bin/.
- target=${BINDIR}/$(basename ${file})
- if [ ! -L ${target} -a ! -f ${target} ] ; then
- ln -s ${QTCHOOSER} ${target}
- fi
- done
- fi
- done
-}
-
-remove_links
-create_links
diff --git a/misc/qtchooser/pkg-descr b/misc/qtchooser/pkg-descr
deleted file mode 100644
index 693645e3834b..000000000000
--- a/misc/qtchooser/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-The Qt tool chooser wraps the execution of all Qt tools, to allow for
-different Qt versions coexistence.
-
-WWW: https://github.com/qt/qtchooser
diff --git a/misc/qtchooser/pkg-message b/misc/qtchooser/pkg-message
deleted file mode 100644
index a483281aa96e..000000000000
--- a/misc/qtchooser/pkg-message
+++ /dev/null
@@ -1,13 +0,0 @@
-[
-{ type: install
- message: <<EOM
-qtchooser is a wrapper that allows to specify Qt version of binaries for
-qmake, moc and other tools will be run when invoking the binaries in $PATH.
-
-By default, the Qt5 versions are run. It is possible to change the behavior by
-setting the QT_SELECT environment variable to "qtX", where X is desired Qt
-version, provided that it is offered by the Ports Collection. See qtchooser(1)
-for more information.
-EOM
-}
-]
diff --git a/misc/qtchooser/pkg-plist b/misc/qtchooser/pkg-plist
deleted file mode 100644
index 0a9890519998..000000000000
--- a/misc/qtchooser/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/qtchooser
-bin/update-qtchooser-wrapper
-etc/xdg/qtchooser/default.conf
-etc/xdg/qtchooser/qt4.conf
-etc/xdg/qtchooser/qt5.conf
-man/man1/qtchooser.1.gz