gentoo/dev-libs/qxlsx/qxlsx-1.5.0.ebuild
Andreas Sturmlechner 9e4b716f0e
dev-libs/qxlsx: Fix build with Qt 6.10, set CMAKE_USE_DIR
Set CMAKE_USE_DIR so upstream patches can apply directly.

Closes: https://bugs.gentoo.org/966279
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-11-20 22:51:56 +01:00

40 lines
840 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Excel file(*.xlsx) reader/writer library using Qt"
HOMEPAGE="https://github.com/QtExcel/QXlsx"
SRC_URI="https://github.com/QtExcel/QXlsx/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/QXlsx-${PV}"
CMAKE_USE_DIR="${S}/QXlsx"
LICENSE="MIT"
# soversion
SLOT="0/${PV}"
KEYWORDS="amd64 ~ppc ppc64 ~riscv ~x86"
RDEPEND="
dev-qt/qtbase:6=[gui]
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-qt6.10.patch" ) # bug 966279
src_prepare() {
# https://github.com/QtExcel/QXlsx/issues/375#issuecomment-2565987610
sed -i -e "s/SOVERSION.*/SOVERSION 0.${PV}/" QXlsx/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DQT_VERSION_MAJOR=6
)
cmake_src_configure
}