pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/p5-pkgsrc-Dewey Fix documentation -- dewey_cm...
details: https://anonhg.NetBSD.org/pkgsrc/rev/191805002f99
branches: trunk
changeset: 555696:191805002f99
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Mar 07 01:44:50 2009 +0000
description:
Fix documentation -- dewey_cmp and dewey_match texts were swapped.
Noted and patch provided by Mihai Chelaru.
Bump version to 1.1.
diffstat:
pkgtools/p5-pkgsrc-Dewey/Makefile | 5 ++---
pkgtools/p5-pkgsrc-Dewey/files/Changes | 4 ++++
pkgtools/p5-pkgsrc-Dewey/files/Dewey.pm | 16 ++++++++--------
pkgtools/p5-pkgsrc-Dewey/files/README | 2 +-
4 files changed, 15 insertions(+), 12 deletions(-)
diffs (71 lines):
diff -r 77610bb80be7 -r 191805002f99 pkgtools/p5-pkgsrc-Dewey/Makefile
--- a/pkgtools/p5-pkgsrc-Dewey/Makefile Sat Mar 07 01:31:45 2009 +0000
+++ b/pkgtools/p5-pkgsrc-Dewey/Makefile Sat Mar 07 01:44:50 2009 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2008/10/19 19:18:44 he Exp $
+# $NetBSD: Makefile,v 1.13 2009/03/07 01:44:50 wiz Exp $
-DISTNAME= p5-pkgsrc-Dewey-1.0
-PKGREVISION= 2
+DISTNAME= p5-pkgsrc-Dewey-1.1
CATEGORIES= pkgtools perl5
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 77610bb80be7 -r 191805002f99 pkgtools/p5-pkgsrc-Dewey/files/Changes
--- a/pkgtools/p5-pkgsrc-Dewey/files/Changes Sat Mar 07 01:31:45 2009 +0000
+++ b/pkgtools/p5-pkgsrc-Dewey/files/Changes Sat Mar 07 01:44:50 2009 +0000
@@ -1,4 +1,8 @@
Revision history for Perl extension pkgsrc::Dewey.
+1.1 Sat Mar 07 02:44:22 2009
+ - bug fixes
+ - documentation fixes
+
1.0 Mon Oct 17 15:46:19 2005
- first version
diff -r 77610bb80be7 -r 191805002f99 pkgtools/p5-pkgsrc-Dewey/files/Dewey.pm
--- a/pkgtools/p5-pkgsrc-Dewey/files/Dewey.pm Sat Mar 07 01:31:45 2009 +0000
+++ b/pkgtools/p5-pkgsrc-Dewey/files/Dewey.pm Sat Mar 07 01:44:50 2009 +0000
@@ -10,7 +10,7 @@
our @EXPORT = qw(dewey_cmp dewey_match);
-our $VERSION = '1.0';
+our $VERSION = '1.1';
require XSLoader;
XSLoader::load('pkgsrc::Dewey', $VERSION);
@@ -40,17 +40,17 @@
It provides two functions:
C<dewey_cmp()> and C<dewey_match()>.
-C<dewey_cmp(pattern, package)>
+C<dewey_cmp(lhs, op, rhs)>
+compares two pkgsrc Dewey version numbers. Both C<lhs> and
+C<rhs> should be version numbers (not containing any package names).
+If the operator C<op> is invalid, C<dewey_cmp> returns -1.
+Otherwise it returns 1 if the comparison is true and 0 if not.
+
+C<dewey_match(pattern, package)>
compares the C<pattern> against the C<package>, and returns 1 if the
C<package> matches the C<pattern> and 0 if not. Both the C<pattern>
and the C<package> should contain a package name.
-C<dewey_match(lhs, op, rhs)>
-compares two pkgsrc Dewey version numbers. Both C<lhs> and
-C<rhs> should be version numbers (not containing any package names).
-If the operator C<op> is invalid, C<dewey_match> returns -1.
-Otherwise it returns 1 if the comparison is true and 0 if not.
-
=head2 EXPORT
C<dewey_cmp()>,
diff -r 77610bb80be7 -r 191805002f99 pkgtools/p5-pkgsrc-Dewey/files/README
--- a/pkgtools/p5-pkgsrc-Dewey/files/README Sat Mar 07 01:31:45 2009 +0000
+++ b/pkgtools/p5-pkgsrc-Dewey/files/README Sat Mar 07 01:44:50 2009 +0000
@@ -1,4 +1,4 @@
-pkgsrc::Dewey version 1.0
+pkgsrc::Dewey version 1.1
=========================
This Perl module provides functions to compare pkgsrc Dewey
Home |
Main Index |
Thread Index |
Old Index