From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/celestia/
Date: Tue, 20 Dec 2022 08:43:12 +0000 (UTC) [thread overview]
Message-ID: <1671525787.7525ad875eb51a66d6298a2691f16530cec6f1e9.pacho@gentoo> (raw)
commit: 7525ad875eb51a66d6298a2691f16530cec6f1e9
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 20 08:38:52 2022 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Dec 20 08:43:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7525ad87
sci-astronomy/celestia: add 1.7.0_pre20221215
Closes: https://bugs.gentoo.org/887029
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
sci-astronomy/celestia/Manifest | 2 +
.../celestia/celestia-1.7.0_pre20221215.ebuild | 118 +++++++++++++++++++++
2 files changed, 120 insertions(+)
diff --git a/sci-astronomy/celestia/Manifest b/sci-astronomy/celestia/Manifest
index 1ed42d506126..66946d148246 100644
--- a/sci-astronomy/celestia/Manifest
+++ b/sci-astronomy/celestia/Manifest
@@ -1,2 +1,4 @@
DIST celestia-1.7.0_pre20220120-data.tar.gz 310327016 BLAKE2B 507a8d5fd1307fc711b9604e00a1596bc971dbb2c936554ffd1f0e842bec6dc6d2233c04911dcd5a6e1405d9e5806c87ec22ba4f26f0e3d770bd1b6735777b0b SHA512 6443127b42586e4ad16b25fa39193a165065682cd8163b241bdcbbe755c2104e4c29b291898076437c4387cd72cdb3bd347a010738505f39ccb658300aff836d
DIST celestia-1.7.0_pre20220120.tar.gz 5157089 BLAKE2B 5ce0413a58b2f4ca9ac9c585bfe1da9aaf0a0405d7e910b3f639d3b3a0532110dd5d28a0aec1c245a4bcebd549847023c2d84e8c29892e228dd87392bebd9ae3 SHA512 175e2280b334c4a2b6be9fa05a06abf8daa9e890cd03c11d359d26b7f0175b1662e3bf0d8abea04ad2f541780ac8b3898e47bc2bdc9e90e408e4607e2ae3fb29
+DIST celestia-1.7.0_pre20221215-data.tar.gz 306465675 BLAKE2B 74f7bb1fd827571e761d3e1f0342733134b20f8333bb06daab9d5d673ec236d830758526d99fe551ac0011eccf8dc7e7f9f108c939ec96c5accb022fa28aafa8 SHA512 a2531c03b534f14886b3ecfc96549ad0cec530e194a9c592bb62d5c05db3c85372b4dbb6c5137ccbe0d305c4689c8616d7120285b570fd8d777394e23b676159
+DIST celestia-1.7.0_pre20221215.tar.gz 5215167 BLAKE2B 755bea8c9a6e4f9f5ea961e7dcae2fdbede2ed5eb23b0b5085d11c0f6a56f7f5b31c9daa8d42fe6b1c42590b417248cd5a215d4079963b00a0f843354a137daf SHA512 8c86aa55febf8463f3eef64c54458e2bebb21ce4a344e77c733e77e5d499446cc30c5bb75699f38328e6ebc1d8221f89f65ab962ad38758ae10cc6ee45b9c6b1
diff --git a/sci-astronomy/celestia/celestia-1.7.0_pre20221215.ebuild b/sci-astronomy/celestia/celestia-1.7.0_pre20221215.ebuild
new file mode 100644
index 000000000000..d5a18e53aa56
--- /dev/null
+++ b/sci-astronomy/celestia/celestia-1.7.0_pre20221215.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+CMAKE_IN_SOURCE_BUILD="yes"
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit desktop lua-single xdg cmake
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/CelestiaProject/Celestia.git"
+ inherit git-r3
+else
+ if [[ ${PV} == *_p* ]] ; then
+ COMMIT_ID="9b00246b17a60f0a6dce724be8f7a3bda04809c3"
+ COMMIT_ID_DATA="bc8208e4474aee9a1096c6479a1e7f298aa98d02"
+ SRC_URI="
+ https://github.com/${PN^}Project/${PN^}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz
+ https://github.com/${PN^}Project/${PN^}Content/archive/${COMMIT_ID_DATA}.tar.gz -> ${P}-data.tar.gz
+ "
+ S="${WORKDIR}/${PN^}-${COMMIT_ID}"
+ KEYWORDS="~amd64 ~x86"
+ else
+ SRC_URI="https://github.com/${PN^}Project/${PN^}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+ fi
+fi
+
+DESCRIPTION="OpenGL 3D space simulator"
+HOMEPAGE="https://celestia.space https://github.com/CelestiaProject/Celestia"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="ffmpeg glut lua nls +qt5"
+REQUIRED_USE="|| ( glut qt5 )
+ lua? ( ${LUA_REQUIRED_USE} )"
+
+BDEPEND="
+ dev-cpp/eigen
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+DEPEND="
+ dev-libs/libfmt:=
+ media-libs/glew:0=
+ media-libs/libepoxy
+ media-libs/libjpeg-turbo:0=
+ media-libs/libpng:0=
+ sys-libs/zlib:=
+ virtual/glu
+ virtual/opengl
+ ffmpeg? ( media-video/ffmpeg:0 )
+ glut? ( media-libs/freeglut )
+ lua? ( ${LUA_DEPS} )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5
+ )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ # add a ~/.celestia for extra directories
+ "${FILESDIR}"/${PN}-1.6.99-cfg.patch
+ # allow forcing CMake to look for a specific Lua version instead of the newest branch installed
+ "${FILESDIR}"/${PN}-1.7.0-cmake_lua_version.patch
+)
+
+src_prepare() {
+ mv "${WORKDIR}"/CelestiaContent-${COMMIT_ID_DATA} content || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ CMAKE_USE_DIR="${CMAKE_USE_DIR}/content" BUILD_DIR="${BUILD_DIR}/content" \
+ cmake_src_configure
+
+ local mycmakeargs=(
+ -DENABLE_CELX="$(usex lua)"
+ -DENABLE_NLS="$(usex nls)"
+ -DENABLE_FFMPEG="$(usex ffmpeg)"
+ -DENABLE_GLUT="$(usex glut)"
+ -DENABLE_GTK=OFF
+ -DENABLE_QT="$(usex qt5)"
+ -DENABLE_WIN=OFF
+ -DENABLE_SDL=OFF
+ )
+ # Upstream always looks for LuaJIT first unless stopped, and we only need
+ # the version specification when linking against PUC Lua
+ if use lua && ! use lua_single_target_luajit; then
+ mycmakeargs+=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_LuaJIT=ON
+ -DLUA_VERSION=$(lua_get_version)
+ )
+ fi
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ CMAKE_USE_DIR="${CMAKE_USE_DIR}/content" BUILD_DIR="${BUILD_DIR}/content" cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+
+ # Icons with more resolutions
+ doicon -s 48 "${S}"/src/celestia/gtk/data/${PN}.png
+ newicon -s 128 "${S}"/src/celestia/gtk/data/${PN}-logo.png ${PN}.png
+ doicon -s scalable "${S}"/src/celestia/gtk/data/${PN}.svg
+
+ use glut && domenu "${S}"/debian/${PN}-glut.desktop
+
+ dodoc AUTHORS README TRANSLATORS *.txt
+
+ CMAKE_USE_DIR="${CMAKE_USE_DIR}/content" BUILD_DIR="${BUILD_DIR}/content" cmake_src_install
+}
next reply other threads:[~2022-12-20 8:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-20 8:43 Pacho Ramos [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-30 11:02 [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/celestia/ Sam James
2025-01-07 12:50 Bernard Cafarelli
2024-12-22 11:55 Pacho Ramos
2023-07-08 10:46 Pacho Ramos
2023-02-18 13:55 Andreas Sturmlechner
2022-12-18 12:41 Andreas Sturmlechner
2022-10-25 12:56 Pacho Ramos
2022-10-25 12:56 Pacho Ramos
2022-10-25 12:56 Pacho Ramos
2022-07-06 19:33 Sam James
2022-07-06 19:27 Sam James
2022-01-23 9:07 Pacho Ramos
2022-01-22 11:52 Pacho Ramos
2022-01-08 17:13 Lars Wendler
2021-09-21 8:10 Michał Górny
2021-01-14 1:16 Lars Wendler
2020-12-03 13:50 Marek Szuba
2020-05-08 17:10 Lars Wendler
2020-03-22 1:02 Lars Wendler
2020-03-22 1:02 Lars Wendler
2020-01-22 22:11 Pacho Ramos
2020-01-22 8:41 Lars Wendler
2020-01-11 0:47 Andreas Sturmlechner
2019-08-26 22:25 Lars Wendler
2019-02-17 12:39 Andreas Sturmlechner
2019-01-02 15:08 Lars Wendler
2018-05-15 10:25 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1671525787.7525ad875eb51a66d6298a2691f16530cec6f1e9.pacho@gentoo \
--to=pacho@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox