summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/blassic/ChangeLog7
-rw-r--r--dev-lang/blassic/blassic-0.10.0.ebuild8
-rw-r--r--dev-lang/blassic/files/blassic-0.10.0-gcc43.patch78
3 files changed, 91 insertions, 2 deletions
diff --git a/dev-lang/blassic/ChangeLog b/dev-lang/blassic/ChangeLog
index b8afb23433e5..1132e514de0a 100644
--- a/dev-lang/blassic/ChangeLog
+++ b/dev-lang/blassic/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/blassic
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/blassic/ChangeLog,v 1.24 2008/01/11 21:51:54 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/blassic/ChangeLog,v 1.25 2008/12/17 22:32:15 mr_bones_ Exp $
+
+ 17 Dec 2008; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/blassic-0.10.0-gcc43.patch, blassic-0.10.0.ebuild:
+ add patch to enable building with gcc43 submitted by Yaroslav Gorbunov via bug
+ #250832
11 Jan 2008; Fabian Groffen <grobian@gentoo.org> blassic-0.10.0.ebuild:
Dropped ppc-macos keyword, see you in prefix
diff --git a/dev-lang/blassic/blassic-0.10.0.ebuild b/dev-lang/blassic/blassic-0.10.0.ebuild
index 605cae5b69ba..aadb75e142bb 100644
--- a/dev-lang/blassic/blassic-0.10.0.ebuild
+++ b/dev-lang/blassic/blassic-0.10.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/blassic/blassic-0.10.0.ebuild,v 1.10 2008/01/11 21:51:54 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/blassic/blassic-0.10.0.ebuild,v 1.11 2008/12/17 22:32:15 mr_bones_ Exp $
DESCRIPTION="classic Basic interpreter"
HOMEPAGE="http://blassic.org"
@@ -17,6 +17,12 @@ RDEPEND="sys-libs/ncurses
DEPEND="${RDEPEND}
X? ( x11-proto/xproto )"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
src_compile() {
econf \
--disable-dependency-tracking \
diff --git a/dev-lang/blassic/files/blassic-0.10.0-gcc43.patch b/dev-lang/blassic/files/blassic-0.10.0-gcc43.patch
new file mode 100644
index 000000000000..44631a6566d4
--- /dev/null
+++ b/dev-lang/blassic/files/blassic-0.10.0-gcc43.patch
@@ -0,0 +1,78 @@
+diff -Nurpa blassic-0.10.0.orig/cursor.h blassic-0.10.0/cursor.h
+--- blassic-0.10.0.orig/cursor.h 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/cursor.h 2008-12-15 02:46:03.000000000 +0300
+@@ -6,6 +6,7 @@
+
+
+ #include <string>
++#include <cstring>
+
+
+ namespace cursor {
+diff -Nurpa blassic-0.10.0.orig/graphics.cpp blassic-0.10.0/graphics.cpp
+--- blassic-0.10.0.orig/graphics.cpp 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/graphics.cpp 2008-12-15 02:46:03.000000000 +0300
+@@ -24,6 +24,8 @@ using util::to_string;
+ #include <sstream>
+ #include <iomanip>
+
++#include <cstdlib>
++#include <cstring>
+ #include <memory>
+ using std::auto_ptr;
+
+diff -Nurpa blassic-0.10.0.orig/memory.cpp blassic-0.10.0/memory.cpp
+--- blassic-0.10.0.orig/memory.cpp 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/memory.cpp 2008-12-15 02:46:03.000000000 +0300
+@@ -29,6 +29,7 @@
+ #endif
+ // HAVE_SYS_MMAN_H
+
++#include <cstring>
+ #include <iostream>
+ using std::cerr;
+ using std::endl;
+diff -Nurpa blassic-0.10.0.orig/program.cpp blassic-0.10.0/program.cpp
+--- blassic-0.10.0.orig/program.cpp 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/program.cpp 2008-12-15 02:46:03.000000000 +0300
+@@ -18,6 +18,7 @@ using util::to_string;
+ #include <cctype>
+ #include <sstream>
+
++#include <cstring>
+ using std::string;
+ // For debugging.
+ using std::cerr;
+diff -Nurpa blassic-0.10.0.orig/runnerline_instructions.cpp blassic-0.10.0/runnerline_instructions.cpp
+--- blassic-0.10.0.orig/runnerline_instructions.cpp 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/runnerline_instructions.cpp 2008-12-15 02:46:03.000000000 +0300
+@@ -16,6 +16,7 @@ using util::to_string;
+
+ #include "trace.h"
+
++#include <cstring>
+ #include <memory>
+ using std::auto_ptr;
+
+diff -Nurpa blassic-0.10.0.orig/socket.cpp blassic-0.10.0/socket.cpp
+--- blassic-0.10.0.orig/socket.cpp 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/socket.cpp 2008-12-15 02:45:25.000000000 +0300
+@@ -3,6 +3,7 @@
+
+ #include "socket.h"
+
++#include <cstring>
+ //------------------------------------------------
+ // Changed this: now do not use winsock in Cygwin.
+ //------------------------------------------------
+diff -Nurpa blassic-0.10.0.orig/util.h blassic-0.10.0/util.h
+--- blassic-0.10.0.orig/util.h 2008-12-15 02:44:43.000000000 +0300
++++ blassic-0.10.0/util.h 2008-12-15 02:46:03.000000000 +0300
+@@ -8,6 +8,7 @@
+ #include <sstream>
+ #include <stdexcept>
+ #include <iostream>
++#include <cstdlib>
+
+ #ifdef __BORLANDC__
+ #pragma warn -8027