summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Schouten <hkbst@gentoo.org>2008-08-24 14:50:52 +0000
committerMarijn Schouten <hkbst@gentoo.org>2008-08-24 14:50:52 +0000
commiteef10b2ae9746a6aa0017a18126cd9df8d93822b (patch)
tree889b9d2573bff0b472bf683405c5b0e01b5ec3c7 /dev-lang/swig
parentmask dxr* use flags on ppc64 for mplayer - bug #234629 (diff)
downloadgentoo-2-eef10b2ae9746a6aa0017a18126cd9df8d93822b.tar.gz
gentoo-2-eef10b2ae9746a6aa0017a18126cd9df8d93822b.tar.bz2
gentoo-2-eef10b2ae9746a6aa0017a18126cd9df8d93822b.zip
add fix for compiling against drscheme-4, bug 235596, thanks to Dmitry Dzhus <dima@sphinx.net.ru> for the fix.
(Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r8 x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-lang/swig')
-rw-r--r--dev-lang/swig/ChangeLog7
-rw-r--r--dev-lang/swig/files/fix-for-PLT4.patch11
-rw-r--r--dev-lang/swig/swig-1.3.36.ebuild11
3 files changed, 27 insertions, 2 deletions
diff --git a/dev-lang/swig/ChangeLog b/dev-lang/swig/ChangeLog
index cac454ede488..3bdb0a21f819 100644
--- a/dev-lang/swig/ChangeLog
+++ b/dev-lang/swig/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/swig
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/ChangeLog,v 1.118 2008/08/23 05:47:34 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/ChangeLog,v 1.119 2008/08/24 14:50:52 hkbst Exp $
+
+ 24 Aug 2008; Marijn Schouten <hkBst@gentoo.org> +files/fix-for-PLT4.patch,
+ swig-1.3.36.ebuild:
+ add fix for compiling against drscheme-4, bug 235596, thanks to Dmitry
+ Dzhus <dima@sphinx.net.ru> for the fix.
23 Aug 2008; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Add GLEP 56 USE flag descriptions.
diff --git a/dev-lang/swig/files/fix-for-PLT4.patch b/dev-lang/swig/files/fix-for-PLT4.patch
new file mode 100644
index 000000000000..08d6537440e7
--- /dev/null
+++ b/dev-lang/swig/files/fix-for-PLT4.patch
@@ -0,0 +1,11 @@
+--- /home/sphinx/swig-1.3.36/configure.in 2008-06-24 00:26:07.000000000 +0400
++++ /home/sphinx/swig-1.3.36-nu/configure.in 2008-08-24 12:45:05.000000000 +0400
+@@ -1082,7 +1082,7 @@
+
+ if test -n "$MZSCHEME"; then
+ AC_MSG_CHECKING(for MzScheme dynext object)
+-MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) (expand-for-link-variant (current-standard-link-libraries)))))'`
++MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a " x)) (expand-for-link-variant (current-standard-link-libraries)))))'`
+ AC_MSG_RESULT($MZDYNOBJ)
+ fi
+ fi
diff --git a/dev-lang/swig/swig-1.3.36.ebuild b/dev-lang/swig/swig-1.3.36.ebuild
index 1daf9bc57951..fc771e73b75a 100644
--- a/dev-lang/swig/swig-1.3.36.ebuild
+++ b/dev-lang/swig/swig-1.3.36.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/swig/swig-1.3.36.ebuild,v 1.1 2008/06/25 09:04:27 hkbst Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-1.3.36.ebuild,v 1.2 2008/08/24 14:50:52 hkbst Exp $
inherit flag-o-matic mono eutils #48511
@@ -35,6 +35,15 @@ tk? ( dev-lang/tk )
"
# gcj? ( sys-devel/gcc[+gcj] )
+src_unpack() {
+ unpack ${A};cd "${S}"
+
+ if has_version '>=dev-scheme/drscheme-4'; then
+ epatch "${FILESDIR}"/fix-for-PLT4.patch
+ ./autogen.sh
+ fi
+}
+
src_compile() {
strip-flags