summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/swig/Manifest16
-rw-r--r--dev-lang/swig/files/swig-2.0.7_bug-417823.patch66
-rw-r--r--dev-lang/swig/swig-2.0.7-r1.ebuild49
3 files changed, 124 insertions, 7 deletions
diff --git a/dev-lang/swig/Manifest b/dev-lang/swig/Manifest
index a4bca292..1f83ca2e 100644
--- a/dev-lang/swig/Manifest
+++ b/dev-lang/swig/Manifest
@@ -1,17 +1,19 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX swig-2.0.7_bug-417823.patch 4536 RMD160 41ae1cd29a49e1083dba85435948e9823d31d7e2 SHA1 e2206b33816233999c7806cfe6a8eaa196cb7fc4 SHA256 35077dd580756ba189abe274418e20c4c6a407685422bb14c47867381f82e9bb
DIST swig-2.0.7.tar.gz 5281076 RMD160 2183dbd51b8c548e0f657df707c911c6dc60cdd8 SHA1 307020fb6437092e32c9c1bd9af8bccb1645b529 SHA256 ac1f29be405d78b3848c8ba76add2deffc2cdc166c9a1773eda7972ba3898967
+EBUILD swig-2.0.7-r1.ebuild 1199 RMD160 6d04a024716737f47be7dad2dafe5a0631816ae7 SHA1 a137eb12ba55986b8000d63eedd8068ab37b0b6c SHA256 2213f97b636f23f42c4cd47f0293565c3a465757cdd128dd4c615ea1a86d4158
EBUILD swig-2.0.7.ebuild 1055 RMD160 f1a7e88ebf55c0bb341e5b4a18f4c990beb0ba87 SHA1 619946011c39ddf437570bdc03100fc0b30e1fe7 SHA256 24625b66d1d11150696fa36f02f6259ccb81de66438bc1767bdba2daf1a367c0
MISC metadata.xml 956 RMD160 b26e212d1522661e27f2141db2aebfd8625f8e67 SHA1 91eb76f152ed9c1faba2678d823f75634519cb19 SHA256 e0d747d1fc0ddfd97fbfdb0f4d53ee635e5f0b435dd36b6e2c5943cbb34d41f8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iQEcBAEBAgAGBQJPwnC3AAoJED15R4++Y6lvJB4IAOdglbIXORoYUcS2AwN0hM0b
-trY5NPbPoUX9uGzEiPUOV1OMr0cAZLXE8OfAvE5q4FbYXF25YI6UcoYL2Hs7+dNt
-8HfED0KC5v+2+wxQ2SJcc5zbkhnlj43epwPF1aBVDxdsP3btuH2GL2hM7ZW0zPcq
-YZQUdxLjWc6tt696tRCoggM1PsWnrChoQte8OT6Lq1cCVAqs95eVzL10hJXgX4e4
-3wxZbEVDl0sVkrLdfL9Iyww4G0zx5paVB8+quU0QNrG5L15Mfy4I9bLbO50Gp098
-cVkbH4BWgy7IhsTR5NQnCspTRAiw9xn9eD8yUfBXVHVC9McyY5iI/fxjGrD/DV8=
-=r+E7
+iQEcBAEBAgAGBQJPw1ZxAAoJED15R4++Y6lvSOEIALTWtCyN1lVYiIl+dlVdYcw+
+iW00trDxVB29EyMNEx2QhOFFx8xFp+vrKDaJyExB8aon9/7iLjppd8/Ek5bUUgsg
+ZvOm0JFKWik0o61Ss3dhYZ831Yffn1bLpz2hAjZhAfrkhPWVfF+iGg+IFLpo/lkZ
+450UzCSw0Bz/x0UlNBI/AbU5lWgClYsIFxjQAYs+Lg9qGBh2uGM3c/D6fl6GEahm
+tey05eveDN5zymsnRyZICaxS2k1P1i6lEe7AllTkmes6NaBgoMvyadX2IaLh+Mr/
+klwnaPyaBTpDOYtnKLfwy28PLaI9Nm3wjYrGg9kHvmdURhBLDj/SOpNMk3vCq/8=
+=rPrt
-----END PGP SIGNATURE-----
diff --git a/dev-lang/swig/files/swig-2.0.7_bug-417823.patch b/dev-lang/swig/files/swig-2.0.7_bug-417823.patch
new file mode 100644
index 00000000..c4fc0e2b
--- /dev/null
+++ b/dev-lang/swig/files/swig-2.0.7_bug-417823.patch
@@ -0,0 +1,66 @@
+Index: Source/Modules/lang.cxx
+===================================================================
+--- Source/Modules/lang.cxx (revision 13127)
++++ Source/Modules/lang.cxx (revision 13128)
+@@ -2623,7 +2623,7 @@
+ Delete(expected_name_resolved);
+ }
+ if (illegal_name) {
+- Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(name));
++ Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(n));
+ Swig_restore(n);
+ return SWIG_NOWRAP;
+ }
+@@ -2760,7 +2760,7 @@
+ }
+
+ if (illegal_name) {
+- Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(name));
++ Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(n));
+ Swig_restore(n);
+ Delete(expected_name);
+ return SWIG_NOWRAP;
+Index: Examples/test-suite/errors/expected.log
+===================================================================
+--- Examples/test-suite/errors/expected.log (revision 13127)
++++ Examples/test-suite/errors/expected.log (revision 13128)
+@@ -227,17 +227,17 @@
+ cpp_extend_destructors.i:85: Warning 302: previous definition of '~JStruct'.
+ cpp_extend_destructors.i:100: Warning 302: Identifier '~LStruct' redefined (ignored),
+ cpp_extend_destructors.i:98: Warning 302: previous definition of '~LStruct'.
+-cpp_extend_destructors.i:24: Warning 521: Illegal destructor name ~NOT_CStruct. Ignored.
+-cpp_extend_destructors.i:30: Warning 521: Illegal destructor name ~NOT_DStruct. Ignored.
+-cpp_extend_destructors.i:44: Warning 521: Illegal destructor name ~NOT_EStruct. Ignored.
+-cpp_extend_destructors.i:50: Warning 521: Illegal destructor name ~NOT_FStruct. Ignored.
+-cpp_extend_destructors.i:65: Warning 521: Illegal destructor name ~NOT_GStruct. Ignored.
+-cpp_extend_destructors.i:72: Warning 521: Illegal destructor name ~NOT_HStruct. Ignored.
+-cpp_extend_destructors.i:81: Warning 521: Illegal destructor name ~NOT_IStruct. Ignored.
+-cpp_extend_destructors.i:86: Warning 521: Illegal destructor name ~NOT_JStruct. Ignored.
+-cpp_extend_destructors.i:92: Warning 521: Illegal destructor name ~NOT_KStruct. Ignored.
+-cpp_extend_destructors.i:99: Warning 521: Illegal destructor name ~NOT_LStruct< int >. Ignored.
+-cpp_extend_destructors.i:99: Warning 521: Illegal destructor name ~NOT_LStruct< short >. Ignored.
++cpp_extend_destructors.i:24: Warning 521: Illegal destructor name CStruct::~NOT_CStruct(). Ignored.
++cpp_extend_destructors.i:30: Warning 521: Illegal destructor name DStruct::~NOT_DStruct(). Ignored.
++cpp_extend_destructors.i:44: Warning 521: Illegal destructor name EStruct::~NOT_EStruct(). Ignored.
++cpp_extend_destructors.i:50: Warning 521: Illegal destructor name FStruct::~NOT_FStruct(). Ignored.
++cpp_extend_destructors.i:65: Warning 521: Illegal destructor name GStruct::~NOT_GStruct(). Ignored.
++cpp_extend_destructors.i:72: Warning 521: Illegal destructor name HStruct::~NOT_HStruct(). Ignored.
++cpp_extend_destructors.i:81: Warning 521: Illegal destructor name IStruct::~NOT_IStruct(). Ignored.
++cpp_extend_destructors.i:86: Warning 521: Illegal destructor name JStruct::~NOT_JStruct(). Ignored.
++cpp_extend_destructors.i:92: Warning 521: Illegal destructor name KStruct::~NOT_KStruct(). Ignored.
++cpp_extend_destructors.i:99: Warning 521: Illegal destructor name LStruct< int >::~NOT_LStruct(). Ignored.
++cpp_extend_destructors.i:99: Warning 521: Illegal destructor name LStruct< short >::~NOT_LStruct(). Ignored.
+
+ :::::::::::::::::::::::::::::::: cpp_extend_redefine.i :::::::::::::::::::::::::::::::::::
+ cpp_extend_redefine.i:9: Warning 302: Identifier 'bar' redefined by %extend (ignored),
+@@ -312,8 +312,8 @@
+ cpp_no_access.i:3: Warning 319: No access specifier given for base class 'foo' (ignored).
+
+ :::::::::::::::::::::::::::::::: cpp_no_return_type.i :::::::::::::::::::::::::::::::::::
+-cpp_no_return_type.i:6: Warning 504: Function R must have a return type. Ignored.
+-cpp_no_return_type.i:10: Warning 504: Function UU must have a return type. Ignored.
++cpp_no_return_type.i:6: Warning 504: Function S::R() must have a return type. Ignored.
++cpp_no_return_type.i:10: Warning 504: Function U::UU() must have a return type. Ignored.
+
+ :::::::::::::::::::::::::::::::: cpp_nobase.i :::::::::::::::::::::::::::::::::::
+ cpp_nobase.i:3: Warning 401: Nothing known about base class 'Bar'. Ignored.
diff --git a/dev-lang/swig/swig-2.0.7-r1.ebuild b/dev-lang/swig/swig-2.0.7-r1.ebuild
new file mode 100644
index 00000000..12729899
--- /dev/null
+++ b/dev-lang/swig/swig-2.0.7-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit base
+
+if [[ ${PV} == "9999" ]] ; then
+ ESVN_REPO_URI="https://swig.svn.sourceforge.net/svnroot/swig/trunk"
+ ESVN_BOOTSTRAP="autogen.sh"
+ inherit subversion
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="Simplified Wrapper and Interface Generator"
+HOMEPAGE="http://www.swig.org/"
+LICENSE="GPL-3 as-is"
+SLOT="0"
+IUSE="ccache doc pcre"
+
+RESTRICT="test"
+
+DEPEND="pcre? ( dev-libs/libpcre )
+ ccache? ( sys-libs/zlib )"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ # Backport from swig trunk; svn diff -r 13127:13128
+ "${FILESDIR}"/${P}_bug-417823.patch
+)
+
+src_configure() {
+ econf \
+ $(use_enable ccache) \
+ $(use_with pcre)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc ANNOUNCE CHANGES CHANGES.current README TODO || die
+ if use doc; then
+ dohtml -r Doc/{Devel,Manual} || die
+ fi
+}