diff options
author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2024-03-12 21:23:28 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-25 11:21:41 +0000 |
commit | 848f212de6b87eb40d6423b90d3dd61125c7a65f (patch) | |
tree | 0d767c7e0e371793cf7bb63f93d6ad9b401b0f09 /sci-astronomy | |
parent | dev-libs/glib: backport fix for tests w/ >=dev-libs/libpcre2-10.43 (diff) | |
download | gentoo-848f212de6b87eb40d6423b90d3dd61125c7a65f.tar.gz gentoo-848f212de6b87eb40d6423b90d3dd61125c7a65f.tar.bz2 gentoo-848f212de6b87eb40d6423b90d3dd61125c7a65f.zip |
sci-astronomy/calcmysky: add 0.3.2
Closes: https://bugs.gentoo.org/923036
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/35408
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/calcmysky/Manifest | 1 | ||||
-rw-r--r-- | sci-astronomy/calcmysky/calcmysky-0.3.2.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/sci-astronomy/calcmysky/Manifest b/sci-astronomy/calcmysky/Manifest index 8cc4fc0af22d..bd6696f72dfb 100644 --- a/sci-astronomy/calcmysky/Manifest +++ b/sci-astronomy/calcmysky/Manifest @@ -1 +1,2 @@ DIST calcmysky-0.3.1.tar.gz 2166487 BLAKE2B d1e2bf0a5a2118e3679427e705f5265c9d6c8962adb58b4a5a6464252ee10fcba396758ef3a1a8c1e57b2291a076bc034e4231ea21a6fc464eda3c5ffd376bc1 SHA512 3038feffdf3a61d49d39304b72f1c2809ea5e3a835c4b3c1603162802afc3d27af6cdfd63eb3286e9e614850b73e338e1cc2cf6a6e915ea968194c0a7a9a56eb +DIST calcmysky-0.3.2.tar.gz 2166906 BLAKE2B c306b780b76ace936c373c4c554ed25fdfc3a507ebe34950634527c32deb59b99feb4d55e1b82150dd0611caf8835a1d178ec2a044a2ddf7b2ade604d6edb67a SHA512 a7f69b25c54be86ce179a118ca8a6d606e2c0fe7dc238b46620237e311dc5198a2aeb70e4885cc6553a26f7c38b78b5a338115a4606161fa249a806e891f88b6 diff --git a/sci-astronomy/calcmysky/calcmysky-0.3.2.ebuild b/sci-astronomy/calcmysky/calcmysky-0.3.2.ebuild new file mode 100644 index 000000000000..bd1d665e6e80 --- /dev/null +++ b/sci-astronomy/calcmysky/calcmysky-0.3.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multibuild cmake + +DESCRIPTION="Simulator of light scattering by planetary atmospheres" +HOMEPAGE="https://github.com/10110111/CalcMySky" +SRC_URI=" + https://github.com/10110111/CalcMySky/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="GPL-3" +# subslot is soversion +SLOT="0/15" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" + +IUSE="qt5 qt6" +REQUIRED_USE="|| ( qt5 qt6 )" + +DEPEND=" + dev-cpp/eigen:3 + media-libs/glm + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5[-gles2-only] + dev-qt/qtopengl:5[-gles2-only] + dev-qt/qtwidgets:5[-gles2-only] + ) + qt6? ( + dev-qt/qtbase:6[gui,opengl,widgets,-gles2-only] + ) +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/CalcMySky-${PV}" + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_configure() { + my_src_configure() { + local mycmakeargs=( + -DQT_VERSION="${MULTIBUILD_VARIANT/qt/}" + ) + + cmake_src_configure + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + multibuild_foreach_variant cmake_src_compile +} + +src_test() { + multibuild_foreach_variant cmake_build check +} + +src_install() { + multibuild_foreach_variant cmake_src_install +} |