r5632 - in /packages/libclass-accessor-grouped-perl/trunk: README debian/ debian/changelog debian/compat debian/control debian/copyright debian/rules
eloy at users.alioth.debian.org
eloy at users.alioth.debian.org
Tue Jun 19 12:10:27 UTC 2007
Author: eloy
Date: Tue Jun 19 12:10:27 2007
New Revision: 5632
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=5632
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/libclass-accessor-grouped-perl/trunk/debian/
packages/libclass-accessor-grouped-perl/trunk/debian/changelog
packages/libclass-accessor-grouped-perl/trunk/debian/compat
packages/libclass-accessor-grouped-perl/trunk/debian/control
packages/libclass-accessor-grouped-perl/trunk/debian/copyright
packages/libclass-accessor-grouped-perl/trunk/debian/rules (with props)
Modified:
packages/libclass-accessor-grouped-perl/trunk/README
Modified: packages/libclass-accessor-grouped-perl/trunk/README
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/README?rev=5632&op=diff
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/README (original)
+++ packages/libclass-accessor-grouped-perl/trunk/README Tue Jun 19 12:10:27 2007
@@ -1,105 +1,105 @@
-NAME
- Class::Accessor::Grouped - Lets you build groups of accessors
-
-SYNOPSIS
-DESCRIPTION
- This class lets you build groups of accessors that will call different
- getters and setters.
-
-METHODS
- mk_group_accessors
- Arguments: $group, @fieldspec
- Returns: none
-
- Creates a set of accessors in a given group.
-
- $group is the name of the accessor group for the generated accessors;
- they will call get_$group($field) on get and set_$group($field, $value)
- on set.
-
- @fieldspec is a list of field/accessor names; if a fieldspec is a scalar
- this is used as both field and accessor name, if a listref it is
- expected to be of the form [ $accessor, $field ].
-
- mk_group_ro_accessors
- Arguments: $group, @fieldspec
- Returns: none
-
- Creates a set of read only accessors in a given group. Identical to
- <L:/mk_group_accessors> but accessors will throw an error if passed a
- value rather than setting the value.
-
- mk_group_wo_accessors
- Arguments: $group, @fieldspec
- Returns: none
-
- Creates a set of write only accessors in a given group. Identical to
- <L:/mk_group_accessors> but accessors will throw an error if not passed
- a value rather than getting the value.
-
- make_group_accessor
- Arguments: $group, $field
- Returns: $sub (\CODE)
-
- Returns a single accessor in a given group; called by mk_group_accessors
- for each entry in @fieldspec.
-
- make_group_ro_accessor
- Arguments: $group, $field
- Returns: $sub (\CODE)
-
- Returns a single read-only accessor in a given group; called by
- mk_group_ro_accessors for each entry in @fieldspec.
-
- make_group_wo_accessor
- Arguments: $group, $field
- Returns: $sub (\CODE)
-
- Returns a single write-only accessor in a given group; called by
- mk_group_wo_accessors for each entry in @fieldspec.
-
- get_simple
- Arguments: $field
- Returns: $value
-
- Simple getter for hash-based objects which returns the value for the
- field name passed as an argument.
-
- set_simple
- Arguments: $field, $new_value
- Returns: $new_value
-
- Simple setter for hash-based objects which sets and then returns the
- value for the field name passed as an argument.
-
- get_inherited
- Arguments: $field
- Returns: $value
-
- Simple getter for Classes and hash-based objects which returns the value
- for the field name passed as an argument. This behaves much like
- Class::Data::Accessor where the field can be set in a base class,
- inherited and changed in subclasses, and inherited and changed for
- object instances.
-
- set_inherited
- Arguments: $field, $new_value
- Returns: $new_value
-
- Simple setter for Classes and hash-based objects which sets and then
- returns the value for the field name passed as an argument. When called
- on a hash-based object it will set the appropriate hash key value. When
- called on a class, it will set a class level variable.
-
- Note:: This method will die if you try to set an object variable on a
- non hash-based object.
-
- get_component_class
- Arguments: $field
- Returns: $value
-
- Gets the value of the specified component class.
-
+NAME
+ Class::Accessor::Grouped - Lets you build groups of accessors
+
+SYNOPSIS
+DESCRIPTION
+ This class lets you build groups of accessors that will call different
+ getters and setters.
+
+METHODS
+ mk_group_accessors
+ Arguments: $group, @fieldspec
+ Returns: none
+
+ Creates a set of accessors in a given group.
+
+ $group is the name of the accessor group for the generated accessors;
+ they will call get_$group($field) on get and set_$group($field, $value)
+ on set.
+
+ @fieldspec is a list of field/accessor names; if a fieldspec is a scalar
+ this is used as both field and accessor name, if a listref it is
+ expected to be of the form [ $accessor, $field ].
+
+ mk_group_ro_accessors
+ Arguments: $group, @fieldspec
+ Returns: none
+
+ Creates a set of read only accessors in a given group. Identical to
+ <L:/mk_group_accessors> but accessors will throw an error if passed a
+ value rather than setting the value.
+
+ mk_group_wo_accessors
+ Arguments: $group, @fieldspec
+ Returns: none
+
+ Creates a set of write only accessors in a given group. Identical to
+ <L:/mk_group_accessors> but accessors will throw an error if not passed
+ a value rather than getting the value.
+
+ make_group_accessor
+ Arguments: $group, $field
+ Returns: $sub (\CODE)
+
+ Returns a single accessor in a given group; called by mk_group_accessors
+ for each entry in @fieldspec.
+
+ make_group_ro_accessor
+ Arguments: $group, $field
+ Returns: $sub (\CODE)
+
+ Returns a single read-only accessor in a given group; called by
+ mk_group_ro_accessors for each entry in @fieldspec.
+
+ make_group_wo_accessor
+ Arguments: $group, $field
+ Returns: $sub (\CODE)
+
+ Returns a single write-only accessor in a given group; called by
+ mk_group_wo_accessors for each entry in @fieldspec.
+
+ get_simple
+ Arguments: $field
+ Returns: $value
+
+ Simple getter for hash-based objects which returns the value for the
+ field name passed as an argument.
+
+ set_simple
+ Arguments: $field, $new_value
+ Returns: $new_value
+
+ Simple setter for hash-based objects which sets and then returns the
+ value for the field name passed as an argument.
+
+ get_inherited
+ Arguments: $field
+ Returns: $value
+
+ Simple getter for Classes and hash-based objects which returns the value
+ for the field name passed as an argument. This behaves much like
+ Class::Data::Accessor where the field can be set in a base class,
+ inherited and changed in subclasses, and inherited and changed for
+ object instances.
+
+ set_inherited
+ Arguments: $field, $new_value
+ Returns: $new_value
+
+ Simple setter for Classes and hash-based objects which sets and then
+ returns the value for the field name passed as an argument. When called
+ on a hash-based object it will set the appropriate hash key value. When
+ called on a class, it will set a class level variable.
+
+ Note:: This method will die if you try to set an object variable on a
+ non hash-based object.
+
+ get_component_class
+ Arguments: $field
+ Returns: $value
+
+ Gets the value of the specified component class.
+
__PACKAGE__->mk_group_accessors('component_class' => 'result_class');
$self->result_class->method();
@@ -107,27 +107,27 @@
## same as
$self->get_component_class('result_class')->method();
- set_component_class
- Arguments: $field, $class
- Returns: $new_value
-
- Inherited accessor that automatically loads the specified class before
- setting it. This method will die if the specified class could not be
- loaded.
-
+ set_component_class
+ Arguments: $field, $class
+ Returns: $new_value
+
+ Inherited accessor that automatically loads the specified class before
+ setting it. This method will die if the specified class could not be
+ loaded.
+
__PACKAGE__->mk_group_accessors('component_class' => 'result_class');
__PACKAGE__->result_class('MyClass');
$self->result_class->method();
- get_super_paths
- Returns a list of 'parent' or 'super' class names that the current class
- inherited from.
-
-AUTHORS
- Matt S. Trout <mst at shadowcatsystems.co.uk> Christopher H. Laco
- <claco at chrislaco.com>
-
-LICENSE
- You may distribute this code under the same terms as Perl itself.
-
+ get_super_paths
+ Returns a list of 'parent' or 'super' class names that the current class
+ inherited from.
+
+AUTHORS
+ Matt S. Trout <mst at shadowcatsystems.co.uk> Christopher H. Laco
+ <claco at chrislaco.com>
+
+LICENSE
+ You may distribute this code under the same terms as Perl itself.
+
Added: packages/libclass-accessor-grouped-perl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/debian/changelog?rev=5632&op=file
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/debian/changelog (added)
+++ packages/libclass-accessor-grouped-perl/trunk/debian/changelog Tue Jun 19 12:10:27 2007
@@ -1,0 +1,5 @@
+libclass-accessor-grouped-perl (0.06000-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Krzysztof Krzyzaniak (eloy) <eloy at debian.org> Tue, 19 Jun 2007 11:52:38 +0200
Added: packages/libclass-accessor-grouped-perl/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/debian/compat?rev=5632&op=file
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/debian/compat (added)
+++ packages/libclass-accessor-grouped-perl/trunk/debian/compat Tue Jun 19 12:10:27 2007
@@ -1,0 +1,1 @@
+5
Added: packages/libclass-accessor-grouped-perl/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/debian/control?rev=5632&op=file
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/debian/control (added)
+++ packages/libclass-accessor-grouped-perl/trunk/debian/control Tue Jun 19 12:10:27 2007
@@ -1,0 +1,15 @@
+Source: libclass-accessor-grouped-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 5.0.0), libmodule-install-perl
+Build-Depends-Indep: perl (>= 5.8.8-7), libmro-compat-perl, libclass-inspector-perl
+Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+Uploaders: Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
+Standards-Version: 3.7.2
+
+Package: libclass-accessor-grouped-perl
+Architecture: all
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, libmro-compat-perl, libclass-inspector-perl
+Description: build groups of accessors
+ Class::Accessor::Grouped lets you build groups of accessors that will call
+ different getters and setters.
Added: packages/libclass-accessor-grouped-perl/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/debian/copyright?rev=5632&op=file
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/debian/copyright (added)
+++ packages/libclass-accessor-grouped-perl/trunk/debian/copyright Tue Jun 19 12:10:27 2007
@@ -1,0 +1,22 @@
+This is the debian package for the Class-Accessor-Grouped module.
+It was created by Krzysztof Krzyzaniak (eloy) <eloy at debian.org> using dh-make-perl.
+
+The upstream authors are:
+
+Matt S. Trout <mst at shadowcatsystems.co.uk>
+Christopher H. Laco <claco at chrislaco.com>.
+
+This program is free software, you can redistribute it and/or modify it under
+the same terms as Perl itself.
+
+Perl is distributed under licenses:
+
+ a) the GNU General Public License as published by the Free Software
+ Foundation; either version 1, or (at your option) any later
+ version, or
+
+ b) the "Artistic License" which comes with Perl.
+
+ 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'.
Added: packages/libclass-accessor-grouped-perl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libclass-accessor-grouped-perl/trunk/debian/rules?rev=5632&op=file
==============================================================================
--- packages/libclass-accessor-grouped-perl/trunk/debian/rules (added)
+++ packages/libclass-accessor-grouped-perl/trunk/debian/rules Tue Jun 19 12:10:27 2007
@@ -1,0 +1,58 @@
+#!/usr/bin/make -f
+
+export PERL_MM_USE_DEFAULT=1
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="-Wall -O2 -g"
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ [ ! -f Makefile ] || $(MAKE) realclean
+ dh_clean build-stamp install-stamp
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ $(MAKE) test
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
+ touch install-stamp
+
+binary-arch:
+# We have nothing to do by default.
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+# 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
Propchange: packages/libclass-accessor-grouped-perl/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-perl-cvs-commits
mailing list