mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
dev-qt/qt-creator: drop USE=cmdbridge-server (always disabled)
Would rather not need with Go on this large package anymore. Hoping almost nobody used/needs this. Closes: https://bugs.gentoo.org/967488 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
parent
410eec53f6
commit
21d8cb726d
@ -1,4 +1,3 @@
|
||||
DIST qt-creator-opensource-src-18.0.0-vendor.tar.xz 510428 BLAKE2B a189b7e467ba0f9297b510a76d7261596cb19d52530129b40417577d3653892190734bc54fa3d95317bb31e367b255d7a9320f40c3d24ea69b9400eeadb4890f SHA512 3fcf4573ae1b2c7d77a8503fbd7d47182bc78a3baa0769ec9261cb6f88e259a1efef6a5f6500959f11a0c9cb503f684e1ee6da999fe434c26d74aabce91d97c7
|
||||
DIST qt-creator-opensource-src-18.0.0.tar.xz 56167564 BLAKE2B 45f3a0284e1ce3c91c8c69075afd39a3108d1c7082ad25c39d32a99c1ff009799d4485b0602d11d03c610f6fdb0d823606cff495c641ea8bca115cd265ce93fb SHA512 180bb491947b2b57d5420fdda3bc184b22e1158b6f6e292ada294b7c32b4d3696cb99674b92a75682d405eb573d96ecebbf5d80db90de1d7748aaca59ebb4781
|
||||
DIST qt-creator-opensource-src-18.0.1-vendor.tar.xz 509236 BLAKE2B 571b06b87b5a3f94647c303c3b75ec791b805f029f6a6acc8a3b221a18ec842d7a3558bdade3933d0edade4a1ecc1f19860a4b560349296c090b33c4a005ad4d SHA512 0f0f200506140ce1f94d5e0750739902d28d93a3d25d67b6c4c76113ce172a6a33257ed5fcb446385af96abb71220bc0bf91122a8984f4fb11ea2e2cff939288
|
||||
DIST qt-creator-opensource-src-18.0.1.tar.xz 56192968 BLAKE2B fad37e224753bceec96f8583c6801eaa26d2355f16402d695551933b662fef2cf9b00ff0bea54bb04ce3d572155fb6465defed7ffafb76f999b0123d8391b57e SHA512 0f293afe2464fd71b49a8dbd0c8e9e020ff403a55509db43d75ac71a367fac43d86d1655541d28dcda7ab999d54df35668a1092a2b71e3e7f96aec7c81a11ee2
|
||||
|
||||
@ -6,8 +6,7 @@ EAPI=8
|
||||
LLVM_COMPAT=( {15..21} )
|
||||
LLVM_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake edo flag-o-matic go-env llvm-r2 multiprocessing
|
||||
inherit python-any-r1 readme.gentoo-r1 xdg
|
||||
inherit cmake flag-o-matic llvm-r2 python-any-r1 readme.gentoo-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
@ -26,7 +25,6 @@ else
|
||||
[[ ${QTC_PV} == ${PV} ]] && QTC_REL=official || QTC_REL=development
|
||||
SRC_URI="
|
||||
https://download.qt.io/${QTC_REL}_releases/qtcreator/$(ver_cut 1-2)/${PV/_/-}/${QTC_P}.tar.xz
|
||||
cmdbridge-server? ( https://dev.gentoo.org/~ionen/distfiles/${QTC_P}-vendor.tar.xz )
|
||||
"
|
||||
S=${WORKDIR}/${QTC_P}
|
||||
KEYWORDS="~amd64"
|
||||
@ -36,11 +34,10 @@ DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
|
||||
HOMEPAGE="https://www.qt.io/product/development-tools"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE+=" BSD MIT" # go
|
||||
SLOT="0"
|
||||
IUSE="
|
||||
+clang cmdbridge-server designer doc +help keyring plugin-dev
|
||||
qmldesigner serialterminal +svg test +tracing webengine
|
||||
+clang designer doc +help keyring plugin-dev qmldesigner
|
||||
serialterminal +svg test +tracing webengine
|
||||
"
|
||||
REQUIRED_USE="clang? ( ${LLVM_REQUIRED_USE} )"
|
||||
RESTRICT="!test? ( test )"
|
||||
@ -90,12 +87,9 @@ RDEPEND="
|
||||
qmldesigner? ( >=dev-qt/qtquicktimeline-${QT_PV} )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
# intentionally skipping := on go (unlike go-module.eclass) given not
|
||||
# worth a massive rebuild every time for the minor go usage
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-qt/qttools-${QT_PV}[linguist]
|
||||
cmdbridge-server? ( >=dev-lang/go-1.21.7 )
|
||||
doc? ( >=dev-qt/qttools-${QT_PV}[qdoc,qtattributionsscanner] )
|
||||
"
|
||||
|
||||
@ -104,22 +98,6 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-12.0.0-musl-no-malloc-trim.patch
|
||||
)
|
||||
|
||||
# written in Go, use PREBUILT rather than FLAGS_IGNORED given the
|
||||
# the different arch versions confuse portage's checks
|
||||
QA_PREBUILT="usr/libexec/qtcreator/cmdbridge-*"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
if use cmdbridge-server; then
|
||||
cd -- "${S}"/src/libs/gocmdbridge/server || die
|
||||
edo go mod vendor
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
@ -127,9 +105,6 @@ src_prepare() {
|
||||
sed -e "/_IDE_DOC_PATH/s/qtcreator/${PF}/" \
|
||||
-i cmake/QtCreatorAPIInternal.cmake || die
|
||||
|
||||
# avoid stripping for Go, use sed to avoid rebases as may be there forever
|
||||
sed -i 's/-s -w //' src/libs/gocmdbridge/server/CMakeLists.txt || die
|
||||
|
||||
# avoid building manual tests (aka not ran) for nothing (bug #950010)
|
||||
sed -i '/add_subdirectory(manual)/d' tests/CMakeLists.txt || die
|
||||
|
||||
@ -145,11 +120,6 @@ src_prepare() {
|
||||
src_configure() {
|
||||
use clang && llvm_chost_setup
|
||||
|
||||
if use cmdbridge-server; then
|
||||
go-env_set_compile_environment
|
||||
export GOFLAGS="-p=$(makeopts_jobs) -v -x -buildvcs=false -buildmode=pie"
|
||||
fi
|
||||
|
||||
# -Werror=lto-type-mismatch issues, needs looking into
|
||||
filter-lto
|
||||
|
||||
@ -197,8 +167,8 @@ src_configure() {
|
||||
-DENABLE_SVG_SUPPORT=$(usex svg)
|
||||
-DWITH_QMLDESIGNER=$(usex qmldesigner)
|
||||
|
||||
-DBUILD_EXECUTABLE_CMDBRIDGE=$(usex cmdbridge-server) #945925
|
||||
$(usev cmdbridge-server -DUPX_BIN=UPX_BIN-NOTFOUND) #961623
|
||||
# cmdbridge-server is a hardly used maintenance burden (bug #967488)
|
||||
-DBUILD_EXECUTABLE_CMDBRIDGE=no
|
||||
|
||||
# meant to be in sync with qtbase[journald], but think(?) not worth
|
||||
# handling given qt-creator can use QT_FORCE_STDERR_LOGGING=1 nowadays
|
||||
|
||||
@ -6,8 +6,7 @@ EAPI=8
|
||||
LLVM_COMPAT=( {15..21} )
|
||||
LLVM_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake edo flag-o-matic go-env llvm-r2 multiprocessing
|
||||
inherit python-any-r1 readme.gentoo-r1 xdg
|
||||
inherit cmake flag-o-matic llvm-r2 python-any-r1 readme.gentoo-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
@ -26,7 +25,6 @@ else
|
||||
[[ ${QTC_PV} == ${PV} ]] && QTC_REL=official || QTC_REL=development
|
||||
SRC_URI="
|
||||
https://download.qt.io/${QTC_REL}_releases/qtcreator/$(ver_cut 1-2)/${PV/_/-}/${QTC_P}.tar.xz
|
||||
cmdbridge-server? ( https://dev.gentoo.org/~ionen/distfiles/${QTC_P}-vendor.tar.xz )
|
||||
"
|
||||
S=${WORKDIR}/${QTC_P}
|
||||
KEYWORDS="~amd64"
|
||||
@ -36,11 +34,10 @@ DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
|
||||
HOMEPAGE="https://www.qt.io/product/development-tools"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE+=" BSD MIT" # go
|
||||
SLOT="0"
|
||||
IUSE="
|
||||
+clang cmdbridge-server designer doc +help keyring plugin-dev
|
||||
qmldesigner serialterminal +svg test +tracing webengine
|
||||
+clang designer doc +help keyring plugin-dev qmldesigner
|
||||
serialterminal +svg test +tracing webengine
|
||||
"
|
||||
REQUIRED_USE="clang? ( ${LLVM_REQUIRED_USE} )"
|
||||
RESTRICT="!test? ( test )"
|
||||
@ -90,12 +87,9 @@ RDEPEND="
|
||||
qmldesigner? ( >=dev-qt/qtquicktimeline-${QT_PV} )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
# intentionally skipping := on go (unlike go-module.eclass) given not
|
||||
# worth a massive rebuild every time for the minor go usage
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-qt/qttools-${QT_PV}[linguist]
|
||||
cmdbridge-server? ( >=dev-lang/go-1.21.7 )
|
||||
doc? ( >=dev-qt/qttools-${QT_PV}[qdoc,qtattributionsscanner] )
|
||||
"
|
||||
|
||||
@ -104,22 +98,6 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-12.0.0-musl-no-malloc-trim.patch
|
||||
)
|
||||
|
||||
# written in Go, use PREBUILT rather than FLAGS_IGNORED given the
|
||||
# the different arch versions confuse portage's checks
|
||||
QA_PREBUILT="usr/libexec/qtcreator/cmdbridge-*"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
if use cmdbridge-server; then
|
||||
cd -- "${S}"/src/libs/gocmdbridge/server || die
|
||||
edo go mod vendor
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
@ -127,9 +105,6 @@ src_prepare() {
|
||||
sed -e "/_IDE_DOC_PATH/s/qtcreator/${PF}/" \
|
||||
-i cmake/QtCreatorAPIInternal.cmake || die
|
||||
|
||||
# avoid stripping for Go, use sed to avoid rebases as may be there forever
|
||||
sed -i 's/-s -w //' src/libs/gocmdbridge/server/CMakeLists.txt || die
|
||||
|
||||
# avoid building manual tests (aka not ran) for nothing (bug #950010)
|
||||
sed -i '/add_subdirectory(manual)/d' tests/CMakeLists.txt || die
|
||||
|
||||
@ -145,11 +120,6 @@ src_prepare() {
|
||||
src_configure() {
|
||||
use clang && llvm_chost_setup
|
||||
|
||||
if use cmdbridge-server; then
|
||||
go-env_set_compile_environment
|
||||
export GOFLAGS="-p=$(makeopts_jobs) -v -x -buildvcs=false -buildmode=pie"
|
||||
fi
|
||||
|
||||
# -Werror=lto-type-mismatch issues, needs looking into
|
||||
filter-lto
|
||||
|
||||
@ -197,8 +167,8 @@ src_configure() {
|
||||
-DENABLE_SVG_SUPPORT=$(usex svg)
|
||||
-DWITH_QMLDESIGNER=$(usex qmldesigner)
|
||||
|
||||
-DBUILD_EXECUTABLE_CMDBRIDGE=$(usex cmdbridge-server) #945925
|
||||
$(usev cmdbridge-server -DUPX_BIN=UPX_BIN-NOTFOUND) #961623
|
||||
# cmdbridge-server is a hardly used maintenance burden (bug #967488)
|
||||
-DBUILD_EXECUTABLE_CMDBRIDGE=no
|
||||
|
||||
# meant to be in sync with qtbase[journald], but think(?) not worth
|
||||
# handling given qt-creator can use QT_FORCE_STDERR_LOGGING=1 nowadays
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user