summaryrefslogtreecommitdiff
path: root/devel/p5-Sort-Versions
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-22 22:25:30 +0000
committerwiz <wiz@pkgsrc.org>2005-11-22 22:25:30 +0000
commitd2f162c9683b7d69c7bdf113dfb818e18badcf24 (patch)
treec4068f4afdff3e0a57df261c0c56e494af0834b7 /devel/p5-Sort-Versions
parentbc8e12600a502614b8866c427a820a1eae8e150e (diff)
downloadpkgsrc-d2f162c9683b7d69c7bdf113dfb818e18badcf24.tar.gz
Import p5-Sort-Versions-1.5:
Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, like the "version numbers" that many shared library systems and revision control packages use. This is quite useful if you are trying to deal with shared libraries. It can also be applied to applications that intersperse variable-width numeric fields within text. Other applications can undoubtedly be found. This is a new version of p5-SortVersion. Changes since the last p5-SortVersions package: 2003-08-24 23:58 ed * README, Versions.pm: Version 1.5. 2003-08-24 23:57 ed * mkdist: Changed to 'mkdist' written in Perl; now checks version numbers. 2003-08-24 23:43 ed * Makefile.PL: Removed DISTNAME - change to Perl standard convention of calling the package Sort-Versions-xxx.tar.gz. Though I don't know quite what DISTNAME did. 2003-08-24 23:41 ed * Makefile.PL: Get the version number from Versions.pm rather than hardcoding it in Makefile.PL. 2003-08-24 23:37 ed * Versions.pm: Removed CVS log; I'm not that keen on it, especially as most of the log messages were empty. 2003-08-24 23:33 ed * t/versions.t: Use Test::More (based on patch from mwj99). 2003-08-24 23:25 ed * t/versions.t: Added some more test cases and commented the existing tests. I think this partly follows a patch from mwj99. 2002-09-01 19:20 ed * README: Some revisions and modernizing prompted by Matt's new version (although I didn't incorporate all his changes). 2002-09-01 15:03 ed * Versions.pm: Updated my email address. 2002-03-09 18:19 ed * t/versions.t: Added some tests for calling versioncmp directly, if perl >= 5.6. 2002-03-09 18:19 ed * Versions.pm: Made versions() deprecated, so versioncmp() is the routine to call. Small code tidying. 2002-03-09 17:38 ed * t/versions.t: Run each test in package main and package Foo. 2002-03-09 17:26 ed * Versions.pm, t/versions.t: Applied patch from Slaven Rezic to let versions() work when called from a package other than main. But this is not the final answer, I intend to deprecate versions() and move the code into versioncmp(), which has saner argument passing (not the magic $a and $b). 2002-01-28 19:06 ed * Versions.pm: Version 1.3: patch from Hack Kampbjørn for '-' digit groupings as well as '.'. 2002-01-28 19:05 ed * README: Added some rather lame examples of -. 2002-01-28 19:03 ed * t/versions.t: Added some tests for - digit grouping. 2001-07-28 18:07 ed * t/versions.t: Whoops - got the leading-zero tests the wrong way round. 2001-07-28 18:07 ed * README: Whoops - got the leading-zero examples the wrong way round in the README. 2001-07-28 18:02 ed * mkdist: Modified from Lingua::Preferred to Sort::Versions. 2001-07-28 17:52 ed * Versions.pm: Added $VERSION. 2001-07-28 17:40 ed * mkdist: Initial revision 2001-07-28 17:34 ed * t/versions.t: Added tests for leading-zero numeric comparisons. 2001-07-28 17:33 ed * Versions.pm: Added support for numeric comparisons where one version number has a leading zero. 2001-07-28 17:32 ed * README: Fixed spelling mistake.
Diffstat (limited to 'devel/p5-Sort-Versions')
-rw-r--r--devel/p5-Sort-Versions/DESCR6
-rw-r--r--devel/p5-Sort-Versions/Makefile22
-rw-r--r--devel/p5-Sort-Versions/PLIST1
-rw-r--r--devel/p5-Sort-Versions/distinfo5
4 files changed, 34 insertions, 0 deletions
diff --git a/devel/p5-Sort-Versions/DESCR b/devel/p5-Sort-Versions/DESCR
new file mode 100644
index 00000000000..dd0ac214573
--- /dev/null
+++ b/devel/p5-Sort-Versions/DESCR
@@ -0,0 +1,6 @@
+Sort::Versions allows easy sorting of mixed non-numeric and numeric strings,
+like the "version numbers" that many shared library systems and revision
+control packages use. This is quite useful if you are trying to deal with
+shared libraries. It can also be applied to applications that intersperse
+variable-width numeric fields within text. Other applications can
+undoubtedly be found.
diff --git a/devel/p5-Sort-Versions/Makefile b/devel/p5-Sort-Versions/Makefile
new file mode 100644
index 00000000000..0c89d5217b2
--- /dev/null
+++ b/devel/p5-Sort-Versions/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/22 22:25:30 wiz Exp $
+#
+
+DISTNAME= Sort-Versions-1.5
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5sve
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Sort/}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Sort-Versions/
+COMMENT= Perl5 module for sorting of revision-like numbers
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Sort/Versions/.packlist
+
+CONFLICTS+= p5-SortVersion-[0-9]*
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Sort-Versions/PLIST b/devel/p5-Sort-Versions/PLIST
new file mode 100644
index 00000000000..07e0274afc7
--- /dev/null
+++ b/devel/p5-Sort-Versions/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/22 22:25:30 wiz Exp $
diff --git a/devel/p5-Sort-Versions/distinfo b/devel/p5-Sort-Versions/distinfo
new file mode 100644
index 00000000000..3bd3540183a
--- /dev/null
+++ b/devel/p5-Sort-Versions/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/22 22:25:30 wiz Exp $
+
+SHA1 (Sort-Versions-1.5.tar.gz) = d2f354b0a6a8254afc9af175c2fb16d85efb73c7
+RMD160 (Sort-Versions-1.5.tar.gz) = 5eafad04d3396c3e370be8203ec73060d64c7413
+Size (Sort-Versions-1.5.tar.gz) = 4482 bytes