diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-24 09:40:57 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-24 09:40:57 +0000 |
commit | ae88a52fcb429622e74eb0c66cf04e62ef6c043b (patch) | |
tree | 110682834056afb1ce714ea382af05dc1106d445 /sci-astronomy/celestia | |
parent | amd64/x86 stable, bug #269965 (diff) | |
download | historical-ae88a52fcb429622e74eb0c66cf04e62ef6c043b.tar.gz historical-ae88a52fcb429622e74eb0c66cf04e62ef6c043b.tar.bz2 historical-ae88a52fcb429622e74eb0c66cf04e62ef6c043b.zip |
Fix compile with GCC 4.4 wrt #269728, thanks to Victor Ostorga.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'sci-astronomy/celestia')
13 files changed, 51 insertions, 570 deletions
diff --git a/sci-astronomy/celestia/ChangeLog b/sci-astronomy/celestia/ChangeLog index 5207c9404627..2d7d7291e6cc 100644 --- a/sci-astronomy/celestia/ChangeLog +++ b/sci-astronomy/celestia/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for sci-astronomy/celestia -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/ChangeLog,v 1.49 2009/03/02 19:34:35 ranger Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/ChangeLog,v 1.50 2009/05/24 09:40:56 ssuominen Exp $ + + 24 May 2009; Samuli Suominen <ssuominen@gentoo.org> + -celestia-1.4.1-r2.ebuild, -files/celestia-1.4.1-3dsmodels.patch, + -files/celestia-1.4.1-gcc-4.1.patch, + -files/celestia-1.4.1-gnome-desktop.patch, + -files/celestia-1.4.1-kde-datadir.patch, + -files/celestia-1.4.1-kde-desktop.patch, + -files/celestia-1.4.1-locale.patch, -files/celestia-1.4.1-lua51.patch, + -files/celestia-1.4.1-strictalias.patch, celestia-1.5.1.ebuild, + +files/celestia-1.5.1-gcc44.patch: + Fix compile with GCC 4.4 wrt #269728, thanks to Victor Ostorga. 02 Mar 2009; Brent Baude <ranger@gentoo.org> celestia-1.5.1.ebuild: Marking celestia-1.5.1 ppc64 for bug 245168 diff --git a/sci-astronomy/celestia/Manifest b/sci-astronomy/celestia/Manifest index d71eb4784e4b..fe0e88e9a00b 100644 --- a/sci-astronomy/celestia/Manifest +++ b/sci-astronomy/celestia/Manifest @@ -1,21 +1,12 @@ -AUX celestia-1.4.1-3dsmodels.patch 339 RMD160 a7a8dccf16476dc735c8af2fdea99bd5170f5e7a SHA1 4fa3fa941c944579955be460350aeb26ec329ae2 SHA256 79ae1fabb8b9f5683d483fb74975ea04576cd27d4c8e8a159119e8d85fe61dde AUX celestia-1.4.1-as-needed.patch 406 RMD160 3d466263828351e668858ab0d3d66219fa6d2e91 SHA1 5263f2815101e2f417e6c94402365fa1f705cd90 SHA256 369e0a679fba546d85bc8ab41abe72180568f210c55f333dc5c67b38a1e5e705 AUX celestia-1.4.1-cfg.patch 425 RMD160 58ee9017aa389ffd0aa3eeafa2760e8470f8190c SHA1 20183c664d0c62b2e04c0f0ca09eb59c80b4da13 SHA256 5f3ac8eba91d5491d8500c7f25b2c324d03e9a6a6d5641a1ba62086ddca0d374 -AUX celestia-1.4.1-gcc-4.1.patch 1191 RMD160 b9bfae5bc1b5bf93a95760e3fd558645668cdca6 SHA1 40611ff5e1cda402cc8d3f5b064116c43c7b57c3 SHA256 ea26fe154cf92c613c54edd5e0e51c1b8562ee5ccd74ab191a8a386cd8986e67 -AUX celestia-1.4.1-gnome-desktop.patch 517 RMD160 8be45cf8b0af6c083c8a6e57f8d00d316e4995fe SHA1 797ab4e29a6cd22f8c000874a454b6528149b860 SHA256 b56f646de0c4b2ae892020f26a0bb0163ab0bc38fad1ba931dcfa0144a281dd2 -AUX celestia-1.4.1-kde-datadir.patch 1552 RMD160 d080c7a73f3fa9694504fc5c80376ba427110ed5 SHA1 e53a43e91e2a4063580da7ec20b01595bca2c57e SHA256 37e5d60f904929bc93151eb810142b760ae0869ac301a067cca76a1b0a4db0e8 -AUX celestia-1.4.1-kde-desktop.patch 413 RMD160 ab341a4275d567922814080a7abb5cc4d0b167d8 SHA1 faeac832136bc6a04352b040e9ea3689dc2f456c SHA256 a8128d92713ea69250680c20b00e439517464eec423b1cec9fa4aab30911d620 -AUX celestia-1.4.1-locale.patch 7373 RMD160 1ca4a9d612b6c2d0f2bc2800ff3ed1b6b19da20c SHA1 3fbdf528c19a4bd49db6e1ce340ca8b06c323540 SHA256 0c609de10544afeefddc141b8efbec743317fee363a3af180dfb4df368b51b45 -AUX celestia-1.4.1-lua51.patch 2351 RMD160 8c16ce1594bb789521c07c8a14e3738676ca88a4 SHA1 6d49c3e0560e89480d09d431f9b65813f4c408c5 SHA256 4fef305ef77a1cd7f3044288e806914360ff77092bd29416a8ed06a48d1f91ac -AUX celestia-1.4.1-strictalias.patch 367 RMD160 b3f79ab12e78d742adb9e8e6f71d4df25b444404 SHA1 a0623106c9428522982429f281e844d9d7f5c98f SHA256 f38398fef7dd604669e84e46ffe1cbe6514ada92f581b5b30ac0965223d3db54 AUX celestia-1.5.0-desktop.patch 1594 RMD160 04ef01761f3aee6448ee60e06bb6ea508c0920e6 SHA1 5b739ac3b53bf5d8d3d74188b8ad650c6fdc165c SHA256 2f989391f775e3435f0e0e570f747e0d8f38b310ea8ad92ba75099c59203171d AUX celestia-1.5.1-arts.patch 1806 RMD160 af88ff314193c55d56223489f53d46125ea5073d SHA1 d98a9f4b9d7c376922f93243c39fab4cbb5a1ac7 SHA256 ff4bdca96577babaf90df1c965bb67f5cf32dbde527ba2644431e8c29ae87ce3 +AUX celestia-1.5.1-gcc44.patch 1003 RMD160 3a7444ee0750ee32113fb54f0dc74042cdd8d836 SHA1 0444f9bd8a49c4ec905417aff2a2fb4c4aae73bc SHA256 1dab8e91cc720d826f06b4fe53de4b42e9d635818050a791f0cdefc7110daf5c AUX celestia-1.5.1-kde-3.5.patch 1018 RMD160 c39ded08b1fe0caf8eb4f1b2efe3366aeea61935 SHA1 564c5c91ca287382aff31c28a9e762f4e60bf28a SHA256 a4a7281747a9f493f3354f1f1b84f7159b49c1c89f6dd2bf669756c8e8e4ee8f -DIST celestia-1.4.1.tar.gz 23966886 RMD160 c66c2540e329613dace12e5b12b2dae2a4c679e0 SHA1 37863498c43d3078b41027706bfa033bccd949a9 SHA256 f9dc34dbc0d53e98534000545802b5ab4a471c3cb3fa08a9c958cbbbeb28d8b5 DIST celestia-1.5.1-acinclude.patch.bz2 37015 RMD160 dd4e2d538bf633bee691b6ece0a9381e5643bb2a SHA1 b11454a7d1c8bc8c472337c8a0728cf711d98f3c SHA256 b4ccd6a5c24e0074c698bc7d000e6193d182c3908a130a7da2d727a63d1d28b9 DIST celestia-1.5.1-gcc43.patch.bz2 4673 RMD160 8aafd3ea0e93965398ff5493865e2632b65d1fcd SHA1 5237b4799c133d44af0d44c14ad6a9a4b5066003 SHA256 070c812969562948314a784e549c423634fc4eece990e820313682417fdb1fc8 DIST celestia-1.5.1.tar.gz 34144780 RMD160 26f105acfc26a5edccb73fe29c33638804b0f370 SHA1 2d6a117daf6a400ab4c47a5a51c13f2ab601e6db SHA256 5a028dec634c2fd1b2097eb6717f8e6ca5d05052b7f63f5fc205d0cbf254888c -EBUILD celestia-1.4.1-r2.ebuild 3961 RMD160 ddaebb358e6be735c88c5fd3284824f5a695403b SHA1 5ac13316c202b92a403c4382ebbf5fabd5e1ba6c SHA256 6dea08a53a09f70422a8e72310bcfa63dd1f84f77e721abfa902021c6a5c67be -EBUILD celestia-1.5.1.ebuild 4114 RMD160 a091c2c021cd2a47b7b032ac86585f375a1be4e8 SHA1 77f1caf849a44ee99a3f26ffb44224c98205d01c SHA256 9d28da5c4e01135b28f0a3c469c9fc98141563ef0ff87542162e8961cbd70e5c -MISC ChangeLog 13263 RMD160 3eb30d1de452459fb959fc6f5c54e4551ed0cc49 SHA1 c3894b63ca6905d82e12ecf90902149904b7010b SHA256 2389fc8799f40e7192892333a80a9562899d6521e6e88b405a9da37ece9e3fe5 +EBUILD celestia-1.5.1.ebuild 4188 RMD160 b0b27f353b7db63224b7a4846dd1b74026986c46 SHA1 6f8ea7c2c2ac6037cfe9862296e6b7f10c64bdf3 SHA256 5f3fc8aa068a13b7d7caac665e0c238d1c34d4be17df664776714965de57684d +MISC ChangeLog 13801 RMD160 fc99666e34ffe0a52c149b25bc4f9ce0a1f3f5f4 SHA1 6ab10c5bf4b5f1e27d2449e37fc8df9ad026f5c3 SHA256 03f4d17dc2d78d01afd0aac2ee16bc735401c8180de402d9836baf48cf397fce MISC metadata.xml 693 RMD160 902eac97368b5aa5d76c277826e42c3d741e9f99 SHA1 d5e786e1754e130bf4c0ff6d6978fb99ccb5f516 SHA256 3081606dbc2705ae14a2e9a9be830925eefc64bf2426bfee13399cc938e588da diff --git a/sci-astronomy/celestia/celestia-1.4.1-r2.ebuild b/sci-astronomy/celestia/celestia-1.4.1-r2.ebuild deleted file mode 100644 index 87e702225907..000000000000 --- a/sci-astronomy/celestia/celestia-1.4.1-r2.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/celestia-1.4.1-r2.ebuild,v 1.10 2008/02/26 17:33:31 bicatali Exp $ - -WANT_AUTOMAKE="1.9" - -inherit eutils flag-o-matic gnome2 kde-functions autotools - -DESCRIPTION="OpenGL 3D space simulator" -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="cairo gnome gtk kde arts threads nls lua" - -RDEPEND="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 ) - cairo? ( x11-libs/cairo )" - -DEPEND="${RDEPEND} - dev-util/pkgconfig" - -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}" - - # some lua patches to make it work for lua-5.1 - has_version ">=dev-lang/lua-5.1.1" && \ - epatch "${FILESDIR}"/${P}-lua51.patch - - # standard set of gcc-4.1 patches - epatch "${FILESDIR}"/${P}-gcc-4.1.patch - - # fix kde datadir in makefile.am and .desktop location - epatch "${FILESDIR}"/${P}-kde-datadir.patch - - # add a desktop file that doesn't end up in lost+found - epatch "${FILESDIR}"/${P}-kde-desktop.patch - epatch "${FILESDIR}"/${P}-gnome-desktop.patch - - # add a ~/.celestia for extra directories - epatch "${FILESDIR}"/${P}-cfg.patch - - # strict aliasing from fedora - epatch "${FILESDIR}"/${P}-strictalias.patch - - # install 3ds models by requests - epatch "${FILESDIR}"/${P}-3dsmodels.patch - - # fix po/Makefile.in.in to regenerate - epatch "${FILESDIR}"/${P}-locale.patch - - # fix for as-needed (bug #130091) - epatch "${FILESDIR}"/${P}-as-needed.patch - - # remove flags to let the user decide - for cf in -O2 -ffast-math \ - -fexpensive-optimizations \ - -fomit-frame-pointer; do - sed -i \ - -e "s/${cf}//g" \ - configure.in || die "sed failed" - done - - # remove an unused gconf macro killing autoconf when no gnome - if ! use gnome; then - sed -i \ - -e '/AM_GCONF_SOURCE_2/d' \ - configure.in || die "sed failed" - fi - - eautoreconf -} - -src_compile() { - - if [[ "${mygui}" == "kde" ]]; then - set-kdedir 3 - set-qtdir 3 - export kde_widgetdir="${KDEDIR}/lib/kde3/plugins/designer" - fi - addwrite ${QTDIR}/etc/settings - - filter-flags "-funroll-loops -frerun-loop-opt" - - econf \ - --with-${mygui} \ - --enable-pch \ - $(use_with arts) \ - $(use_with lua) \ - $(use_enable cairo) \ - $(use_enable threads threading) \ - $(use_enable nls) \ - || die "econf failed" - - emake || die "emake failed" -} - -src_install() { - if [[ "${mygui}" == "gnome" ]]; then - gnome2_src_install - else - emake DESTDIR="${D}" install || die "emake install 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 *.txt || die - dohtml coding-standards.html || die -} diff --git a/sci-astronomy/celestia/celestia-1.5.1.ebuild b/sci-astronomy/celestia/celestia-1.5.1.ebuild index ae5060f06c1c..1248e81e182e 100644 --- a/sci-astronomy/celestia/celestia-1.5.1.ebuild +++ b/sci-astronomy/celestia/celestia-1.5.1.ebuild @@ -1,11 +1,10 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/celestia-1.5.1.ebuild,v 1.9 2009/03/02 19:34:35 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/celestia-1.5.1.ebuild,v 1.10 2009/05/24 09:40:56 ssuominen Exp $ +EAPI=1 inherit eutils flag-o-matic gnome2 kde-functions autotools -EAPI="1" - DESCRIPTION="OpenGL 3D space simulator" HOMEPAGE="http://www.shatters.net/celestia/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz @@ -88,6 +87,9 @@ src_unpack() { # of kde4 epatch "${FILESDIR}"/${P}-kde-3.5.patch + # missing includes with gcc 4.4 + epatch "${FILESDIR}"/${P}-gcc44.patch + # remove flags to let the user decide for cf in -O2 -ffast-math \ -fexpensive-optimizations \ diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-3dsmodels.patch b/sci-astronomy/celestia/files/celestia-1.4.1-3dsmodels.patch deleted file mode 100644 index d7287c69680f..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-3dsmodels.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- models/Makefile.am 2006-02-02 04:12:26.000000000 +0000 -+++ models/Makefile.am.new 2007-02-12 14:20:19.000000000 +0000 -@@ -3,8 +3,8 @@ - pkgdata_DATA = \ - $(wildcard *.cms) \ - $(wildcard *.cmod) \ -- $(wildcard *.pts) -+ $(wildcard *.pts) \ -+ $(wildcard *.3ds) - - EXTRA_DIST = \ -- $(pkgdata_DATA) \ -- $(wildcard *.3ds) -+ $(pkgdata_DATA) 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 deleted file mode 100644 index 515b429fc2f1..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- 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-gnome-desktop.patch b/sci-astronomy/celestia/files/celestia-1.4.1-gnome-desktop.patch deleted file mode 100644 index 87cfbc927489..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-gnome-desktop.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- src/celestia/gtk/data/celestia.desktop~ 2007-08-25 17:45:09.000000000 +0200 -+++ src/celestia/gtk/data/celestia.desktop 2007-08-25 17:45:09.000000000 +0200 -@@ -1,12 +1,11 @@ - [Desktop Entry] - Encoding=UTF-8 --Version=1.4.0 - Type=Application - Exec=celestia - Icon=celestia --X-GNOME-DocPath= - Terminal=false - Name=Celestia --Comment=Space Simulator -+Comment=Space 3D Simulator -+Comment[es]=Simulador 3D del Espacio - StartupNotify=true --Categories=Astronomy;Science;Application; -+Categories=Education;Science;Astronomy; diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-kde-datadir.patch b/sci-astronomy/celestia/files/celestia-1.4.1-kde-datadir.patch deleted file mode 100644 index 415c3a982cc6..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-kde-datadir.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -Nur ../celestia-1.4.1.orig/Makefile.am ./Makefile.am ---- ../celestia-1.4.1.orig/Makefile.am 2006-02-03 18:04:33.000000000 +0000 -+++ ./Makefile.am 2007-02-12 19:49:21.000000000 +0000 -@@ -66,11 +65,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 [ -n "$(kde_datadir)" -a "$(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 [ -n "$(kde_datadir)" -a "$(DESTDIR)$(kde_datadir)" -a ! -h $(DESTDIR)$(kde_datadir)/@PACKAGE@ ] ; then \ -+ ln -s $(datadir)/@PACKAGE@ $(DESTDIR)$(kde_datadir)/@PACKAGE@ ; \ - fi - -diff -Nur ../celestia-1.4.1.orig/src/celestia/kde/data/Makefile.am ./src/celestia/kde/data/Makefile.am ---- ../celestia-1.4.1.orig/src/celestia/kde/data/Makefile.am 2006-01-07 11:15:48.000000000 +0000 -+++ ./src/celestia/kde/data/Makefile.am 2007-02-12 19:26:45.000000000 +0000 -@@ -14,7 +14,7 @@ - mimedir = $(kde_mimedir)/application - mime_DATA = x-celestia-script.desktop - --appsdir = $(kde_appsdir)/Edutainment/Science -+appsdir = $(datadir)/applications/kde - apps_DATA = celestia.desktop - - KDE_ICON = celestia diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-kde-desktop.patch b/sci-astronomy/celestia/files/celestia-1.4.1-kde-desktop.patch deleted file mode 100644 index 59fb10425e48..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-kde-desktop.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- src/celestia/kde/data/celestia.desktop.orig 2007-03-07 19:34:36.000000000 +0000 -+++ src/celestia/kde/data/celestia.desktop 2007-03-07 19:46:41.000000000 +0000 -@@ -1,8 +1,10 @@ - [Desktop Entry] -+Encoding=UTF-8 - Name=Celestia --Comment=Celestia -+Comment=Space 3D Simulator - Exec=celestia %f - Terminal=false - Icon=celestia.png - MimeType=application/x-celestia-script - Type=Application -+Categories=Qt;KDE;Science; diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-locale.patch b/sci-astronomy/celestia/files/celestia-1.4.1-locale.patch deleted file mode 100644 index f2340dd2ce72..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-locale.patch +++ /dev/null @@ -1,203 +0,0 @@ ---- po/Makefile.in.in 2005-07-19 21:18:52.000000000 +0100 -+++ po/Makefile.in.in.new 2007-02-12 17:51:55.000000000 +0000 -@@ -1,5 +1,5 @@ - # Makefile for PO directory in any package using GNU gettext. --# Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu> -+# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu> - # - # This file can be copied and used freely without restrictions. It can - # be used in projects which are not available under the GNU General Public -@@ -8,10 +8,11 @@ - # Please note that the actual code of GNU gettext is covered by the GNU - # General Public License and is *not* in the public domain. - # --# Origin: gettext-0.14 -+# Origin: gettext-0.15 - - PACKAGE = @PACKAGE@ - VERSION = @VERSION@ -+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ - - SHELL = /bin/sh - @SET_MAKE@ -@@ -22,18 +23,28 @@ - - prefix = @prefix@ - exec_prefix = @exec_prefix@ -+datarootdir = @datarootdir@ - datadir = @datadir@ - localedir = $(datadir)/locale - gettextsrcdir = $(datadir)/gettext/po - - INSTALL = @INSTALL@ - INSTALL_DATA = @INSTALL_DATA@ --MKINSTALLDIRS = @MKINSTALLDIRS@ --mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) -+mkinstalldirs = $(SHELL) @install_sh@ -d -+mkdir_p = @mkdir_p@ - --GMSGFMT = @GMSGFMT@ --MSGFMT = @MSGFMT@ --XGETTEXT = @XGETTEXT@ -+GMSGFMT_ = @GMSGFMT@ -+GMSGFMT_no = @GMSGFMT@ -+GMSGFMT_yes = @GMSGFMT_015@ -+GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) -+MSGFMT_ = @MSGFMT@ -+MSGFMT_no = @MSGFMT@ -+MSGFMT_yes = @MSGFMT_015@ -+MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) -+XGETTEXT_ = @XGETTEXT@ -+XGETTEXT_no = @XGETTEXT@ -+XGETTEXT_yes = @XGETTEXT_015@ -+XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) - MSGMERGE = msgmerge - MSGMERGE_UPDATE = @MSGMERGE@ --update - MSGINIT = msginit -@@ -46,7 +57,7 @@ - DUMMYPOFILES = @DUMMYPOFILES@ - DISTFILES.common = Makefile.in.in remove-potcdate.sin \ - $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) --DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \ -+DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ - $(POFILES) $(GMOFILES) \ - $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) - -@@ -79,6 +90,12 @@ - all-yes: stamp-po - all-no: - -+# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no -+# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because -+# we don't want to bother translators with empty POT files). We assume that -+# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. -+# In this case, stamp-po is a nop (i.e. a phony target). -+ - # stamp-po is a timestamp denoting the last time at which the CATALOGS have - # been loosely updated. Its purpose is that when a developer or translator - # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, -@@ -88,10 +105,13 @@ - # $(POFILES) has been designed to not touch files that don't need to be - # changed. - stamp-po: $(srcdir)/$(DOMAIN).pot -- test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) -- @echo "touch stamp-po" -- @echo timestamp > stamp-poT -- @mv stamp-poT stamp-po -+ test ! -f $(srcdir)/$(DOMAIN).pot || \ -+ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) -+ @test ! -f $(srcdir)/$(DOMAIN).pot || { \ -+ echo "touch stamp-po" && \ -+ echo timestamp > stamp-poT && \ -+ mv stamp-poT stamp-po; \ -+ } - - # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', - # otherwise packages like GCC can not be built if only parts of the source -@@ -100,11 +120,16 @@ - # This target rebuilds $(DOMAIN).pot; it is an expensive operation. - # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. - $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed -+ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ -+ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ -+ else \ -+ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ -+ fi; \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ - --files-from=$(srcdir)/POTFILES.in \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ -- --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' -+ --msgid-bugs-address="$$msgid_bugs_address" - test ! -f $(DOMAIN).po || { \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ -@@ -143,7 +168,7 @@ - install-exec: - install-data: install-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ -- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ -+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - for file in $(DISTFILES.common) Makevars.template; do \ - $(INSTALL_DATA) $(srcdir)/$$file \ - $(DESTDIR)$(gettextsrcdir)/$$file; \ -@@ -156,13 +181,13 @@ - fi - install-data-no: all - install-data-yes: all -- $(mkinstalldirs) $(DESTDIR)$(datadir) -+ $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ -- $(mkinstalldirs) $(DESTDIR)$$dir; \ -+ $(mkdir_p) $(DESTDIR)$$dir; \ - if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ - $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ - echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ -@@ -202,19 +227,19 @@ - installdirs-exec: - installdirs-data: installdirs-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ -- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ -+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - else \ - : ; \ - fi - installdirs-data-no: - installdirs-data-yes: -- $(mkinstalldirs) $(DESTDIR)$(datadir) -+ $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ -- $(mkinstalldirs) $(DESTDIR)$$dir; \ -+ $(mkdir_p) $(DESTDIR)$$dir; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ -@@ -289,11 +314,14 @@ - $(MAKE) update-po - @$(MAKE) dist2 - # This is a separate target because 'update-po' must be executed before. --dist2: $(DISTFILES) -+dist2: stamp-po $(DISTFILES) - dists="$(DISTFILES)"; \ - if test "$(PACKAGE)" = "gettext-tools"; then \ - dists="$$dists Makevars.template"; \ - fi; \ -+ if test -f $(srcdir)/$(DOMAIN).pot; then \ -+ dists="$$dists $(DOMAIN).pot stamp-po"; \ -+ fi; \ - if test -f $(srcdir)/ChangeLog; then \ - dists="$$dists ChangeLog"; \ - fi; \ -@@ -305,9 +333,9 @@ - if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ - for file in $$dists; do \ - if test -f $$file; then \ -- cp -p $$file $(distdir); \ -+ cp -p $$file $(distdir) || exit 1; \ - else \ -- cp -p $(srcdir)/$$file $(distdir); \ -+ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ - fi; \ - done - -@@ -354,10 +382,9 @@ - update-gmo: Makefile $(GMOFILES) - @: - --Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@ -+Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ - cd $(top_builddir) \ -- && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ -- $(SHELL) ./config.status -+ && $(SHELL) ./config.status $(subdir)/$@.in po-directories - - force: - diff --git a/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch b/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch deleted file mode 100644 index e3933a0d6c7f..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff -Nur ../celestia-1.4.1/configure.in ./configure.in ---- ../celestia-1.4.1/configure.in 2006-02-03 18:09:54.000000000 +0000 -+++ ./configure.in 2007-02-12 16:27:42.000000000 +0000 -@@ -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/src/celestia/celx.cpp ./src/celestia/celx.cpp ---- ../celestia-1.4.1/src/celestia/celx.cpp 2006-01-07 00:01:51.000000000 +0000 -+++ ./src/celestia/celx.cpp 2007-02-12 16:27:42.000000000 +0000 -@@ -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-strictalias.patch b/sci-astronomy/celestia/files/celestia-1.4.1-strictalias.patch deleted file mode 100644 index 3ff59b31686a..000000000000 --- a/sci-astronomy/celestia/files/celestia-1.4.1-strictalias.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- celestia-1.4.1/src/celengine/modelfile.cpp.strictalias 2006-11-22 14:04:15.000000000 +0100 -+++ celestia-1.4.1/src/celengine/modelfile.cpp 2006-11-22 14:01:27.000000000 +0100 -@@ -1080,7 +1080,9 @@ - static float readFloat(istream& in) - { - int i = readUint(in); -- return *((float*) &i); -+ float f; -+ memcpy(&f, &i, sizeof(float)); -+ return f; - } - - diff --git a/sci-astronomy/celestia/files/celestia-1.5.1-gcc44.patch b/sci-astronomy/celestia/files/celestia-1.5.1-gcc44.patch new file mode 100644 index 000000000000..6f484484f777 --- /dev/null +++ b/sci-astronomy/celestia/files/celestia-1.5.1-gcc44.patch @@ -0,0 +1,30 @@ +diff -NrU5 celestia-1.5.1.orig/src/celengine/overlay.h celestia-1.5.1/src/celengine/overlay.h +--- celestia-1.5.1.orig/src/celengine/overlay.h 2009-05-17 15:01:34.000000000 -0600 ++++ celestia-1.5.1/src/celengine/overlay.h 2009-05-17 15:02:56.000000000 -0600 +@@ -9,10 +9,11 @@ + + #ifndef _OVERLAY_H_ + #define _OVERLAY_H_ + + #include <string> ++#include <cstdio> + #include <iostream> + #include <celtxf/texturefont.h> + + + class Overlay; +diff -NrU5 celestia-1.5.1.orig/src/celengine/star.cpp celestia-1.5.1/src/celengine/star.cpp +--- celestia-1.5.1.orig/src/celengine/star.cpp 2009-05-17 15:01:34.000000000 -0600 ++++ celestia-1.5.1/src/celengine/star.cpp 2009-05-17 15:03:43.000000000 -0600 +@@ -7,10 +7,11 @@ + // as published by the Free Software Foundation; either version 2 + // of the License, or (at your option) any later version. + + #include <celmath/mathlib.h> + #include <cstring> ++#include <cstdio> + #include <cassert> + #include "celestia.h" + #include "astro.h" + #include "orbit.h" + #include "star.h" |