r75218 - in /branches/upstream/libextutils-xspp-perl/current: Changes MANIFEST META.json META.yml lib/ExtUtils/XSpp.pm lib/ExtUtils/XSpp/Node.pm lib/ExtUtils/XSpp/Node/Method.pm t/022_static.t

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Mon Jun 6 20:12:07 UTC 2011


Author: ansgar
Date: Mon Jun  6 20:12:00 2011
New Revision: 75218

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=75218
Log:
[svn-upgrade] new version libextutils-xspp-perl (0.1602)

Added:
    branches/upstream/libextutils-xspp-perl/current/META.json
Modified:
    branches/upstream/libextutils-xspp-perl/current/Changes
    branches/upstream/libextutils-xspp-perl/current/MANIFEST
    branches/upstream/libextutils-xspp-perl/current/META.yml
    branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp.pm
    branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node.pm
    branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node/Method.pm
    branches/upstream/libextutils-xspp-perl/current/t/022_static.t

Modified: branches/upstream/libextutils-xspp-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/Changes?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/Changes (original)
+++ branches/upstream/libextutils-xspp-perl/current/Changes Mon Jun  6 20:12:00 2011
@@ -1,4 +1,7 @@
 Revision history for Perl extension ExtUtils::XSpp.
+
+0.1602   Fri Jun  3 22:08:53 CEST 2011
+	- Fixed code generation for package_static methods.
 
 0.1601   Sat Mar 12 10:21:15 CET 2011
 	- Do not try to rebuld the grammar during CPAN installation.

Modified: branches/upstream/libextutils-xspp-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/MANIFEST?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/MANIFEST (original)
+++ branches/upstream/libextutils-xspp-perl/current/MANIFEST Mon Jun  6 20:12:00 2011
@@ -66,6 +66,7 @@
 lib/ExtUtils/XSpp/Typemap/reference.pm
 lib/ExtUtils/XSpp/Typemap/simple.pm
 MANIFEST
+META.json
 META.yml
 README
 scripts/xspp

