diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 17:52:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 17:52:12 +0000 |
commit | a90c84e720803f3d26c0ade8f1f1e405ca97502a (patch) | |
tree | f788ea0972d51c66823825021dd83427e1d466c4 /dev-libs/qxlsx/qxlsx-1.4.5.ebuild | |
parent | 07c1e2fbaa2f7d2cad4c16a747cebcf7ae7a6724 (diff) |
gentoo auto-resync : 14:01:2023 - 17:52:11
Diffstat (limited to 'dev-libs/qxlsx/qxlsx-1.4.5.ebuild')
-rw-r--r-- | dev-libs/qxlsx/qxlsx-1.4.5.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/qxlsx/qxlsx-1.4.5.ebuild b/dev-libs/qxlsx/qxlsx-1.4.5.ebuild new file mode 100644 index 000000000000..dd1bcb508c2a --- /dev/null +++ b/dev-libs/qxlsx/qxlsx-1.4.5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 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 +} |