diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-08 00:08:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-08 00:08:11 +0100 |
commit | adc09cc4e6ebf7931735c02c0c272b4b885c2b30 (patch) | |
tree | d1e752b60c2ed90ae9e427cbe2b07061e3879191 /dev-libs/qxlsx/qxlsx-1.4.8.ebuild | |
parent | 941687623283212199cbe6e36f7d61b89d6222b2 (diff) |
gentoo auto-resync : 08:06:2024 - 00:08:11
Diffstat (limited to 'dev-libs/qxlsx/qxlsx-1.4.8.ebuild')
-rw-r--r-- | dev-libs/qxlsx/qxlsx-1.4.8.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/qxlsx/qxlsx-1.4.8.ebuild b/dev-libs/qxlsx/qxlsx-1.4.8.ebuild new file mode 100644 index 000000000000..6a00e2a091a6 --- /dev/null +++ b/dev-libs/qxlsx/qxlsx-1.4.8.ebuild @@ -0,0 +1,54 @@ +# 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" +S="${WORKDIR}/QXlsx-${PV}/QXlsx" + +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}" + +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 +} |