commit:     3f8c2e83358874c6537eb37488e289c3d0e3284b
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Oct  9 10:13:49 2022 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Nov  5 01:32:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f8c2e83

sci-astronomy/calcmysky: new package, add 0.2.1

Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 sci-astronomy/calcmysky/Manifest               |  1 +
 sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild | 65 ++++++++++++++++++++++++++
 sci-astronomy/calcmysky/metadata.xml           | 19 ++++++++
 3 files changed, 85 insertions(+)

diff --git a/sci-astronomy/calcmysky/Manifest b/sci-astronomy/calcmysky/Manifest
new file mode 100644
index 000000000000..90a19e9a9852
--- /dev/null
+++ b/sci-astronomy/calcmysky/Manifest
@@ -0,0 +1 @@
+DIST calcmysky-0.2.1.tar.gz 2161314 BLAKE2B 
b0aa1abc75f59c9c16429749bb8669e49e17e3dc7716bb78f472a9181c7d77a2c82c2f3800529f620604f233f88855908b0b55d824bf259d0912e157b9537faf
 SHA512 
3915b965ee656b259ce7f158dfdd3c9c11a6c3ff907307899ae55e88ad6c1ccfbec8e0a1f784f5232fb0cb2c8300422fa25b8b1d4d11639d3ebb8c76d67059e5

diff --git a/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild 
b/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild
new file mode 100644
index 000000000000..47c8b4a34689
--- /dev/null
+++ b/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022 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/14"
+KEYWORDS="~amd64"
+
+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
+}

diff --git a/sci-astronomy/calcmysky/metadata.xml 
b/sci-astronomy/calcmysky/metadata.xml
new file mode 100644
index 000000000000..ef26156cdf6d
--- /dev/null
+++ b/sci-astronomy/calcmysky/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alexey Sokolov</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Astronomy Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">10110111/CalcMySky</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to