Add dev-qt from an older version of the gentoo repo

Qt5 has been removed, we restore it since we still use it.
This commit is contained in:
2026-07-03 09:45:00 +02:00
parent 2247967dd3
commit fc875dedb1
240 changed files with 7850 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST qtchooser-66.tar.xz 32008 BLAKE2B 1faf4a44406655621e65132289af6a8b0d23f0c1027a3b99017c3951705378bebcfbc3cb32aa59975a101f21294ff701ca6eb6ec18ce977b714a426be0fbcd6d SHA512 0c7d3588ddd7b21e6e9d799204924e06e0b0950c898dfd23088f1e7657b7f821a35579aa062658499809f9d9757e82c3c592591aa2e5ec453463929bf2b33bac

View File

@ -0,0 +1,33 @@
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,13 @@
MKDIR = mkdir -p
prefix = /usr
bindir = $(prefix)/bin
-TOOLS = assistant \
- designer \
+TOOLS = designer \
lconvert \
- linguist \
lrelease \
lupdate \
moc \
- pixeltool \
qcollectiongenerator \
- qdbus \
qdbuscpp2xml \
- qdbusviewer \
qdbusxml2cpp \
qdoc \
qdoc3 \
@@ -44,9 +39,7 @@
rcc \
repc \
uic \
- uic3 \
- xmlpatterns \
- xmlpatternsvalidator \
+ uic3
# keep the above line empty

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>qt@gentoo.org</email>
<name>Gentoo Qt Project</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,73 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils toolchain-funcs
DESCRIPTION="Tool to quickly switch between multiple Qt installations"
HOMEPAGE="https://code.qt.io/cgit/qtsdk/qtchooser.git/"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://code.qt.io/qtsdk/qtchooser.git"
inherit git-r3
else
SRC_URI="https://download.qt.io/official_releases/${PN}/${P}.tar.xz"
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
LICENSE="|| ( LGPL-2.1 GPL-3 )"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? (
dev-qt/qtcore:5
dev-qt/qttest:5
)"
RDEPEND="!<dev-qt/qtcore-5.15.3:5"
PATCHES=( "${FILESDIR}/${PN}-66-qt-5.15.3-compat.patch" )
qtchooser_make() {
emake \
CXX="$(tc-getCXX)" \
LFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
"$@"
}
src_compile() {
qtchooser_make
}
src_test() {
pushd tests/auto >/dev/null || die
eqmake5
popd >/dev/null || die
qtchooser_make check
}
src_install() {
qtchooser_make INSTALL_ROOT="${D}" install
# install configuration file
cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
$(qt5_get_bindir)
$(qt5_get_libdir)
_EOF_
(
insinto /etc/xdg/qtchooser
doins "${T}/qt5-${CHOST}.conf"
)
# convenience symlinks
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
dosym qt5.conf /etc/xdg/qtchooser/default.conf
# TODO: bash and zsh completion
# newbashcomp scripts/${PN}.bash ${PN}
}