r28046 - /trunk/dh-make-perl/lib/Debian/Dependency.pm
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Dec 11 08:09:08 UTC 2008
Author: dmn
Date: Thu Dec 11 08:09:06 2008
New Revision: 28046
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=28046
Log:
Dependency: add a bit of POD plus a proper copyright and license
Modified:
trunk/dh-make-perl/lib/Debian/Dependency.pm
Modified: trunk/dh-make-perl/lib/Debian/Dependency.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/Debian/Dependency.pm?rev=28046&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/Debian/Dependency.pm (original)
+++ trunk/dh-make-perl/lib/Debian/Dependency.pm Thu Dec 11 08:09:06 2008
@@ -3,31 +3,34 @@
use strict;
use warnings;
-# The C<Dep> class represent a dependency relationship in an opaque way
-#
-# SYNOPSIS
-#
-# my $d = Dep->new( 'perl' ); # simple dependency
-# my $d = Dep->new('perl (>= 5.10)'); # also parses a single argument
-# my $d = Dep->new( 'perl', '5.10' ); # dependency with a version
-# my $d = Dep->new( 'perl', '>=', '5.10' );
-# # dependency with version and relation
-# print $d->pkg; # 'perl'
-# print $d->ver; # '5.10
-#
-# # for people who like to type much
-# my $d = Dep->new( { pkg => 'perl', ver => '5.10' } );
-#
-# # stringification
-# print "$d" # 'perl (>= 5.10)'
-#
-# # parsing lists
-# my @list = Dep->parse_list( 'perl (>= 5.10), libc (>= 2.7)' );
-# print $list[0]->ver; # '5.10'
-#
-# # <= relationship
-# my @list = Dep->parse_list( 'perl (<= 5.11)' ); # UNSUPPORTED
-#
+=head1 NAME
+
+Debian::Dependency -- dependency relationship between Debian packages
+
+=head1 SYNOPSIS
+
+ my $d = Dep->new( 'perl' ); # simple dependency
+ my $d = Dep->new('perl (>= 5.10)'); # also parses a single argument
+ my $d = Dep->new( 'perl', '5.10' ); # dependency with a version
+ my $d = Dep->new( 'perl', '>=', '5.10' );
+ # dependency with version and relation
+ print $d->pkg; # 'perl'
+ print $d->ver; # '5.10
+
+ # for people who like to type much
+ my $d = Dep->new( { pkg => 'perl', ver => '5.10' } );
+
+ # stringification
+ print "$d" # 'perl (>= 5.10)'
+
+ # parsing lists
+ my @list = Dep->parse_list( 'perl (>= 5.10), libc (>= 2.7)' );
+ print $list[0]->ver; # '5.10'
+
+ # <= relationship
+ my @list = Dep->parse_list( 'perl (<= 5.11)' ); # UNSUPPORTED
+
+=cut
use base qw(Class::Accessor);
__PACKAGE__->mk_accessors(qw( pkg ver rel ));
@@ -119,3 +122,32 @@
1;
+=head1 AUTHOR
+
+=over 4
+
+=item Damyan Ivanov <dmn at debian.org>
+
+=back
+
+=head1 COPYRIGHT & LICENSE
+
+=over 4
+
+=item Copyright (C) 2008 Damyan Ivanov <dmn at debian.org>
+
+=back
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License version 2 as published by the Free
+Software Foundation.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
+Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+=cut
More information about the Pkg-perl-cvs-commits
mailing list