diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
commit | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch) | |
tree | 9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /sci-astronomy/celestia | |
parent | 2891d29af8907ce881662f4a02844926d7a293c7 (diff) |
gentoo resync : 12.01.2019
Diffstat (limited to 'sci-astronomy/celestia')
-rw-r--r-- | sci-astronomy/celestia/Manifest | 4 | ||||
-rw-r--r-- | sci-astronomy/celestia/celestia-9999.ebuild | 96 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.6.99-cfg.patch | 14 |
3 files changed, 61 insertions, 53 deletions
diff --git a/sci-astronomy/celestia/Manifest b/sci-astronomy/celestia/Manifest index 9d7401b89455..94241da69f9c 100644 --- a/sci-astronomy/celestia/Manifest +++ b/sci-astronomy/celestia/Manifest @@ -5,8 +5,8 @@ AUX celestia-1.6.1-gcc47.patch 846 BLAKE2B 26a88bdf055014c2d2419fdde5e8e6667e9c1 AUX celestia-1.6.1-libpng15.patch 391 BLAKE2B 6114b4b82a92dd572c3b13ecae23118fb25b1a0a3903b15a4675cae56b0233834d391ec47b4ed23473a6ddb82b07c9103f9459e00587b1aafebf256c02f44137 SHA512 d9d79a31d5ace5938fb419511f730d1a4c56d1d4cb3bac043ec52d63a2172e4c3788dcc272b36247c09571b8f851984fcf99f523184c2c61b6fb6a4178996f7f AUX celestia-1.6.1-libpng16.patch 570 BLAKE2B 52710f0e34f8ca6364c2938f3b6839581a25b5e5637382f6995b96cb88b08330a2f46a8e150303d0bb902e6fdeb4755c4cb62499eb3f2435413a0052e6dfe5f7 SHA512 e9721364ec43eb5a1a73ee02553e81e340d56fdca94c8f7ec2825082487422772070f486bf23d2fb11e5e9bc09405e95ae9c73ff136ea7ad3c5c6a7f508e29a1 AUX celestia-1.6.1-linking.patch 1526 BLAKE2B 8244fa0dcd7771887c2bd09e5ac2c8abba2f5882fbce6205b0180d42c34899b88fd19df92b1b96eed45d3ca3931c289e3f8ea96a71fb3a8de0d68266136e4587 SHA512 31ef6c716486ddada988c2ac34e553cd5f928735454e3b74f4a2b0fa15a9b6594c87e40bf1345acc52cdc20d27bb35714fc633c9952a403146cb09966babe26b -AUX celestia-1.6.99-cfg.patch 759 BLAKE2B dddef7d207eaf975d68886d9c0a4aa74c055a08468b1d00dda45b35b5777b481888c0a8c140ad5a7ebf10a96081a273513cb7c351de779a5a2a854d4a6f4fb4d SHA512 17eb15ec550179465d653b055d8af13b9575853f83226faa718ae9288a2aed42979d9d943e06ff8a71a34a6e994c7418b4bba2d608a96ad3517d26070f36bec3 +AUX celestia-1.6.99-cfg.patch 781 BLAKE2B 04ff4f7c5159eee81479ed588d302fa6a97475955af733e013fcafb2b37975fb1f2215afe61a715b5ec7716dbd75b5915dd4a5031255adb8fde5f6e64d9b71a5 SHA512 50cce63a701da85b52bee5db5b34eed77118c7c847612b4bc7ae82c80b198c718b4adbf0f21cc82e4afbafe20f53dda191285095d6ee5e796ce7f6c94388b832 DIST celestia-1.6.1.tar.gz 52600436 BLAKE2B aa5b515a75b0344f6e5d59bf385bf1c368e3c38098a1bb9c273fd87ae34a7c8e88a4bf789935bb35ee16f2037004c8f54e21592023a0675766cb4ce005c704f4 SHA512 5b1221e97ee03f7def317e5e29c5100ebe714a4a3aeb8b9818dc9445e4282b6f87026ab35c7b3d5eb02fa6dbb33693977999d14d9648fc4e6d1947abe32a413f EBUILD celestia-1.6.1-r1.ebuild 3062 BLAKE2B b5c913e509ce0706219d93350b5f5657fb9b871fa93604eb493ab496926d5c19bd0afecc448ff1c2bed0fe9098bafd9080a816acdaa5802b25812bd3ff921d3d SHA512 84f0c7f6dc6ec27cf1659178a71b1a936d4d2155530dc51fc457aa08cfe02c89a967f8e169d56d9aa2179265153fe0c998f18e0240255c3dadc5b386f915e6f6 -EBUILD celestia-9999.ebuild 2479 BLAKE2B 7b6a3f8d756c56c59f07c90f1f61ed148537aafd8eb5c987789829b585aa861c8f1fdf79c216f27bc44c7f51112c4b54962a598f68af44a99d5e1f65d81c3cd9 SHA512 7e2a0c18b169125a60001fd0303d3d67911bd2779f9d47c40e72297b157e21d1f25ac07b6a6a48edf94567520441d5ed879a055ea0045c82783fa7056f6f3f99 +EBUILD celestia-9999.ebuild 2546 BLAKE2B c72d8d78533a4e03e0eb4ea7ddfac8ce1a49690c44d1bb8595cc74223d744626c44cc3d5455f128f2948bad46c978c30888320b860dbe8a1a36c33a0c7754c17 SHA512 4645ff704d2450c879ea0207e9f62e16ab5335a8be724218ab6fdf05e4297827443cb73112b5e2402fb41e2e34d8e566ee48173c586a1e2ed183f2fef4a24dbe MISC metadata.xml 892 BLAKE2B e5bc4a09a9e495bcecf9bc2f5e0c60e7aee0b7c65071ac1636416368a1fc9c49057a23127a964c0cbb9a42c6a679cfed5c8d0511c88c67808f5078cfb3ad04c0 SHA512 f222c4e816f2684d8d8de5d456e81b6f6a9b92f3d3996137ddd371a9934793beeda6d1611e8f510f35eafdbe83837007fbae897efcebd47a6bf00e8b3ae159f9 diff --git a/sci-astronomy/celestia/celestia-9999.ebuild b/sci-astronomy/celestia/celestia-9999.ebuild index 4e61192de39e..b3f1f95bcbf7 100644 --- a/sci-astronomy/celestia/celestia-9999.ebuild +++ b/sci-astronomy/celestia/celestia-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit autotools flag-o-matic xdg-utils +inherit cmake-utils desktop flag-o-matic gnome2-utils xdg-utils DESCRIPTION="OpenGL 3D space simulator" HOMEPAGE="https://celestia.space" @@ -18,23 +18,40 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="cairo gtk nls pch theora threads" +IUSE="glut gtk nls +qt5 theora" + +REQUIRED_USE="|| ( glut gtk qt5 )" RDEPEND=" + >=dev-lang/lua-5.1:* + dev-libs/libfmt + media-libs/glew:0 + virtual/glu virtual/opengl virtual/jpeg:0 media-libs/libpng:0= - >=dev-lang/lua-5.1:* + glut? ( media-libs/freeglut ) gtk? ( x11-libs/gtk+:2 >=x11-libs/gtkglext-1.0 + x11-libs/gdk-pixbuf:2 + x11-libs/pango + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + theora? ( + media-libs/libogg + media-libs/libtheora ) - !gtk? ( media-libs/freeglut ) - cairo? ( x11-libs/cairo ) - theora? ( media-libs/libtheora )" +" DEPEND="${RDEPEND} - virtual/pkgconfig" + dev-cpp/eigen + virtual/pkgconfig + nls? ( sys-devel/gettext )" PATCHES=( # make better desktop files @@ -43,31 +60,9 @@ PATCHES=( "${FILESDIR}"/${PN}-1.6.99-cfg.patch ) -pkg_setup() { - # Check for one for the following use flags to be set. - if use gtk; then - einfo "USE=\"gtk\" detected." - CELESTIA_GUI="gtk" - else - ewarn "If you want to use the full gui, set USE=\"gtk\"" - ewarn "Defaulting to glut support (no GUI)." - CELESTIA_GUI="glut" - fi -} - src_prepare() { default - # remove flags to let the user decide - local cf - for cf in -O2 -ffast-math \ - -fexpensive-optimizations \ - -fomit-frame-pointer; do - sed -i \ - -e "s/${cf}//g" \ - configure.ac admin/* || die "sed failed" - done - eautoreconf filter-flags "-funroll-loops -frerun-loop-opt" ### This version of Celestia has a bug in the font rendering and @@ -77,35 +72,48 @@ src_prepare() { } src_configure() { - # force lua in 1.6.1. seems to be inevitable - local myeconfargs=( - --disable-rpath - --with-${CELESTIA_GUI} - --with-lua - $(use_enable cairo) - $(use_enable threads threading) - $(use_enable nls) - $(use_enable pch) - $(use_enable theora) + # force lua. Seems still to be inevitable + local mycmakeargs=( + #-DENABLE_CELX="$(usex lua)" + -DENABLE_CELX=ON + -DENABLE_NLS="$(usex nls)" + -DENABLE_GLUT="$(usex glut)" + -DENABLE_GTK="$(usex gtk)" + -DENABLE_QT="$(usex qt5)" + -DENABLE_WIN=OFF + -DENABLE_THEORA="$(usex theora)" ) - econf "${myeconfargs[@]}" + cmake-utils_src_configure } src_install() { - emake DESTDIR="${D}" install + cmake-utils_src_install + local size for size in 16 22 32 48 ; do - newicon "${S}"/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png + newicon -s ${size} "${S}"/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png done - [[ ${CELESTIA_GUI} == glut ]] && domenu celestia.desktop + use glut && domenu ${PN}.desktop + local ui + for ui in gtk qt5 ; do + if use ${ui} ; then + sed \ + -e "/^Name/s@\$@ (${ui} interface)@" \ + -e "/^Exec/s@${PN}@${PN}-${ui/qt5/qt}@" \ + ${PN}.desktop > "${T}"/${PN}-${ui}.desktop || die + domenu "${T}"/${PN}-${ui}.desktop + fi + done dodoc AUTHORS README TRANSLATORS *.txt } pkg_postinst() { + gnome2_icon_cache_update xdg_desktop_database_update } pkg_postrm() { + gnome2_icon_cache_update xdg_desktop_database_update } diff --git a/sci-astronomy/celestia/files/celestia-1.6.99-cfg.patch b/sci-astronomy/celestia/files/celestia-1.6.99-cfg.patch index 53b0e5ad265e..943d81b416b1 100644 --- a/sci-astronomy/celestia/files/celestia-1.6.99-cfg.patch +++ b/sci-astronomy/celestia/files/celestia-1.6.99-cfg.patch @@ -1,6 +1,6 @@ -From af91ecccb4fe46181d22d4195cb4cca1c734ae63 Mon Sep 17 00:00:00 2001 +From 82023197fabf148e164c538ce0839e3add31068d Mon Sep 17 00:00:00 2001 From: Lars Wendler <polynomial-c@gentoo.org> -Date: Wed, 4 Apr 2018 15:28:32 +0200 +Date: Wed, 2 Jan 2019 14:25:37 +0100 Subject: [PATCH] celestia.cfg: Add ~/.celestia as extras directory. --- @@ -8,18 +8,18 @@ Subject: [PATCH] celestia.cfg: Add ~/.celestia as extras directory. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celestia.cfg b/celestia.cfg -index 1a69b422..635b0084 100644 +index ea9e4f58..00edf250 100644 --- a/celestia.cfg +++ b/celestia.cfg -@@ -176,7 +176,7 @@ StarTextures +@@ -197,7 +197,7 @@ StarTextures # or # ExtrasDirectories [ "D:\\celestia-extras" ] #------------------------------------------------------------------------ -- ExtrasDirectories [ "data" "extras" ] -+ ExtrasDirectories [ "data" "extras" "~/.celestia" ] +- ExtrasDirectories [ "extras-standard" "extras" ] ++ ExtrasDirectories [ "extras-standard" "extras" "~/.celestia" ] #------------------------------------------------------------------------ -- -2.17.0 +2.20.1 |