summaryrefslogtreecommitdiff
path: root/sci-astronomy/calcmysky
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/calcmysky')
-rw-r--r--sci-astronomy/calcmysky/Manifest2
-rw-r--r--sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/sci-astronomy/calcmysky/Manifest b/sci-astronomy/calcmysky/Manifest
index 3136f9c0f2e0..1d0a1bf5e41b 100644
--- a/sci-astronomy/calcmysky/Manifest
+++ b/sci-astronomy/calcmysky/Manifest
@@ -1,3 +1,5 @@
DIST calcmysky-0.2.1.tar.gz 2161314 BLAKE2B b0aa1abc75f59c9c16429749bb8669e49e17e3dc7716bb78f472a9181c7d77a2c82c2f3800529f620604f233f88855908b0b55d824bf259d0912e157b9537faf SHA512 3915b965ee656b259ce7f158dfdd3c9c11a6c3ff907307899ae55e88ad6c1ccfbec8e0a1f784f5232fb0cb2c8300422fa25b8b1d4d11639d3ebb8c76d67059e5
+DIST calcmysky-0.3.0.tar.gz 2164140 BLAKE2B 18d904ad0ed2ec81d705005fa3fea4e66d7250ff2c46bd563e14c783768760d6cc55ea3376682298d5290516ea3b9bf170da8546da5eafc2d2603e597220d9d4 SHA512 529e9cd3d1e71e5ba3e910e9af44e5ddf1af105b499948325401faa9e0cf7911d8ef003570f5bb5395ff6954c37ae6fd7242eb1300f78636232d745012d495ef
EBUILD calcmysky-0.2.1.ebuild 1218 BLAKE2B 7a0c5714b72df827c2b3ce09747c40a7bcffaea0de5a2832906eba62eefc08c6f23edf85904216af5ee6cb7cdb76d768aabe0e8c01ed9a05d1e27810dccada1d SHA512 ad81c221f32fbcc6b829fb5302f11b6307b13aa05e4763a94c58334e0ab8bd90d1ae95a8177167a1ca861965a41e097724aafcf9e03ce31cfbfc88a50773aca6
+EBUILD calcmysky-0.3.0.ebuild 1222 BLAKE2B 2eeb44dcf4a4196554eaca135ce1581e3f127d160af9bf628000e275151ff837e0bb32a0bbc13ef613ecdc3f24de64be5083f038b21d59fbc4e79c87c035f9c6 SHA512 13b5c4bda1aa16a84d1be650011705b8f264b9362e3383721f67993ecaf3cf8918f8200c13ae4c51873bacbbc72fa370e12187a7cde08097c8ecd1e0942e8e5d
MISC metadata.xml 582 BLAKE2B dbfe97e6d7c27ec436cd080f0d9c7969f4a13a174db9637970dc19d9ca3c6387e3de1f97093fb8699e22f77927daa49e10709bfe14b91ade50e3d8bc449bfcb2 SHA512 ec397bf939ac6935284ae74ceca2cd253b9558d963ab627153cd5360bff6f506a8cfe53cbf49a38a59a71fd3013f25138c44d1034aed134f0d1995d021ad7408
diff --git a/sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild b/sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild
new file mode 100644
index 000000000000..addd6360ca5c
--- /dev/null
+++ b/sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022-2023 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
+}