summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-05-24 09:40:57 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-05-24 09:40:57 +0000
commit074ea459cd4d81aebbeae9f4f495e1b63c7b6626 (patch)
tree97fa5306a9520aca2ac9e25c13bed29de868f373 /sci-astronomy/celestia
parentamd64/x86 stable, bug #269965 (diff)
downloadgentoo-2-074ea459cd4d81aebbeae9f4f495e1b63c7b6626.tar.gz
gentoo-2-074ea459cd4d81aebbeae9f4f495e1b63c7b6626.tar.bz2
gentoo-2-074ea459cd4d81aebbeae9f4f495e1b63c7b6626.zip
Fix compile with GCC 4.4 wrt #269728, thanks to Victor Ostorga.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'sci-astronomy/celestia')
-rw-r--r--sci-astronomy/celestia/ChangeLog15
-rw-r--r--sci-astronomy/celestia/celestia-1.4.1-r2.ebuild156
-rw-r--r--sci-astronomy/celestia/celestia-1.5.1.ebuild8
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-3dsmodels.patch14
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-gcc-4.1.patch28
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-gnome-desktop.patch18
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-kde-datadir.patch32
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-kde-desktop.patch14
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-locale.patch203
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-lua51.patch75
-rw-r--r--sci-astronomy/celestia/files/celestia-1.4.1-strictalias.patch13
-rw-r--r--sci-astronomy/celestia/files/celestia-1.5.1-gcc44.patch30
12 files changed, 48 insertions, 558 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/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"