diff options
-rw-r--r-- | sci-astronomy/celestia/ChangeLog | 247 | ||||
-rw-r--r-- | sci-astronomy/celestia/Manifest | 36 | ||||
-rw-r--r-- | sci-astronomy/celestia/celestia-1.4.1-r1.ebuild | 122 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.4.1-cfg.patch | 11 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch | 28 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.4.1-lua.patch | 62 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch | 75 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/celestia-1.4.1-makefile.am.patch | 19 | ||||
-rw-r--r-- | sci-astronomy/celestia/files/digest-celestia-1.4.1-r1 | 3 | ||||
-rw-r--r-- | sci-astronomy/celestia/metadata.xml | 16 |
10 files changed, 619 insertions, 0 deletions
diff --git a/sci-astronomy/celestia/ChangeLog b/sci-astronomy/celestia/ChangeLog new file mode 100644 index 000000000..bc954143d --- /dev/null +++ b/sci-astronomy/celestia/ChangeLog @@ -0,0 +1,247 @@ +# ChangeLog for sci-astronomy/celestia +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*celestia-1.4.1-r1 (19 Sep 2006) + + 19 Sep 2006; Sebastien Fabbro <seb@ist.utl.pt> +celestia-1.4.1-r1.ebuild + +files/celestia-1.4.1-lua.patch, celestia-1.4.1-makefile.am.patch, + +files/celestia-1.4.1-cfg.patch. + Some cleaning in the ebuild. + Added more patches for lua, and a default config file. + Added longdescription in metadata.xml. + Fixed bugs #128218, #142786 with celestia-1.4.1-makefile.am.patch. + Tested with kde and gtk only. Anyone with gnome willing to test? + Also still buggy with as-needed and kde (fine with gtk). + + 07 Sep 2006; Joshua Jackson <tsunam@gentoo.org> celestia-1.4.1.ebuild: + Stable x86; bug #141404 + + 07 May 2006; Daniel Goller <morfic@gentoo.org> metadata.xml: + Removing maintainer + + 06 May 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.1.ebuild: + Install icons for kde, thanks to polynomial-C + + 02 May 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.1.ebuild: + Calling autotools after patching makefile.am + + 27 Apr 2006; Alec Warner <antarus@gentoo.org> files/digest-celestia-1.3.2, + Manifest: + Fixing SHA256 digest, pass four + + 24 Apr 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.1.ebuild: + Forcing /usr/share/celestia allowed merging of all 3 guis here, each twice, + each after emerge -C celestia + + 05 Apr 2006; Daniel Goller <morfic@gentoo.org> +files/makefile.am.patch, + -celestia-1.4.0.ebuild, celestia-1.4.1.ebuild: + Fixing the ACCESS VIOLATIONs, thanks go to Lars (Polynomial-C) + <polynomial-C@gmx.de> for working on this + Also removing superceeded version + + 15 Mar 2006; Markus Rothe <corsair@gentoo.org> celestia-1.4.1.ebuild: + Added ~ppc64; bug #126217 + + 14 Mar 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.1.ebuild: + Making sure crafts are installed till we have a better fix + + 07 Mar 2006; Daniel Goller <morfic@gentoo.org> + +files/celestia-1.4.1-gcc-4.1.patch, celestia-1.4.1.ebuild: + Applying gcc-4.1 patch to close bug#124956 + +*celestia-1.4.1 (17 Feb 2006) + + 17 Feb 2006; Daniel Goller <morfic@gentoo.org> +celestia-1.4.1.ebuild: + Bump to 1.4.1 + + 16 Feb 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.0.ebuild: + Change logic for Makefile fix closing bug #122919 + + 01 Feb 2006; Gustavo Zacarias <gustavoz@gentoo.org> celestia-1.4.0.ebuild: + Keyworded ~sparc + + 31 Jan 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.0.ebuild: + Work around gnome eclass writing files to /var/tmp/portage/* + + 19 Jan 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.0.ebuild: + Fixing bug #119339 while taking care of access violations + + 17 Jan 2006; Daniel Goller <morfic@gentoo.org> celestia-1.4.0.ebuild: + Fixing Access Violations, closing bug #119189 + + 16 Jan 2006; Simon Stelling <blubb@gentoo.org> celestia-1.4.0.ebuild: + add missing ? in DEPEND + +*celestia-1.4.0 (16 Jan 2006) + + 16 Jan 2006; Daniel Goller <morfic@gentoo.org> +celestia-1.4.0.ebuild: + Revision Bump thanks to Pat Suwalski, Sebastian Fabbro, and everyone helping + out on Bug #116600 + + 03 Sep 2005; Jeremy Huddleston <eradicator@gentoo.org> + celestia-1.3.2.ebuild: + Changed note to reference eselect instead of opengl-update. + + 17 Jul 2005; Mike Frysinger <vapier@gentoo.org> celestia-1.3.2.ebuild: + Change glut to use virtual/glut #93449, clean up the ebuild a bit, and if + user hasnt selected gtk/kde/gnome, default to gtk since it is the lightest + depend. + +*celestia-1.3.2 (23 Dec 2004) + + 23 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/celestia-1.3.2-noarts.patch, +files/resmanager.h.patch, + +celestia-1.3.2.ebuild: + Moved from app-sci/celestia to sci-astronomy/celestia. + + 29 Nov 2004; Daniel Goller <morfic@gentoo.org> + -files/celestia-1.3.1-gtkmain.patch, -files/celestia-gcc3.patch, + -celestia-1.3.0-r1.ebuild, -celestia-1.3.0.ebuild, -celestia-1.3.1.ebuild: + Cleaning up all the old/broken ebuilds and their files. + + 28 Nov 2004; Simon Stelling <blubb@gentoo.org> celestia-1.3.2.ebuild: + stable on amd64 + + 16 Nov 2004; Patrick Kursawe <phosphan@gentoo.org> celestia-1.3.0-r1.ebuild, + celestia-1.3.0.ebuild, celestia-1.3.1.ebuild: + Fixing #71064 (removing einfo "-------") + + 12 Nov 2004; Daniel Goller <morfic@gentoo.org> celestia-1.3.2.ebuild: + added arts USE flag, stable on x86 and ppc + + 30 Sep 2004; Daniel Goller <morfic@gentoo.org> -celestia-1.3.2_pre20040731-r1.ebuild, + -celestia-1.3.2_pre20040731.ebuild, -digest-celestia-1.3.2_pre20040731, -digest-celestia-1.3.2_pre20040731-r1: + cleaned up old 1.3.2_pre ebuilds + + 01 Oct 2004; Danny van Dyk <kugelfang@gentoo.org> celestia-1.3.2.ebuild: + Marked ~amd64. + + 27 Sep 2004; Daniel Goller <morfic@gentoo.org> celestia-1.3.2.ebuild: + added ~ppc keyword + + 25 Sep 2004; Daniel Goller <morfic@gentoo.org> metadata.xml: + added maintainers to metadata.xml + +*celestia-1.3.2 (31 Aug 2004) + + 31 Aug 2004; Daniel Goller <morfic@gentoo.org> +celestia-1.3.2.ebuild: + new version, updated depends + thanks Giacomo Perale, Bret Towe + + 18 Aug 2004; Daniel Goller <morfic@gentoo.org> -celestia-1.2.2.ebuild, + -celestia-1.2.4.ebuild, -celestia-1.2.5.ebuild, + celestia-1.3.2_pre20040731-r1.ebuild: + Ditch old versions + + 18 Aug 2004; Daniel Goller <morfic@gentoo.org> + celestia-1.3.2_pre20040731-r1.ebuild: + Fixed USE logic and other cleanups. + Thanks Jay. + +*celestia-1.3.2_pre20040731-r1 (08 Aug 2004) + + 08 Aug 2004; Daniel Goller <morfic@gentoo.org> + +celestia-1.3.2_pre20040731-r1.ebuild: + Fix gtk and gnome UI + Special Thanks to Bret Towe + + 08 Aug 2004; Olivier Fisette <ribosome@gentoo.org> + celestia-1.3.2_pre20040731.ebuild: + Removed RESTRICT="nomirror" as suggested in bug #59781. + + 08 Aug 2004; Daniel Goller <morfic@gentoo.org> + celestia-1.3.2_pre20040731.ebuild: + making kde deps non conditional till gtk choice can be fixed + at which point choice between kde and gtk should be reenabled + + 05 Aug 2004; Daniel Goller <morfic@gentoo.org> + celestia-1.3.2_pre20040731.ebuild: + Little Cleanup + +*celestia-1.3.2_pre20040731 (04 Aug 2004) + + 04 Aug 2004; Daniel Goller <morfic@gentoo.org> +files/resmanager.h.patch, + +celestia-1.3.2_pre20040731.ebuild: + CVS version actually runs after compilation, committing + Fixes numerous bugs + Thanks to Polynomial-C@gmx.de (ebuild) and Bret Towe (patch) + + 17 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> + celestia-1.3.0-r1.ebuild, celestia-1.3.1.ebuild: + fix use invocation + + 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> celestia-1.3.1.ebuild: + Marked stable on amd64. + + 02 Jun 2004; Aron Griffis <agriffis@gentoo.org> celestia-1.2.5.ebuild, + celestia-1.3.0.ebuild: + Fix use invocation + +*celestia-1.3.1 (22 Apr 2004) + + 22 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> celestia-1.3.1.ebuild, + files/celestia-1.3.1-gtkmain.patch: + Version bump, see bug #38184 about problems + + 11 Apr 2004; Donnie Berkholz <spyderous@gentoo.org>; + celestia-1.3.0-r1.ebuild, celestia-1.3.0.ebuild: + xorg-x11 compatibility fix. + + 25 Feb 2004; Patrick Kursawe <phosphan@gentoo.org> celestia-1.3.0-r1.ebuild: + Sandbox violation fixed + +*celestia-1.3.0-r1 (25 Feb 2004) + + 25 Feb 2004; Patrick Kursawe <phosphan@gentoo.org> : + Moving from app-misc to app-sci + +*celestia-1.3.0-r1 (10 Dec 2003) + + 10 Dec 2003; Patrick Kursawe <phosphan@gentoo.org> celestia-1.3.0-r1.ebuild: + Enabled building without gnome or kde. + + 30 Sep 2003; George Shapovalov <george@gentoo.org> celestia-1.3.0.ebuild : + added ~ppc flag as per test report by Fernando Usero <fusero@wanadoo.es> + +*celestia-1.3.0 (11 May 2003) + + 11 May 2003; George Shapovalov <george@gentoo.org> celestia-1.2.5.ebuild : + new version (#19642) + +*celestia-1.2.5 (12 Jan 2003) + + 12 Jan 2003; George Shapovalov <george@gentoo.org> celestia-1.2.5.ebuild : + + new version. Looks like gcc-3.x issue were fixed. + Also problems were reported when compiling celestia with nvidia drivers + The fix is to opengl-update xfree && emerge celestia && opengl-update nvidia. + See also #6417 + +*celestia-1.2.4 (4 May 2002) + + 09 Nov 2002; George Shapovalov <george@gentoo.org> celestia-1.2.4.ebuild : + + another fix - to filter out -funroll-loops which causes trouble with gcc-3.2 + + 23 Oct 2002; George Shapovalov <george@gentoo.org> celestia-1.2.4.ebuild, files/celestia-gcc3.patch : + + applied fix to make celestia compile under gcc-3.x, + Thanks to Bret Towe <btowe@gbis.com>, bug #6417 + + 19 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> celestia-1.2.4.ebuild : + Updated to mirror://sourceforge in SRC_URI. + + 4 May 2002; Seemant Kulleen <seemant@gentoo.org> celestia-1.2.4.ebuild + files/digest-celestia-1.2.4 : + + Version bump, which hopefully sorts out compilation errors that were reported + by greg@digitalinfo.net (Greg Anuzelli) in bug #2394 + +*celestia-1.2.2 (13 Apr 2002) + + 13 Apr 2002; Bruce A. Locke <blocke@shivan.org> celestia-1.2.2.ebuild: + + Celestia added to Gentoo + + diff --git a/sci-astronomy/celestia/Manifest b/sci-astronomy/celestia/Manifest new file mode 100644 index 000000000..c75e69e87 --- /dev/null +++ b/sci-astronomy/celestia/Manifest @@ -0,0 +1,36 @@ +AUX celestia-1.4.1-cfg.patch 425 RMD160 58ee9017aa389ffd0aa3eeafa2760e8470f8190c SHA1 20183c664d0c62b2e04c0f0ca09eb59c80b4da13 SHA256 5f3ac8eba91d5491d8500c7f25b2c324d03e9a6a6d5641a1ba62086ddca0d374 +MD5 22a1bf9a9a88862f7836f98fe52cdab1 files/celestia-1.4.1-cfg.patch 425 +RMD160 58ee9017aa389ffd0aa3eeafa2760e8470f8190c files/celestia-1.4.1-cfg.patch 425 +SHA256 5f3ac8eba91d5491d8500c7f25b2c324d03e9a6a6d5641a1ba62086ddca0d374 files/celestia-1.4.1-cfg.patch 425 +AUX celestia-1.4.1-gcc-4.1.patch 1191 RMD160 b9bfae5bc1b5bf93a95760e3fd558645668cdca6 SHA1 40611ff5e1cda402cc8d3f5b064116c43c7b57c3 SHA256 ea26fe154cf92c613c54edd5e0e51c1b8562ee5ccd74ab191a8a386cd8986e67 +MD5 5f63556bba262455321ec2a466ef3bf8 files/celestia-1.4.1-gcc-4.1.patch 1191 +RMD160 b9bfae5bc1b5bf93a95760e3fd558645668cdca6 files/celestia-1.4.1-gcc-4.1.patch 1191 +SHA256 ea26fe154cf92c613c54edd5e0e51c1b8562ee5ccd74ab191a8a386cd8986e67 files/celestia-1.4.1-gcc-4.1.patch 1191 +AUX celestia-1.4.1-lua.patch 1777 RMD160 64a28941b7b11841575a22dc612fa7befe5850fb SHA1 011f965b2715514f6c4c51bcb4398457259763ad SHA256 4165fb29634b63973364aaab3910d0cfa3b418a718a1975d5cb6a26db1b8f918 +MD5 bd932a22cabe5596da1a5ca255613b9e files/celestia-1.4.1-lua.patch 1777 +RMD160 64a28941b7b11841575a22dc612fa7befe5850fb files/celestia-1.4.1-lua.patch 1777 +SHA256 4165fb29634b63973364aaab3910d0cfa3b418a718a1975d5cb6a26db1b8f918 files/celestia-1.4.1-lua.patch 1777 +AUX celestia-1.4.1-lua51.patch 2411 RMD160 f2a7385f9582ddfa7fc294a776dcd1fea604c580 SHA1 12367dfd5af70d56bfdfb99068e709d89b45dcec SHA256 d311cbd81546221409bea8256c9fc12b1a6da2e504523e39520c28280585b248 +MD5 bf2d3516c6a46ace35d18fc4692aba36 files/celestia-1.4.1-lua51.patch 2411 +RMD160 f2a7385f9582ddfa7fc294a776dcd1fea604c580 files/celestia-1.4.1-lua51.patch 2411 +SHA256 d311cbd81546221409bea8256c9fc12b1a6da2e504523e39520c28280585b248 files/celestia-1.4.1-lua51.patch 2411 +AUX celestia-1.4.1-makefile.am.patch 915 RMD160 66029acef96bcd4692d118ee07122383c815bfa1 SHA1 0792fca662ef306cb08bf37823995d9aef71b3b6 SHA256 fff87de43cfafb5982b90606b85724fe26ffd88b2d511fe038c9b4065bc4096a +MD5 d7191ccebffd94253824400af9b406a6 files/celestia-1.4.1-makefile.am.patch 915 +RMD160 66029acef96bcd4692d118ee07122383c815bfa1 files/celestia-1.4.1-makefile.am.patch 915 +SHA256 fff87de43cfafb5982b90606b85724fe26ffd88b2d511fe038c9b4065bc4096a files/celestia-1.4.1-makefile.am.patch 915 +DIST celestia-1.4.1.tar.gz 23966886 RMD160 c66c2540e329613dace12e5b12b2dae2a4c679e0 SHA1 37863498c43d3078b41027706bfa033bccd949a9 SHA256 f9dc34dbc0d53e98534000545802b5ab4a471c3cb3fa08a9c958cbbbeb28d8b5 +EBUILD celestia-1.4.1-r1.ebuild 3270 RMD160 0e27fa6f5f50f250a72075f2f132523b561790bd SHA1 cb6452e351c27db05fe0dd3f68f901ba7f0a05dc SHA256 6879cd42c975c3d9289809c50c85ec07cbde3ee54a46de571a194a2b1c73323a +MD5 a0370a818a662bfbfd041af4bc1ca229 celestia-1.4.1-r1.ebuild 3270 +RMD160 0e27fa6f5f50f250a72075f2f132523b561790bd celestia-1.4.1-r1.ebuild 3270 +SHA256 6879cd42c975c3d9289809c50c85ec07cbde3ee54a46de571a194a2b1c73323a celestia-1.4.1-r1.ebuild 3270 +MISC ChangeLog 8916 RMD160 9dbfb962df0a2efecc12d2e28ba282130eab9cb4 SHA1 c059016a4b932f56ce6f694c072f7dd727005d11 SHA256 156cae79d2d5a975e5b1dd2a96bd890cc2871f99a35e1e1255ea3c5fb12b6e43 +MD5 aa001d0e74b909b9cf2eb0b7a4f4b369 ChangeLog 8916 +RMD160 9dbfb962df0a2efecc12d2e28ba282130eab9cb4 ChangeLog 8916 +SHA256 156cae79d2d5a975e5b1dd2a96bd890cc2871f99a35e1e1255ea3c5fb12b6e43 ChangeLog 8916 +MISC metadata.xml 797 RMD160 d6aa4537e51460bff44d8f585658d42a7092dd45 SHA1 89563c5f8032d5cd7c6ecdac1b704f2074d04066 SHA256 3adc85c903fd65d7a782973d2310c9b135d70be732920a1a49c275918deb902e +MD5 7a3995fb6667264837081c1ab8f25c71 metadata.xml 797 +RMD160 d6aa4537e51460bff44d8f585658d42a7092dd45 metadata.xml 797 +SHA256 3adc85c903fd65d7a782973d2310c9b135d70be732920a1a49c275918deb902e metadata.xml 797 +MD5 34161bf1fac09b84a3ffe3d187aa811d files/digest-celestia-1.4.1-r1 250 +RMD160 b55d9c21cfda86365a1be8dcf84705ca0381ac9a files/digest-celestia-1.4.1-r1 250 +SHA256 d638e17dad65f179f89102c209ecffc06c9383a96420f7a9c31a9cabba357fdf files/digest-celestia-1.4.1-r1 250 diff --git a/sci-astronomy/celestia/celestia-1.4.1-r1.ebuild b/sci-astronomy/celestia/celestia-1.4.1-r1.ebuild new file mode 100644 index 000000000..dcd4e8c95 --- /dev/null +++ b/sci-astronomy/celestia/celestia-1.4.1-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils flag-o-matic gnome2 kde-functions autotools + +DESCRIPTION="Free space simulation that lets you experience our universe in three dimensions" +HOMEPAGE="http://www.shatters.net/celestia/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc x86" +IUSE="gnome gtk kde arts threads nls lua" + + +DEPEND="virtual/glu + media-libs/jpeg + media-libs/libpng + gtk? ( !gnome? ( !kde? ( + >=x11-libs/gtk+-2.6 + >=x11-libs/gtkglext-1.0 + ) ) ) + gnome? ( !kde? ( + >=x11-libs/gtk+-2.6 + >=x11-libs/gtkglext-1.0 + >=gnome-base/libgnomeui-2.0 + ) ) + kde? ( !gnome? ( >=kde-base/kdelibs-3.0.5 ) ) + !gtk? ( !gnome? ( !kde? ( virtual/glut ) ) ) + arts? ( kde-base/arts ) + lua? ( >=dev-lang/lua-5.0 )" + +pkg_setup() { + # Check for one for the following use flags to be set. + if ! use gnome && use kde; then + einfo "USE=\"kde\" detected." + mygui="kde" + elif ! use kde && use gnome; then + einfo "USE=\"gnome\" detected." + USE_DESTDIR="1" + mygui="gnome" + elif ! use kde && ! use gnome && use gtk; then + einfo "USE=\"gtk\" detected." + mygui="gtk" + elif use kde && use gnome; then + einfo "Both gnome and kde support requested. Defaulting to kde" + mygui="kde" + else + ewarn "If you want to use the full gui, set USE=\"{kde/gnome/gtk}\"" + ewarn "Defaulting to glut support (no GUI)." + mygui="glut" + fi + + einfo "If you experience problems building celestia with nvidia drivers," + einfo "you can try:" + einfo "eselect opengl set xorg-x11" + einfo "emerge celestia" + einfo "eselect opengl set nvidia" +} + +src_unpack() { + + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-gcc-4.1.patch" + epatch "${FILESDIR}/${P}-makefile.am.patch" + # add a ~/.celestia for extra directories + epatch "${FILESDIR}/${P}-cfg.patch" + # some lua patches on celx.cpp + epatch "${FILESDIR}/${P}-lua.patch" + + eautoconf + eautomake +} + +src_compile() { + + if [ "${mygui}" == "kde" ]; then + set-kdedir 3 + export kde_widgetdir="$KDEDIR/lib/kde3/plugins/designer" + fi + addwrite ${QTDIR}/etc/settings + + filter-flags "-funroll-loops -frerun-loop-opt" + + econf \ + --with-${mygui} \ + --with-pic \ + --enable-pch \ + $(use_with arts) \ + $(use_with lua) \ + $(use_enable threads threading) \ + $(use_enable nls) \ + || die "econf failed" + + #fix Makefiles to avoid Access Violations while fixing bug #119339 + if [ "${mygui}" != "gnome" ] ; then + for d in . src data extras textures textures/lores textures/medres textures/hires models shaders fonts po ; do + sed -i -e "s#pkgdatadir = /usr/share/celestia#pkgdatadir = ${D}/usr/share/celestia#" $d/Makefile; done + fi + + emake || die "emake failed" +} + +src_install() { + dodir /usr/share/celestia + if [ "${mygui}" == "gnome" ]; then + gnome2_src_install + else + einstall || die "einstall failed" + for size in 16 22 32 48 ; do + insinto /usr/share/icons/hicolor/${size}x${size}/apps/ + newins ${S}/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png + done + fi + + dodoc AUTHORS README TODO NEWS TRANSLATORS ChangeLog \ + CelestiaKeyAssignments.txt KbdMouseJoyControls.txt devguide.txt + dohtml coding-standards.html manual/*.html manual/*.css + cp models/*.3ds ${D}/usr/share/celestia/models/ +} diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-cfg.patch b/sci-astronomy/celestia/files/celestia-1.4.1-cfg.patch new file mode 100644 index 000000000..61e9419c2 --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.4.1-cfg.patch @@ -0,0 +1,11 @@ +--- celestia.cfg.orig 2006-09-19 11:05:24.000000000 +0100 ++++ celestia.cfg 2006-09-19 11:05:50.000000000 +0100 +@@ -150,7 +150,7 @@ + # or + # ExtrasDirectories [ "D:\\celestia-extras" ] + #------------------------------------------------------------------------ +- ExtrasDirectories [ "extras" ] ++ ExtrasDirectories [ "extras" "~/.celestia" ] + + + #------------------------------------------------------------------------ diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch b/sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch new file mode 100644 index 000000000..515b429fc --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch @@ -0,0 +1,28 @@ +--- src/celengine/star.h.old 2006-03-06 20:29:28.000000000 -0600 ++++ src/celengine/star.h 2006-03-06 20:30:26.000000000 -0600 +@@ -30,7 +30,7 @@ class StarDetails + // orbits and StarDetails objects. Currently, it's assumed that they + // have lifetimes that continue until program termination. + public: +- StarDetails::StarDetails(); ++ StarDetails(); + + inline float getRadius() const; + inline float getTemperature() const; +--- src/celengine/command.h.old 2006-03-06 20:29:47.000000000 -0600 ++++ src/celengine/command.h 2006-03-06 20:30:35.000000000 -0600 +@@ -94,10 +94,10 @@ class CommandGoto : public Instantaneous + class CommandGotoLongLat : public InstantaneousCommand + { + public: +- CommandGotoLongLat::CommandGotoLongLat(double t, +- double dist, +- float _longitude, float _latitude, +- Vec3f _up); ++ CommandGotoLongLat(double t, ++ double dist, ++ float _longitude, float _latitude, ++ Vec3f _up); + ~CommandGotoLongLat(); + void process(ExecutionEnvironment&); + diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-lua.patch b/sci-astronomy/celestia/files/celestia-1.4.1-lua.patch new file mode 100644 index 000000000..ed31b8ee0 --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.4.1-lua.patch @@ -0,0 +1,62 @@ +--- src/celestia/celx.cpp.orig 2006-09-19 11:08:10.000000000 +0100 ++++ src/celestia/celx.cpp 2006-09-19 11:07:03.000000000 +0100 +@@ -32,9 +32,7 @@ + + #include "celx.h" + #include "celestiacore.h" +-extern "C" { +-#include "lualib.h" +-} ++#include "lua.hpp" + + using namespace std; + +@@ -532,6 +530,8 @@ + + status = lua_resume(co, narg); + if (status == 0) ++ return 0; ++ else if (status == LUA_YIELD) + { + int nres = lua_gettop(co); + #if 0 +@@ -543,7 +543,7 @@ + } + else + { +- lua_xmove(co, L, 1); // move error message ++ lua_xmove(co, L, -1); // move error message + return -1; // error flag + } + } +@@ -598,7 +598,7 @@ + int stackTop = lua_gettop(costate); + if (strcmp(c_p, "y") == 0) + { +- lua_iolibopen(costate); ++ luaL_openlibs(costate); + ioMode = IOAllowed; + } + else +@@ -713,7 +713,8 @@ + // no other errors, and execution terminates normally. There + // should be a better way to figure out whether the script ended + // normally . . . +- if (strcmp(errorMessage, "cannot resume dead coroutine") != 0) ++ if (errorMessage ++ && strcmp(errorMessage, "cannot resume dead coroutine") != 0) + { + cout << "Error: " << errorMessage << '\n'; + CelestiaCore* appCore = getAppCore(co); +@@ -4577,10 +4578,7 @@ + initMaps(); + + // Import the base and math libraries +- lua_baselibopen(state); +- lua_mathlibopen(state); +- lua_tablibopen(state); +- lua_strlibopen(state); ++ luaL_openlibs(state); + + // Add an easy to use wait function, so that script writers can + // live in ignorance of coroutines. There will probably be a significant diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch b/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch new file mode 100644 index 000000000..7c0299911 --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch @@ -0,0 +1,75 @@ +diff -Nur celestia-1.4.1.orig/configure.in celestia-1.4.1/configure.in +--- celestia-1.4.1.orig/configure.in 2006-02-03 18:09:54.000000000 +0000 ++++ celestia-1.4.1/configure.in 2006-09-19 10:04:57.000000000 +0100 +@@ -383,7 +383,7 @@ + AC_MSG_CHECKING([whether to enable Celestia Extension Language]) + if (test "$enable_lua" != "no"); then + CXXFLAGS="$CXXFLAGS -DCELX" +- LDFLAGS="$LDFLAGS -llualib -llua" ++ LDFLAGS="$LDFLAGS -llua" + + if (test "$lua_includes" != "no"); then + CXXFLAGS="$CXXFLAGS -I$lua_includes" +diff -Nur celestia-1.4.1.orig/src/celestia/celx.cpp celestia-1.4.1/src/celestia/celx.cpp +--- celestia-1.4.1.orig/src/celestia/celx.cpp 2006-01-07 00:01:51.000000000 +0000 ++++ celestia-1.4.1/src/celestia/celx.cpp 2006-09-19 10:05:06.000000000 +0100 +@@ -32,9 +32,7 @@ + + #include "celx.h" + #include "celestiacore.h" +-extern "C" { +-#include "lualib.h" +-} ++#include "lua.hpp" + + using namespace std; + +@@ -532,6 +530,8 @@ + + status = lua_resume(co, narg); + if (status == 0) ++ return 0; ++ else if (status == LUA_YIELD) + { + int nres = lua_gettop(co); + #if 0 +@@ -543,7 +543,7 @@ + } + else + { +- lua_xmove(co, L, 1); // move error message ++ lua_xmove(co, L, -1); // move error message + return -1; // error flag + } + } +@@ -598,7 +598,7 @@ + int stackTop = lua_gettop(costate); + if (strcmp(c_p, "y") == 0) + { +- lua_iolibopen(costate); ++ luaL_openlibs(costate); + ioMode = IOAllowed; + } + else +@@ -713,7 +713,8 @@ + // no other errors, and execution terminates normally. There + // should be a better way to figure out whether the script ended + // normally . . . +- if (strcmp(errorMessage, "cannot resume dead coroutine") != 0) ++ if (errorMessage ++ && strcmp(errorMessage, "cannot resume dead coroutine") != 0) + { + cout << "Error: " << errorMessage << '\n'; + CelestiaCore* appCore = getAppCore(co); +@@ -4577,10 +4578,7 @@ + initMaps(); + + // Import the base and math libraries +- lua_baselibopen(state); +- lua_mathlibopen(state); +- lua_tablibopen(state); +- lua_strlibopen(state); ++ luaL_openlibs(state); + + // Add an easy to use wait function, so that script writers can + // live in ignorance of coroutines. There will probably be a significant diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-makefile.am.patch b/sci-astronomy/celestia/files/celestia-1.4.1-makefile.am.patch new file mode 100644 index 000000000..c59a482a1 --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.4.1-makefile.am.patch @@ -0,0 +1,19 @@ +--- Makefile.am.orig 2006-09-19 11:04:28.000000000 +0100 ++++ Makefile.am 2006-09-19 11:03:59.000000000 +0100 +@@ -66,11 +66,11 @@ + ) + + install-data-hook: +- if [ "$(kde_datadir)" -a -d $(kde_datadir)/@PACKAGE@ -a ! -h $(kde_datadir)/@PACKAGE@ ] ; then \ +- mv -f -b $(kde_datadir)/@PACKAGE@/* $(datadir)/@PACKAGE@/ ; \ +- rmdir $(kde_datadir)/@PACKAGE@ ; \ ++ if [ "$(DESTDIR)$(kde_datadir)" -a -d $(DESTDIR)$(kde_datadir)/@PACKAGE@ -a ! -h $(DESTDIR)$(kde_datadir)/@PACKAGE@ ] ; then \ ++ mv -f -b $(DESTDIR)$(kde_datadir)/@PACKAGE@/* $(DESTDIR)$(datadir)/@PACKAGE@/ ; \ ++ rmdir $(DESTDIR)$(kde_datadir)/@PACKAGE@ ; \ + fi +- if [ "$(kde_datadir)" -a ! -h $(kde_datadir)/@PACKAGE@ ] ; then \ +- ln -s $(datadir)/@PACKAGE@ $(kde_datadir)/@PACKAGE@ ; \ ++ if [ "$(DESTDIR)$(kde_datadir)" -a ! -h $(DESTDIR)$(kde_datadir)/@PACKAGE@ ] ; then \ ++ ln -s $(datadir)/@PACKAGE@ $(DESTDIR)$(kde_datadir)/@PACKAGE@ ; \ + fi + diff --git a/sci-astronomy/celestia/files/digest-celestia-1.4.1-r1 b/sci-astronomy/celestia/files/digest-celestia-1.4.1-r1 new file mode 100644 index 000000000..b75d1f3ff --- /dev/null +++ b/sci-astronomy/celestia/files/digest-celestia-1.4.1-r1 @@ -0,0 +1,3 @@ +MD5 be1d36fc97a13b9a276249dbc0efac41 celestia-1.4.1.tar.gz 23966886 +RMD160 c66c2540e329613dace12e5b12b2dae2a4c679e0 celestia-1.4.1.tar.gz 23966886 +SHA256 f9dc34dbc0d53e98534000545802b5ab4a471c3cb3fa08a9c958cbbbeb28d8b5 celestia-1.4.1.tar.gz 23966886 diff --git a/sci-astronomy/celestia/metadata.xml b/sci-astronomy/celestia/metadata.xml new file mode 100644 index 000000000..74fc73287 --- /dev/null +++ b/sci-astronomy/celestia/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> +Celestia is a free real-time space simulation that lets you experience +our universe in three dimensions. Unlike most planetarium software, +Celestia doesn't confine you to the surface of the Earth. You can +travel throughout the solar system, to any of over 100,000 stars, or +even beyond the galaxy. All travel in Celestia is seamless; the +exponential zoom feature lets you explore space across a huge range of +scales, from galaxy clusters down to spacecraft only a few meters +across. A 'point-and-goto' interface makes it simple to navigate +through the universe to the object you want to visit. +</longdescription> +</pkgmetadata> |