r30985 - in /trunk/libparams-classify-perl: .cvsignore Build.PL Changes MANIFEST META.yml Makefile.PL README SIGNATURE debian/changelog debian/compat debian/control debian/copyright debian/rules lib/Params/Classify.pm t/pod_cvg.t t/pod_syn.t t/purity.t

rmayorga at users.alioth.debian.org rmayorga at users.alioth.debian.org
Sat Feb 21 22:01:13 UTC 2009


Author: rmayorga
Date: Sat Feb 21 22:01:09 2009
New Revision: 30985

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=30985
Log:
* New upstream release
* debian/control:
  + use debhelper version 7
  + bump standards-version to 3.8.0(no changes needed)
  + update my email address
  + s/This module/Params::Classify/ on Depends field
  + remove libscalar-number-perl  from B-D-I and Depends and add it 
    to Suggests
  + add libmodule-build-perl to B-D
* debian/rules: update to use dh 7
* debian/copyright:
  + use the new proposal format
  + set individual contributors for debian/* based on debian/changelog
  + bump upstream copyright years

Added:
    trunk/libparams-classify-perl/Build.PL
      - copied unchanged from r30983, branches/upstream/libparams-classify-perl/current/Build.PL
    trunk/libparams-classify-perl/SIGNATURE
      - copied unchanged from r30983, branches/upstream/libparams-classify-perl/current/SIGNATURE
    trunk/libparams-classify-perl/t/pod_cvg.t
      - copied unchanged from r30983, branches/upstream/libparams-classify-perl/current/t/pod_cvg.t
    trunk/libparams-classify-perl/t/pod_syn.t
      - copied unchanged from r30983, branches/upstream/libparams-classify-perl/current/t/pod_syn.t
Removed:
    trunk/libparams-classify-perl/t/purity.t
Modified:
    trunk/libparams-classify-perl/.cvsignore
    trunk/libparams-classify-perl/Changes
    trunk/libparams-classify-perl/MANIFEST
    trunk/libparams-classify-perl/META.yml
    trunk/libparams-classify-perl/Makefile.PL
    trunk/libparams-classify-perl/README
    trunk/libparams-classify-perl/debian/changelog
    trunk/libparams-classify-perl/debian/compat
    trunk/libparams-classify-perl/debian/control
    trunk/libparams-classify-perl/debian/copyright
    trunk/libparams-classify-perl/debian/rules
    trunk/libparams-classify-perl/lib/Params/Classify.pm

Modified: trunk/libparams-classify-perl/.cvsignore
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/.cvsignore?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/.cvsignore (original)
+++ trunk/libparams-classify-perl/.cvsignore Sat Feb 21 22:01:09 2009
@@ -1,4 +1,4 @@
-Makefile Makefile.old
-blib pm_to_blib
-META.yml
+Build Makefile
+_build blib
+META.yml Makefile.PL SIGNATURE
 Params-Classify-*

Modified: trunk/libparams-classify-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/Changes?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/Changes (original)
+++ trunk/libparams-classify-perl/Changes Sat Feb 21 22:01:09 2009
@@ -1,3 +1,21 @@
+version 0.006; 2009-02-15
+
+  * withdraw is_pure_string() and is_pure_number() functions, because
+    they've never worked right and bring in a big dependency for marginal
+    utility
+
+  * use "base" pragma to import Exporter behaviour
+
+  * test POD syntax and coverage
+
+  * build with Module::Build instead of ExtUtils::MakeMaker
+
+  * complete dependency list
+
+  * include signature in distribution
+
+  * in documentation, separate "license" section from "copyright" section
+
 version 0.005; 2007-09-02
 
   * in t/purity.t, modify purity test on dualvar(0, "0") to operate

Modified: trunk/libparams-classify-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/MANIFEST?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/MANIFEST (original)
+++ trunk/libparams-classify-perl/MANIFEST Sat Feb 21 22:01:09 2009
@@ -1,4 +1,5 @@
 .cvsignore
+Build.PL
 Changes
 MANIFEST
 META.yml
@@ -7,5 +8,7 @@
 lib/Params/Classify.pm
 t/blessed.t
 t/classify.t
-t/purity.t
+t/pod_cvg.t
+t/pod_syn.t
 t/ref.t
+SIGNATURE    Added here by Module::Build

Modified: trunk/libparams-classify-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/META.yml?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/META.yml (original)
+++ trunk/libparams-classify-perl/META.yml Sat Feb 21 22:01:09 2009
@@ -1,12 +1,32 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
-name:         Params-Classify
-version:      0.005
-version_from: lib/Params/Classify.pm
-installdirs:  site
+---
+name: Params-Classify
+version: 0.006
+author:
+  - "Andrew Main (Zefram) <zefram at fysh.org>"
+abstract: argument type classification
+license: perl
 requires:
-    Scalar::Number:                0.000
-    Scalar::Util:                  1.01
-
+  Exporter: 0
+  Scalar::Util: 1.01
+  base: 0
+  perl: 5.006
+  strict: 0
+  warnings: 0
+build_requires:
+  Module::Build: 0
+  Test::More: 0
+  perl: 5.006
+  strict: 0
+  warnings: 0
+dynamic_config: 0
+generated_by: Module::Build version 0.280801
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.2.html
+  version: 1.2
 distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.30_01
+provides:
+  Params::Classify:
+    file: lib/Params/Classify.pm
+    version: 0.006
+resources:
+  license: http://dev.perl.org/licenses/

Modified: trunk/libparams-classify-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/Makefile.PL?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/Makefile.PL (original)
+++ trunk/libparams-classify-perl/Makefile.PL Sat Feb 21 22:01:09 2009
@@ -1,10 +1,32 @@
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-	NAME => "Params::Classify",
-	VERSION_FROM => "lib/Params/Classify.pm",
-	PREREQ_PM => {
-		Scalar::Number => "0.000",
-		Scalar::Util => "1.01",
-	},
-);
+# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
+require 5.006;
+    
+    unless (eval "use Module::Build::Compat 0.02; 1" ) {
+      print "This module requires Module::Build to install itself.\n";
+      
+      require ExtUtils::MakeMaker;
+      my $yn = ExtUtils::MakeMaker::prompt
+	('  Install Module::Build now from CPAN?', 'y');
+      
+      unless ($yn =~ /^y/i) {
+	die " *** Cannot install without Module::Build.  Exiting ...\n";
+      }
+      
+      require Cwd;
+      require File::Spec;
+      require CPAN;
+      
+      # Save this 'cause CPAN will chdir all over the place.
+      my $cwd = Cwd::cwd();
+      
+      CPAN::Shell->install('Module::Build::Compat');
+      CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
+	or die "Couldn't install Module::Build, giving up.\n";
+      
+      chdir $cwd or die "Cannot chdir() back to $cwd: $!";
+    }
+    eval "use Module::Build::Compat 0.02; 1" or die $@;
+    
+    Module::Build::Compat->run_build_pl(args => \@ARGV);
+    require Module::Build;
+    Module::Build::Compat->write_makefile(build_class => 'Module::Build');

Modified: trunk/libparams-classify-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/README?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/README (original)
+++ trunk/libparams-classify-perl/README Sat Feb 21 22:01:09 2009
@@ -17,10 +17,10 @@
 
 INSTALLATION
 
-	perl Makefile.PL
-	make
-	make test
-	make install
+	perl Build.PL
+	./Build
+	./Build test
+	./Build install
 
 AUTHOR
 
@@ -28,7 +28,10 @@
 
 COPYRIGHT
 
-Copyright (C) 2004, 2006, 2007 Andrew Main (Zefram) <zefram at fysh.org>
+Copyright (C) 2004, 2006, 2007, 2009
+Andrew Main (Zefram) <zefram at fysh.org>
+
+LICENSE
 
 This module is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.

Modified: trunk/libparams-classify-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/debian/changelog?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/debian/changelog (original)
+++ trunk/libparams-classify-perl/debian/changelog Sat Feb 21 22:01:09 2009
@@ -1,13 +1,26 @@
-libparams-classify-perl (0.005-3) UNRELEASED; urgency=low
-
+libparams-classify-perl (0.006-1) unstable; urgency=low
+  
   [ gregor herrmann ]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
 
   [ Rene Mayorga ]
-  * debian/control: update my email address.
+  * New upstream release
+  * debian/control:
+    + use debhelper version 7
+    + bump standards-version to 3.8.0(no changes needed)
+    + update my email address
+    + s/This module/Params::Classify/ on Depends field
+    + remove libscalar-number-perl  from B-D-I and Depends and add it 
+      to Suggests
+    + add libmodule-build-perl to B-D
+  * debian/rules: update to use dh 7
+  * debian/copyright:
+    + use the new proposal format
+    + set individual contributors for debian/* based on debian/changelog
+    + bump upstream copyright years
 
- -- Rene Mayorga <rmayorga at debian.org>  Tue, 20 Jan 2009 01:28:23 -0600
+ -- Rene Mayorga <rmayorga at debian.org>  Sat, 21 Feb 2009 15:20:22 -0600
 
 libparams-classify-perl (0.005-2) unstable; urgency=low
 

Modified: trunk/libparams-classify-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/debian/compat?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/debian/compat (original)
+++ trunk/libparams-classify-perl/debian/compat Sat Feb 21 22:01:09 2009
@@ -1,1 +1,1 @@
-5
+7

Modified: trunk/libparams-classify-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/debian/control?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/debian/control (original)
+++ trunk/libparams-classify-perl/debian/control Sat Feb 21 22:01:09 2009
@@ -6,18 +6,19 @@
  gregor herrmann <gregor+debian at comodo.priv.at>,
  Carlo Segre <segre at debian.org>, Damyan Ivanov <dmn at debian.org>,
  Rene Mayorga <rmayorga at debian.org>
-Build-Depends: debhelper (>= 5)
-Build-Depends-Indep: perl (>= 5.8.3), libscalar-number-perl
-Standards-Version: 3.7.3
+Build-Depends: debhelper (>= 7), libmodule-build-perl
+Build-Depends-Indep: perl (>= 5.8.3)
+Standards-Version: 3.8.0
 Homepage: http://search.cpan.org/dist/Params-Classify/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libparams-classify-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libparams-classify-perl/
 
 Package: libparams-classify-perl
 Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libscalar-number-perl
+Depends: ${perl:Depends}, ${misc:Depends}
+Suggests: libscalar-number-perl
 Description: Perl module for argument type classification
- This module provides various type-testing functions. These are intended
+ Params::Classify provides various type-testing functions. These are intended
  for functions that, unlike most Perl code, care what type of data they
  are operating on. For example, some functions wish to behave
  differently depending on the type of their arguments (like overloaded

Modified: trunk/libparams-classify-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/debian/copyright?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/debian/copyright (original)
+++ trunk/libparams-classify-perl/debian/copyright Sat Feb 21 22:01:09 2009
@@ -1,20 +1,32 @@
-This package was debianized by Florian Ragwitz <florian at mookooh.org> on 
-Sun, 2 May 2004 21:00:20 +0200 and is now maintained by the 
-Debian Perl Group.
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Maintainer: Andrew Main (Zefram) <zefram at fysh.org>
+Upstream-Source: http://search.cpan.org/dist/Params-Classify/
+Upstream-Name: Params-Classify
 
-It was downloaded from: http://search.cpan.org/dist/Params-Classify/
+Files: *
+Copyright: © 2004, 2006, 2007, 2009  Andrew Main (Zefram) <zefram at fysh.org>
+License-Alias: Perl
+License: Artistic | GPL-1+
 
-Upstream Author: Andrew Main (Zefram) <zefram at fysh.org>
+Files: debian/*
+Copyright: © 2004 Florian Ragwitz <florian at mookooh.org>
+           © 2004 Joachim Breitner <nomeata at debian.org>
+	   © 2006-2008 gregor herrmann <gregoa at debian.org>
+	   © 2007 Damyan Ivanov <dmn at debian.org>
+	   © 2009 Rene Mayorga <rmayorga at debian.org>
+License: Artistic | GPL-1+
 
-Copyright:
- Copyright (C) 2004, 2006, 2007 Andrew Main (Zefram) <zefram at fysh.org>
+License: Artistic
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Artistic License, which comes with Perl.
+    On Debian GNU/Linux systems, the complete text of the Artistic License
+    can be found in `/usr/share/common-licenses/Artistic'
 
- This module is free software; you can redistribute it and/or modify it
- under the same terms as Perl itself.
-
-Perl's license allows distribution under either GPL (v1 or later) or Artistic
-licenses.
-
-On Debian GNU/Linux systems, the complete text of the GNU General Public
-License can be found in `/usr/share/common-licenses/GPL' and the Artistic
-Licence in `/usr/share/common-licenses/Artistic'.
+License: GPL-1+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+    On Debian GNU/Linux systems, the complete text of the GNU General
+    Public License can be found in `/usr/share/common-licenses/GPL'

Modified: trunk/libparams-classify-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/debian/rules?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/debian/rules (original)
+++ trunk/libparams-classify-perl/debian/rules Sat Feb 21 22:01:09 2009
@@ -1,60 +1,30 @@
 #!/usr/bin/make -f
 
-ifndef PERL
-	PERL=/usr/bin/perl
-endif
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-configure: configure-stamp
-
-configure-stamp:
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	touch $@
 
 build: build-stamp
-
-build-stamp: configure-stamp 
-	dh_testdir
-	$(MAKE)
-	$(MAKE) test
+build-stamp:
+	dh build
 	touch $@
 
 clean:
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp configure-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) distclean
+	dh $@
 
 install: install-stamp
 install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/libparams-classify-perl
-	#As this is a architecture independent package, we are not supposed to install
-	#stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
-	[ ! -d $(CURDIR)/debian/libparams-classify-perl/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libparams-classify-perl/usr/lib/perl5
+	dh install --before dh_auto_install
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
+	dh install --after dh_auto_install
 	touch $@
-                        	
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs Changes
-	dh_installdocs
-	dh_fixperms
-	dh_compress
-	dh_perl
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+binary-arch:
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
+binary-indep: install
+	dh $@
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep install clean build

Modified: trunk/libparams-classify-perl/lib/Params/Classify.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparams-classify-perl/lib/Params/Classify.pm?rev=30985&op=diff
==============================================================================
--- trunk/libparams-classify-perl/lib/Params/Classify.pm (original)
+++ trunk/libparams-classify-perl/lib/Params/Classify.pm Sat Feb 21 22:01:09 2009
@@ -6,7 +6,7 @@
 
 	use Params::Classify qw(scalar_class
 		is_undef
-		is_string is_number is_pure_string is_pure_number
+		is_string is_number
 		is_glob
 		is_ref ref_type
 		is_blessed blessed_class
@@ -18,8 +18,6 @@
 
 	$ok = is_string($foo);
 	$ok = is_number($foo);
-	$ok = is_pure_string($foo);
-	$ok = is_pure_number($foo);
 
 	$ok = is_glob($foo);
 
@@ -53,17 +51,15 @@
 use warnings;
 use strict;
 
-use Exporter;
 use Scalar::Util 1.01 qw(blessed reftype);
 
-our $VERSION = "0.005";
-
-our @ISA = qw(Exporter);
-
+our $VERSION = "0.006";
+
+use base "Exporter";
 our @EXPORT_OK = qw(
 	scalar_class
 	is_undef
-	is_string is_number is_pure_string is_pure_number
+	is_string is_number
 	is_glob
 	is_ref ref_type
 	is_blessed blessed_class is_strictly_blessed is_able
@@ -222,42 +218,6 @@
 	return !$warned;
 }
 
-=item is_pure_string(ARG)
-
-This returns true iff ARG is defined and an ordinary scalar (i.e.,
-satisfies C<is_string> above) and is fully described by its string value.
-That is, its numeric value is that which would be obtained by automatic
-conversion from the string value.  Such a scalar could have originated
-as a string literal or constructed string.  This excludes many floating
-point number values which stringify lossily.
-
-=cut
-
-sub is_pure_string($) {
-	my($val) = @_;
-	return 0 unless is_string($val);
-	require Scalar::Number;
-	local $SIG{__WARN__} = sub { };
-	return Scalar::Number::sclnum_id_cmp("$val", $val) == 0;
-}
-
-=item is_pure_number(ARG)
-
-This returns true iff ARG is defined and an ordinary scalar (i.e.,
-satisfies C<is_string> above) and is fully described by its numeric value.
-That is, its string value is that which would be obtained by automatic
-conversion from the numeric value.  Such a scalar could have originated
-as a numeric literal or calculated number.  This excludes most strings.
-
-=cut
-
-sub is_pure_number($) {
-	my($val) = @_;
-	return 0 unless is_string($val);
-	require Scalar::Number;
-	return Scalar::Number::scalar_num_part($val) eq $val;
-}
-
 =back
 
 =head2 Typeglobs
@@ -446,7 +406,10 @@
 
 =head1 COPYRIGHT
 
-Copyright (C) 2004, 2006, 2007 Andrew Main (Zefram) <zefram at fysh.org>
+Copyright (C) 2004, 2006, 2007, 2009
+Andrew Main (Zefram) <zefram at fysh.org>
+
+=head1 LICENSE
 
 This module is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.




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