summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2023-03-28 22:43:04 +0100
committerFlorian Schmaus <flow@gentoo.org>2023-03-30 11:03:13 +0200
commit8c4364f44958e7e4edbc3fb36511567199dd3c1e (patch)
tree6557fb4701032d2d5a6102369b02f53abbe38589 /sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild
parentnet-libs/libnma: add slot op on app-crypt/gcr (diff)
downloadgentoo-8c4364f44958e7e4edbc3fb36511567199dd3c1e.tar.gz
gentoo-8c4364f44958e7e4edbc3fb36511567199dd3c1e.tar.bz2
gentoo-8c4364f44958e7e4edbc3fb36511567199dd3c1e.zip
sci-astronomy/calcmysky: add 0.3.0
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild')
-rw-r--r--sci-astronomy/calcmysky/calcmysky-0.3.0.ebuild65
1 files changed, 65 insertions, 0 deletions
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
+}