Added: branches/upstream/libextutils-xspp-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/META.json?rev=75218&op=file
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/META.json (added)
+++ branches/upstream/libextutils-xspp-perl/current/META.json Mon Jun  6 20:12:00 2011
@@ -1,0 +1,189 @@
+{
+   "abstract" : "XS for C++",
+   "author" : [
+      "Mattia Barbon <mbarbon at cpan.org>"
+   ],
+   "dynamic_config" : 1,
+   "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110930",
+   "license" : [
+      "perl_5"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
+   },
+   "name" : "ExtUtils-XSpp",
+   "prereqs" : {
+      "build" : {
+         "requires" : {
+            "Test::Base" : 0,
+            "Test::Differences" : 0
+         }
+      },
+      "configure" : {
+         "requires" : {
+            "Module::Build" : "0.38"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "Digest::MD5" : "2.0",
+            "ExtUtils::ParseXS" : "2.2202",
+            "perl" : "v5.6.1"
+         }
+      }
+   },
+   "provides" : {
+      "ExtUtils::XSpp" : {
+         "file" : "lib/ExtUtils/XSpp.pm",
+         "version" : "0.1602"
+      },
+      "ExtUtils::XSpp::Cmd" : {
+         "file" : "lib/ExtUtils/XSpp/Cmd.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Driver" : {
+         "file" : "lib/ExtUtils/XSpp/Driver.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception" : {
+         "file" : "lib/ExtUtils/XSpp/Exception.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::code" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/code.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::object" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/object.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::perlcode" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/perlcode.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::simple" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/simple.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::stdmessage" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/stdmessage.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Exception::unknown" : {
+         "file" : "lib/ExtUtils/XSpp/Exception/unknown.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Grammar" : {
+         "file" : "lib/ExtUtils/XSpp/Grammar.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Grammar::YappDriver" : {
+         "file" : "lib/ExtUtils/XSpp/Grammar.pm",
+         "version" : "1.05"
+      },
+      "ExtUtils::XSpp::Lexer" : {
+         "file" : "lib/ExtUtils/XSpp/Lexer.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node" : {
+         "file" : "lib/ExtUtils/XSpp/Node.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Access" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Access.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Argument" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Argument.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Class" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Class.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Comment" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Comment.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Constructor" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Constructor.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Destructor" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Destructor.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Enum" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Enum.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::EnumValue" : {
+         "file" : "lib/ExtUtils/XSpp/Node/EnumValue.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::File" : {
+         "file" : "lib/ExtUtils/XSpp/Node/File.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Function" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Function.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Method" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Method.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Module" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Module.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Package" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Package.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::PercAny" : {
+         "file" : "lib/ExtUtils/XSpp/Node/PercAny.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Preprocessor" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Preprocessor.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Raw" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Raw.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Node::Type" : {
+         "file" : "lib/ExtUtils/XSpp/Node/Type.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Parser" : {
+         "file" : "lib/ExtUtils/XSpp/Parser.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Typemap" : {
+         "file" : "lib/ExtUtils/XSpp/Typemap.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Typemap::parsed" : {
+         "file" : "lib/ExtUtils/XSpp/Typemap/parsed.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Typemap::reference" : {
+         "file" : "lib/ExtUtils/XSpp/Typemap/reference.pm",
+         "version" : 0
+      },
+      "ExtUtils::XSpp::Typemap::simple" : {
+         "file" : "lib/ExtUtils/XSpp/Typemap/simple.pm",
+         "version" : 0
+      }
+   },
+   "release_status" : "stable",
+   "resources" : {
+      "license" : [
+         "http://dev.perl.org/licenses/"
+      ]
+   },
+   "version" : "0.1602"
+}

Modified: branches/upstream/libextutils-xspp-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/META.yml?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/META.yml (original)
+++ branches/upstream/libextutils-xspp-perl/current/META.yml Mon Jun  6 20:12:00 2011
@@ -6,8 +6,9 @@
   Test::Base: 0
   Test::Differences: 0
 configure_requires:
-  Module::Build: 0.36
-generated_by: 'Module::Build version 0.3624'
+  Module::Build: 0.38
+dynamic_config: 1
+generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110930'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,82 +17,116 @@
 provides:
   ExtUtils::XSpp:
     file: lib/ExtUtils/XSpp.pm
-    version: 0.1601
+    version: 0.1602
   ExtUtils::XSpp::Cmd:
     file: lib/ExtUtils/XSpp/Cmd.pm
+    version: 0
   ExtUtils::XSpp::Driver:
     file: lib/ExtUtils/XSpp/Driver.pm
+    version: 0
   ExtUtils::XSpp::Exception:
     file: lib/ExtUtils/XSpp/Exception.pm
+    version: 0
   ExtUtils::XSpp::Exception::code:
     file: lib/ExtUtils/XSpp/Exception/code.pm
+    version: 0
   ExtUtils::XSpp::Exception::object:
     file: lib/ExtUtils/XSpp/Exception/object.pm
+    version: 0
   ExtUtils::XSpp::Exception::perlcode:
     file: lib/ExtUtils/XSpp/Exception/perlcode.pm
+    version: 0
   ExtUtils::XSpp::Exception::simple:
     file: lib/ExtUtils/XSpp/Exception/simple.pm
+    version: 0
   ExtUtils::XSpp::Exception::stdmessage:
     file: lib/ExtUtils/XSpp/Exception/stdmessage.pm
+    version: 0
   ExtUtils::XSpp::Exception::unknown:
     file: lib/ExtUtils/XSpp/Exception/unknown.pm
+    version: 0
   ExtUtils::XSpp::Grammar:
     file: lib/ExtUtils/XSpp/Grammar.pm
+    version: 0
   ExtUtils::XSpp::Grammar::YappDriver:
     file: lib/ExtUtils/XSpp/Grammar.pm
     version: 1.05
   ExtUtils::XSpp::Lexer:
     file: lib/ExtUtils/XSpp/Lexer.pm
+    version: 0
   ExtUtils::XSpp::Node:
     file: lib/ExtUtils/XSpp/Node.pm
+    version: 0
   ExtUtils::XSpp::Node::Access:
     file: lib/ExtUtils/XSpp/Node/Access.pm
+    version: 0
   ExtUtils::XSpp::Node::Argument:
     file: lib/ExtUtils/XSpp/Node/Argument.pm
+    version: 0
   ExtUtils::XSpp::Node::Class:
     file: lib/ExtUtils/XSpp/Node/Class.pm
+    version: 0
   ExtUtils::XSpp::Node::Comment:
     file: lib/ExtUtils/XSpp/Node/Comment.pm
+    version: 0
   ExtUtils::XSpp::Node::Constructor:
     file: lib/ExtUtils/XSpp/Node/Constructor.pm
+    version: 0
   ExtUtils::XSpp::Node::Destructor:
     file: lib/ExtUtils/XSpp/Node/Destructor.pm
+    version: 0
   ExtUtils::XSpp::Node::Enum:
     file: lib/ExtUtils/XSpp/Node/Enum.pm
+    version: 0
   ExtUtils::XSpp::Node::EnumValue:
     file: lib/ExtUtils/XSpp/Node/EnumValue.pm
+    version: 0
   ExtUtils::XSpp::Node::File:
     file: lib/ExtUtils/XSpp/Node/File.pm
+    version: 0
   ExtUtils::XSpp::Node::Function:
     file: lib/ExtUtils/XSpp/Node/Function.pm
+    version: 0
   ExtUtils::XSpp::Node::Method:
     file: lib/ExtUtils/XSpp/Node/Method.pm
+    version: 0
   ExtUtils::XSpp::Node::Module:
     file: lib/ExtUtils/XSpp/Node/Module.pm
+    version: 0
   ExtUtils::XSpp::Node::Package:
     file: lib/ExtUtils/XSpp/Node/Package.pm
+    version: 0
   ExtUtils::XSpp::Node::PercAny:
     file: lib/ExtUtils/XSpp/Node/PercAny.pm
+    version: 0
   ExtUtils::XSpp::Node::Preprocessor:
     file: lib/ExtUtils/XSpp/Node/Preprocessor.pm
+    version: 0
   ExtUtils::XSpp::Node::Raw:
     file: lib/ExtUtils/XSpp/Node/Raw.pm
+    version: 0
   ExtUtils::XSpp::Node::Type:
     file: lib/ExtUtils/XSpp/Node/Type.pm
+    version: 0
   ExtUtils::XSpp::Parser:
     file: lib/ExtUtils/XSpp/Parser.pm
+    version: 0
   ExtUtils::XSpp::Typemap:
     file: lib/ExtUtils/XSpp/Typemap.pm
+    version: 0
   ExtUtils::XSpp::Typemap::parsed:
     file: lib/ExtUtils/XSpp/Typemap/parsed.pm
+    version: 0
   ExtUtils::XSpp::Typemap::reference:
     file: lib/ExtUtils/XSpp/Typemap/reference.pm
+    version: 0
   ExtUtils::XSpp::Typemap::simple:
     file: lib/ExtUtils/XSpp/Typemap/simple.pm
+    version: 0
 requires:
   Digest::MD5: 2.0
   ExtUtils::ParseXS: 2.2202
   perl: v5.6.1
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.1601
+version: 0.1602

Modified: branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp.pm?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp.pm (original)
+++ branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp.pm Mon Jun  6 20:12:00 2011
@@ -5,6 +5,6 @@
 
 use ExtUtils::XSpp::Driver;
 
-our $VERSION = '0.1601';
+our $VERSION = '0.1602';
 
 1;

Modified: branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node.pm?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node.pm (original)
+++ branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node.pm Mon Jun  6 20:12:00 2011
@@ -62,7 +62,7 @@
 
     return $this->emit_condition if $this->emit_condition;
     return 'defined( ' . $this->condition . ' )' if $this->condition;
-    return undef;
+    return '1';
 }
 
 sub emit_condition { $_[0]->{EMIT_CONDITION} }

Modified: branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node/Method.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node/Method.pm?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node/Method.pm (original)
+++ branches/upstream/libextutils-xspp-perl/current/lib/ExtUtils/XSpp/Node/Method.pm Mon Jun  6 20:12:00 2011
@@ -52,8 +52,16 @@
 
 =cut
 
-sub perl_function_name { $_[0]->class->cpp_name . '::' .
-                         $_[0]->perl_name }
+sub perl_function_name {
+    my( $self ) = @_;
+
+    if( $self->package_static ) {
+        return $self->perl_name;
+    } else {
+        return $self->class->cpp_name . '::' . $self->perl_name;
+    }
+}
+
 sub _call_code {
     my( $self ) = @_;
 

Modified: branches/upstream/libextutils-xspp-perl/current/t/022_static.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libextutils-xspp-perl/current/t/022_static.t?rev=75218&op=diff
==============================================================================
--- branches/upstream/libextutils-xspp-perl/current/t/022_static.t (original)
+++ branches/upstream/libextutils-xspp-perl/current/t/022_static.t Mon Jun  6 20:12:00 2011
@@ -25,7 +25,7 @@
 MODULE=Foo PACKAGE=Foo
 
 int
-Foo::foo( int a )
+foo( int a )
   CODE:
     try {
       RETVAL = Foo::foo( a );




More information about the Pkg-perl-cvs-commits mailing list