debian/0000755000000000000000000000000012220174510007160 5ustar debian/patches/0000755000000000000000000000000012220174524010614 5ustar debian/patches/01-hashorder0000644000000000000000000000204512217467251012745 0ustar Description: fix #723925 by allowing for random hash key ordering Author: Alexander Zangerl --- a/t/130_trait_runtime_instance.t +++ b/t/130_trait_runtime_instance.t @@ -122,7 +122,7 @@ require Extra::TSpouse; eval { Extra::TSpouse->apply($foo) }; ok $@, 'Trying to apply a runtime trait with unmet requirements should fail'; -like $@, qr/Requirement \(alimony\) for Extra::TSpouse not in Foo::/, +like $@, qr/Requirement \((alimony|lawyer)\) for Extra::TSpouse not in Foo::/, '... with an appropriate error message'; ok $foo->isa($anon_package), --- a/t/140_trait_runtime_class.t +++ b/t/140_trait_runtime_class.t @@ -147,7 +147,7 @@ is_deeply \@does, [qw/TBomb TSpouse/], clean_inc(); eval { Class::Trait->apply(Foo => 'Extra::TSpouse') }; ok $@, 'Trying to apply a runtime trait with unmet requirements should fail'; -like $@, qr/Requirement \(alimony\) for Extra::TSpouse not in Foo/, +like $@, qr/Requirement \((alimony|lawyer)\) for Extra::TSpouse not in Foo/, '... with an appropriate error message'; clean_inc(); debian/patches/series0000644000000000000000000000002412220174366012031 0ustar 01-hashorder 01-man debian/patches/01-man0000644000000000000000000000061612220174524011533 0ustar Description: fix lintian warnings about manpages Author: Alexander Zangerl --- a/lib/Class/Trait/Base.pm +++ b/lib/Class/Trait/Base.pm @@ -61,7 +61,6 @@ traits. Not much going on here, just an AUTOLOAD method to help properly dispatch calls to C and an C method. -############################################################################## =head2 apply debian/changelog0000644000000000000000000000363112220174504011040 0ustar libclass-trait-perl (0.31-4) unstable; urgency=low * updated long description to include module name * fixed man page to silence lintian -- Alexander Zangerl Tue, 24 Sep 2013 12:16:51 +1000 libclass-trait-perl (0.31-3) unstable; urgency=low * some tests failed with perl 5.18 because of assumptions re hash key ordering which are no longer true with 5.18 (closes: #723925) -- Alexander Zangerl Sun, 22 Sep 2013 14:14:47 +1000 libclass-trait-perl (0.31-2) unstable; urgency=low * lifted standards version, debhelper compat level * changes to 3.0 quilt source format (closes: #671657) -- Alexander Zangerl Mon, 16 Sep 2013 00:17:31 +1000 libclass-trait-perl (0.31-1) unstable; urgency=low * New upstream release (closes: #578946) -- Alexander Zangerl Sun, 25 Apr 2010 14:18:21 +1000 libclass-trait-perl (0.22-5) unstable; urgency=low * lifted standards version, cleaned some lintian warnings * fixed makemaker DESTDIR/PREFIX issue with perl 5.10.1 -- Alexander Zangerl Wed, 16 Sep 2009 10:26:46 +1000 libclass-trait-perl (0.22-4) unstable; urgency=low * fixed missing (build-)depends on libclass-accessor-perl (closes: #518866) -- Alexander Zangerl Mon, 09 Mar 2009 17:36:21 +1000 libclass-trait-perl (0.22-3) unstable; urgency=low * lifted standards version * dpatch added to build-depends * applied Michael Schwern's patch fixing the conflict with perldebugger and profiler (closes: #425339) -- Alexander Zangerl Mon, 17 Nov 2008 10:30:17 +1000 libclass-trait-perl (0.22-2) unstable; urgency=low * fixed incomplete copyright info. -- Alexander Zangerl Mon, 20 Nov 2006 09:46:53 +1000 libclass-trait-perl (0.22-1) unstable; urgency=low * Initial Release. -- Alexander Zangerl Tue, 14 Nov 2006 12:54:08 +1000 debian/control0000644000000000000000000000206012220173001010553 0ustar Source: libclass-trait-perl Section: perl Priority: optional Build-Depends: debhelper (>= 8.0.0) Build-Depends-Indep: perl (>= 5.10) | libtest-simple-perl (>= 0.62), libtest-differences-perl (>= 0.47), libmodule-build-perl, libclass-accessor-perl Maintainer: Alexander Zangerl Standards-Version: 3.9.4 Package: libclass-trait-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libclass-accessor-perl Description: Implementation of Traits in Perl Traits are a simple composition mechanism for structuring object-oriented programs. A Trait is essentially a parameterized set of methods, which serves as a building block for classes and is the primitive unit of code reuse. Unlike mixins and multiple inheritance, Traits do not use inheritance as the composition operator. Instead, Trait composition is based on a set of operators that are complementary to single inheritance and result in better composition properties. . Traits are a core part of Perl 6 (called Roles there), and Class::Trait implements traits for Perl 5. debian/copyright0000644000000000000000000000122111364741153011122 0ustar This package was debianized by Alexander Zangerl on Mon Nov 20 09:43:56 2006. The upstream author is: Stevan Little, , after an initial development phase started by Curtis "Ovid" Poe . Copyright: Copyright (C) 2004, 2005 Infinity Interactive, Inc. http://www.iinteractive.com This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This means that you may use - at your choice - either the Perl Artistic License or the GNU GPL version 1 or higher. On Debian systems the GPL and similar licenses can be found in /usr/share/common-licenses/. debian/compat0000644000000000000000000000000212215340431010357 0ustar 8 debian/watch0000644000000000000000000000012011364741153010215 0ustar version=3 http://cpan.org/authors/id/O/OV/OVID/Class-Trait-(.*)\.tar\.gz debian debian/libclass-trait-perl.docs0000644000000000000000000000000012215340662013704 0ustar debian/rules0000755000000000000000000000364112215340673010255 0ustar #!/usr/bin/make -f # This debian/rules file is provided as a template for normal perl # packages. It was created by Marc Brockschmidt for # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may # be used freely wherever it is useful. # # It was later modified by Jason Kohles # http://www.jasonkohles.com/ to support Module::Build installed modules # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # If set to a true value then MakeMaker's prompt function will # always return the default without waiting for user input. export PERL_MM_USE_DEFAULT=1 PACKAGE=$(shell dh_listpackages) ifndef PERL PERL = /usr/bin/perl endif TMP =$(CURDIR)/debian/$(PACKAGE) build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir # Add commands to compile the package here $(PERL) Build.PL --installdirs vendor OPTIMIZE="-Wall -O2 -g" $(PERL) Build touch build-stamp clean: dh_testdir dh_testroot # Add commands to clean up after the build process here [ ! -f Build ] || $(PERL) Build distclean dh_clean build-stamp install-stamp install: build install-stamp install-stamp: dh_testdir dh_testroot dh_prep $(PERL) Build test $(PERL) Build install --destdir $(TMP) # module::build insists on a .packlist, lintian dislikes that :-( rm -rf $(TMP)/usr/lib/perl5/auto touch install-stamp binary-arch: # We have nothing to do by default. binary-indep: build install dh_testdir dh_testroot # dh_installcron # dh_installmenu # dh_installexamples dh_installdocs README dh_installchangelogs Changes dh_perl dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary debian/source/0000755000000000000000000000000012215340411010457 5ustar debian/source/format0000644000000000000000000000001412215340411011665 0ustar 3.0 (quilt)