From 135b7bcb2825788a020a90c04880aa006a0c44cb Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 1 Sep 2011 11:44:37 -0300 Subject: academic/celestia: Updated for version 1.6.1. Signed-off-by: Niels Horn --- academic/celestia/celestia-1.6.0-gcc45.patch | 51 ------------------------- academic/celestia/celestia-1.6.0-libpng14.patch | 14 ------- academic/celestia/celestia.SlackBuild | 10 +---- academic/celestia/celestia.info | 8 ++-- academic/celestia/slack-desc | 2 +- 5 files changed, 7 insertions(+), 78 deletions(-) delete mode 100644 academic/celestia/celestia-1.6.0-gcc45.patch delete mode 100644 academic/celestia/celestia-1.6.0-libpng14.patch (limited to 'academic/celestia') diff --git a/academic/celestia/celestia-1.6.0-gcc45.patch b/academic/celestia/celestia-1.6.0-gcc45.patch deleted file mode 100644 index 8ee9adb2aa8a..000000000000 --- a/academic/celestia/celestia-1.6.0-gcc45.patch +++ /dev/null @@ -1,51 +0,0 @@ -Fixing build with GCC-4.5 - -http://bugs.gentoo.org/show_bug.cgi?id=317507 - -Patch written by Philipp ---- src/celengine/overlay.h -+++ src/celengine/overlay.h -@@ -12,6 +12,7 @@ - - #include - #include -+#include - #include - - ---- src/celmath/mathlib.h -+++ src/celmath/mathlib.h -@@ -44,11 +44,6 @@ - template T radToDeg(T r) - return r * 180 / static_cast(PI); - } - --template T abs(T x) --{ -- return (x < 0) ? -x : x; --} -- - template T square(T x) - { - return x * x; ---- src/celengine/star.cpp -+++ src/celengine/star.cpp -@@ -10,6 +10,7 @@ - #include - #include - #include -+#include - #include "celestia.h" - #include "astro.h" - #include "orbit.h" ---- src/celestia/celx_object.cpp -+++ src/celestia/celx_object.cpp -@@ -773,7 +773,7 @@ static int object_mark(lua_State* l) - markAlpha = 1.0f; - - Color markColorAlpha(0.0f, 1.0f, 0.0f, 0.9f); -- markColorAlpha = Color::Color(markColor, markAlpha); -+ markColorAlpha = Color(markColor, markAlpha); - - const char* markLabel = celx.safeGetString(6, WrongType, "Fifth argument to object:mark must be a string"); - if (markLabel == NULL) diff --git a/academic/celestia/celestia-1.6.0-libpng14.patch b/academic/celestia/celestia-1.6.0-libpng14.patch deleted file mode 100644 index ac6f07aeac0d..000000000000 --- a/academic/celestia/celestia-1.6.0-libpng14.patch +++ /dev/null @@ -1,14 +0,0 @@ -http://bugs.gentoo.org/show_bug.cgi?id=307429 -http://repos.archlinux.org/wsvn/packages/celestia/trunk/libpng14.patch - ---- src/celengine/image.cpp -+++ src/celengine/image.cpp -@@ -737,7 +737,7 @@ - - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { -- png_set_gray_1_2_4_to_8(png_ptr); -+ png_set_expand_gray_1_2_4_to_8(png_ptr); - } - - if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) diff --git a/academic/celestia/celestia.SlackBuild b/academic/celestia/celestia.SlackBuild index 96a7b5bd724d..4c804df18b2a 100644 --- a/academic/celestia/celestia.SlackBuild +++ b/academic/celestia/celestia.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for celestia -# Copyright 2008-2009 Heinz Wiesinger +# Copyright 2008-2011 Heinz Wiesinger # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=celestia -VERSION=1.6.0 +VERSION=1.6.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,12 +72,6 @@ find . \ # Note that the kde frontend will only build with kde3 FRONTEND=${FRONTEND:-gtk} -# Fix detecting libpng 1.4 -patch -p0 -i $CWD/celestia-1.6.0-libpng14.patch - -# Fix build errors for gcc 4.5 -patch -p0 -i $CWD/celestia-1.6.0-gcc45.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/academic/celestia/celestia.info b/academic/celestia/celestia.info index 6dfd5d7a3759..a03cc3919b53 100644 --- a/academic/celestia/celestia.info +++ b/academic/celestia/celestia.info @@ -1,10 +1,10 @@ PRGNAM="celestia" -VERSION="1.6.0" +VERSION="1.6.1" HOMEPAGE="http://www.shatters.net/celestia/" -DOWNLOAD="http://downloads.sourceforge.net/celestia/celestia-1.6.0.tar.gz" +DOWNLOAD="http://downloads.sourceforge.net/celestia/celestia-1.6.1.tar.gz" +MD5SUM="02208982a431b984502fac909bf380f4" DOWNLOAD_x86_64="" -MD5SUM="9b96a8e7666ab5a26f032b9d605e023d" MD5SUM_x86_64="" MAINTAINER="Heinz Wiesinger" EMAIL="pprkut@liwjatan.at" -APPROVED="dsomero" +APPROVED="Niels Horn" diff --git a/academic/celestia/slack-desc b/academic/celestia/slack-desc index cf5907eecf3e..d019861f2f7a 100644 --- a/academic/celestia/slack-desc +++ b/academic/celestia/slack-desc @@ -5,7 +5,7 @@ # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler----------------------------------------------------| + |-----handy-ruler------------------------------------------------------| celestia: celestia (Realtime Space Simulation) celestia: celestia: A real-time space simulation that lets you experience our universe -- cgit v1.2.3