diff options
author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2023-12-23 17:33:10 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-01-10 09:11:34 +0200 |
commit | 58d60a7e41bcfd1fc06ec20e3669e073d79aa5e7 (patch) | |
tree | 7e864da80756a0961f34c9fc1529212457e0ac76 /dev-libs/qxlsx/qxlsx-1.4.7.ebuild | |
parent | games-engines/fheroes2: drop 1.0.10 (diff) | |
download | gentoo-58d60a7e41bcfd1fc06ec20e3669e073d79aa5e7.tar.gz gentoo-58d60a7e41bcfd1fc06ec20e3669e073d79aa5e7.tar.bz2 gentoo-58d60a7e41bcfd1fc06ec20e3669e073d79aa5e7.zip |
dev-libs/qxlsx: add 1.4.7
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/qxlsx/qxlsx-1.4.7.ebuild')
-rw-r--r-- | dev-libs/qxlsx/qxlsx-1.4.7.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/qxlsx/qxlsx-1.4.7.ebuild b/dev-libs/qxlsx/qxlsx-1.4.7.ebuild new file mode 100644 index 000000000000..1cc7e64e127f --- /dev/null +++ b/dev-libs/qxlsx/qxlsx-1.4.7.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multibuild 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" + +LICENSE="MIT" +# soversion +SLOT="0/0.1.4.4" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" + +IUSE="qt5 qt6" +REQUIRED_USE="|| ( qt5 qt6 )" + +RDEPEND=" + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5= + ) + qt6? ( + dev-qt/qtbase:6=[gui] + ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/QXlsx-${PV}/QXlsx" + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_configure() { + my_src_configure() { + local mycmakeargs=( + -DQT_VERSION_MAJOR="${MULTIBUILD_VARIANT/qt/}" + ) + + cmake_src_configure + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + multibuild_foreach_variant cmake_src_compile +} + +src_install() { + multibuild_foreach_variant cmake_src_install +} |