From ee18fc530c57c2ecd65b3686715602989a388220 Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Thu, 9 Jan 2020 20:28:51 -0500 Subject: [PATCH 1/6] add cloc this is a supported package with 93 packages across 73 repositories included are 3 perl modules that are its dependencies Algorithm-Diff, Parallel-ForkManager, & Regex-Common Algorithm-Diff is a package with 103 packages across 95 repos Parallel-ForkManager is a package with 89 packages across 80 repos Regex-Common is a package with 98 packages across 91 repos this is part of https://github.com/0install/0install.de-feeds/issues/3 --- perl/Algorithm-Diff.xml | 74 +++++++++++++++++++++++++++++++++++ perl/Parallel-ForkManager.xml | 53 +++++++++++++++++++++++++ perl/Regex-Common.xml | 23 +++++++++++ utils/cloc.xml | 74 +++++++++++++++++++++++++++++++++++ 4 files changed, 224 insertions(+) create mode 100644 perl/Algorithm-Diff.xml create mode 100644 perl/Parallel-ForkManager.xml create mode 100644 perl/Regex-Common.xml create mode 100644 utils/cloc.xml diff --git a/perl/Algorithm-Diff.xml b/perl/Algorithm-Diff.xml new file mode 100644 index 000000000..c38bda2c6 --- /dev/null +++ b/perl/Algorithm-Diff.xml @@ -0,0 +1,74 @@ + + + + Algorithm-Diff + Compute differences between two files / lists + This is a module for computing the difference between two files, two +strings, or any other two lists of things. It uses an intelligent +algorithm similar to (or identical to) the one used by the Unix "diff" +program. It is guaranteed to find the *smallest possible* set of +differences. + + + Development + http://search.cpan.org/dist/Algorithm-Diff/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff + implements a "diff" in Perl that is as simple as possible so that you can see how it works. + diff.pl implements a "diff" in Perl that is as simple as (was +previously) possible so that you can see how it works. The output +format is not compatible with regular "diff". It needs to be +reimplemented using the OO interface to greatly simplify the code. + + + + cdiff + implements "diff" that generates real context diffs + cdiff.pl implements "diff" that generates real context diffs in either +traditional format or GNU unified format. Original contextless +"context" diff supplied by Christian Murphy. Modifications to make it +into a real full-featured diff with -c and -u options supplied by Amir +D. Karger. + + + + diffnew + implements a "diff" in Perl with full bells and whistles. + diffnew.pl implements a "diff" in Perl with full bells and whistles. By +Mark-Jason, with code from cdiff.pl included. + + diff --git a/perl/Parallel-ForkManager.xml b/perl/Parallel-ForkManager.xml new file mode 100644 index 000000000..0882541cb --- /dev/null +++ b/perl/Parallel-ForkManager.xml @@ -0,0 +1,53 @@ + + + + Parallel-ForkManager + A simple parallel processing fork manager + + + This module is intended for use in operations that can be done in parallel where the number of processes to be forked off should be limited. Typical use is a downloader which will be retrieving hundreds/thousands of files. + Development + https://metacpan.org/pod/Parallel::ForkManager + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + parallel_get + This small example can be used to get URLs in parallel. + + + + callback + Example of a program using callbacks to get child exit codes + + + + callback_data + Setup a callback for when a child finishes up so we can get it's exit code and any data it collected + + diff --git a/perl/Regex-Common.xml b/perl/Regex-Common.xml new file mode 100644 index 000000000..fb69c3cbb --- /dev/null +++ b/perl/Regex-Common.xml @@ -0,0 +1,23 @@ + + + + Regexp::Common + Provide commonly requested regular expressions + + + Development + http://search.cpan.org/dist/Regexp-Common/ + + + + + + + + + + + + + + diff --git a/utils/cloc.xml b/utils/cloc.xml new file mode 100644 index 000000000..5775511d3 --- /dev/null +++ b/utils/cloc.xml @@ -0,0 +1,74 @@ + + + + cloc + Count Lines of Code + cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. + + + Development + https://github.com/AlDanial/cloc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 7abcf3a8e3192ee2a737f2a28a9dc765c45df9e1 Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Sat, 23 May 2020 07:58:34 -0400 Subject: [PATCH 2/6] merge my cloc feed into devel/cloc --- devel/cloc.xml | 31 ++++++++++++++++++++- utils/cloc.xml | 74 -------------------------------------------------- 2 files changed, 30 insertions(+), 75 deletions(-) delete mode 100644 utils/cloc.xml diff --git a/devel/cloc.xml b/devel/cloc.xml index e1a923e7d..57f4a9de6 100644 --- a/devel/cloc.xml +++ b/devel/cloc.xml @@ -9,8 +9,17 @@ + + + + + + + + + - + @@ -61,6 +70,23 @@ +> + + + + + + + + + + + + + + + + @@ -101,4 +127,7 @@ + + + diff --git a/utils/cloc.xml b/utils/cloc.xml deleted file mode 100644 index 5775511d3..000000000 --- a/utils/cloc.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - cloc - Count Lines of Code - cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. - - - Development - https://github.com/AlDanial/cloc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 6c491b906cda1ba0013c93fe24317ae28a5d9b97 Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Sat, 23 May 2020 08:03:36 -0400 Subject: [PATCH 3/6] fix perl module icon urls --- perl/Algorithm-Diff.xml | 4 ++-- perl/Parallel-ForkManager.xml | 4 ++-- perl/Regex-Common.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/perl/Algorithm-Diff.xml b/perl/Algorithm-Diff.xml index c38bda2c6..4c2822ef9 100644 --- a/perl/Algorithm-Diff.xml +++ b/perl/Algorithm-Diff.xml @@ -8,8 +8,8 @@ strings, or any other two lists of things. It uses an intelligent algorithm similar to (or identical to) the one used by the Unix "diff" program. It is guaranteed to find the *smallest possible* set of differences. - - + + Development http://search.cpan.org/dist/Algorithm-Diff/ diff --git a/perl/Parallel-ForkManager.xml b/perl/Parallel-ForkManager.xml index 0882541cb..fe9913195 100644 --- a/perl/Parallel-ForkManager.xml +++ b/perl/Parallel-ForkManager.xml @@ -3,8 +3,8 @@ Parallel-ForkManager A simple parallel processing fork manager - - + + This module is intended for use in operations that can be done in parallel where the number of processes to be forked off should be limited. Typical use is a downloader which will be retrieving hundreds/thousands of files. Development https://metacpan.org/pod/Parallel::ForkManager diff --git a/perl/Regex-Common.xml b/perl/Regex-Common.xml index fb69c3cbb..bfc2ca7d6 100644 --- a/perl/Regex-Common.xml +++ b/perl/Regex-Common.xml @@ -3,8 +3,8 @@ Regexp::Common Provide commonly requested regular expressions - - + + Development http://search.cpan.org/dist/Regexp-Common/ From b695685c1d96a71084d957894f21511df9c7f58a Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Fri, 29 May 2020 22:25:03 -0400 Subject: [PATCH 4/6] Parallel-ForkManager add template and 0watch file --- perl/Parallel-ForkManager.watch.py | 15 ++++++++++++ perl/Parallel-ForkManager.xml | 12 +++++---- perl/Parallel-ForkManager.xml.template | 34 ++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 perl/Parallel-ForkManager.watch.py create mode 100644 perl/Parallel-ForkManager.xml.template diff --git a/perl/Parallel-ForkManager.watch.py b/perl/Parallel-ForkManager.watch.py new file mode 100644 index 000000000..cc62dc14c --- /dev/null +++ b/perl/Parallel-ForkManager.watch.py @@ -0,0 +1,15 @@ +from urllib import request +import json + +excluded_versions = [] +# "https://api.github.com/repos/dluxhu/perl-parallel-forkmanager/releases +# 'https://fastapi.metacpan.org/v1/release/v1/release/Parallel-ForkManager' +data = request.urlopen('https://fastapi.metacpan.org/v1/release/Parallel-ForkManager').read().decode('utf-8') +release = json.loads(data) +releases = [{ 'version': release['version'], + 'released': release['date'].split('T')[0], + 'name': release['distribution'], + 'summary': release['abstract'], + 'url': release['download_url'], + 'creator': release['author'] + }] diff --git a/perl/Parallel-ForkManager.xml b/perl/Parallel-ForkManager.xml index fe9913195..4271e1dd7 100644 --- a/perl/Parallel-ForkManager.xml +++ b/perl/Parallel-ForkManager.xml @@ -1,6 +1,6 @@ - + Parallel-ForkManager A simple parallel processing fork manager @@ -9,7 +9,7 @@ Development https://metacpan.org/pod/Parallel::ForkManager - + @@ -25,9 +25,11 @@ - - - + + YANICK + + + diff --git a/perl/Parallel-ForkManager.xml.template b/perl/Parallel-ForkManager.xml.template new file mode 100644 index 000000000..670e6b2e2 --- /dev/null +++ b/perl/Parallel-ForkManager.xml.template @@ -0,0 +1,34 @@ + + + {name} + {summary} + + + This module is intended for use in operations that can be done in parallel where the number of processes to be forked off should be limited. Typical use is a downloader which will be retrieving hundreds/thousands of files. + Development + https://metacpan.org/release/Parallel-ForkManager + + + + + + + + + + + + + + + + + + + + {creator} + + + + + From 5fdc96b669df277712f7776b4e67194f77d341dd Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Mon, 1 Jun 2020 10:45:57 -0400 Subject: [PATCH 5/6] remove double slash and extra angle bracket, lowercase perl feeds --- devel/cloc.xml | 13 ++++++------- perl/{Algorithm-Diff.xml => algorithm-diff.xml} | 2 +- ...nager.watch.py => parallel-forkmanager.watch.py} | 2 -- ...lel-ForkManager.xml => parallel-forkmanager.xml} | 2 +- ...l.template => parallel-forkmanager.xml.template} | 2 +- perl/{Regex-Common.xml => regex-common.xml} | 2 +- 6 files changed, 10 insertions(+), 13 deletions(-) rename perl/{Algorithm-Diff.xml => algorithm-diff.xml} (98%) rename perl/{Parallel-ForkManager.watch.py => parallel-forkmanager.watch.py} (75%) rename perl/{Parallel-ForkManager.xml => parallel-forkmanager.xml} (98%) rename perl/{Parallel-ForkManager.xml.template => parallel-forkmanager.xml.template} (96%) rename perl/{Regex-Common.xml => regex-common.xml} (97%) diff --git a/devel/cloc.xml b/devel/cloc.xml index 57f4a9de6..40811dad4 100644 --- a/devel/cloc.xml +++ b/devel/cloc.xml @@ -9,13 +9,13 @@ - + - + - + @@ -70,15 +70,14 @@ -> - + - + - + diff --git a/perl/Algorithm-Diff.xml b/perl/algorithm-diff.xml similarity index 98% rename from perl/Algorithm-Diff.xml rename to perl/algorithm-diff.xml index 4c2822ef9..b591d76ff 100644 --- a/perl/Algorithm-Diff.xml +++ b/perl/algorithm-diff.xml @@ -1,6 +1,6 @@ - + Algorithm-Diff Compute differences between two files / lists This is a module for computing the difference between two files, two diff --git a/perl/Parallel-ForkManager.watch.py b/perl/parallel-forkmanager.watch.py similarity index 75% rename from perl/Parallel-ForkManager.watch.py rename to perl/parallel-forkmanager.watch.py index cc62dc14c..e421d4580 100644 --- a/perl/Parallel-ForkManager.watch.py +++ b/perl/parallel-forkmanager.watch.py @@ -2,8 +2,6 @@ import json excluded_versions = [] -# "https://api.github.com/repos/dluxhu/perl-parallel-forkmanager/releases -# 'https://fastapi.metacpan.org/v1/release/v1/release/Parallel-ForkManager' data = request.urlopen('https://fastapi.metacpan.org/v1/release/Parallel-ForkManager').read().decode('utf-8') release = json.loads(data) releases = [{ 'version': release['version'], diff --git a/perl/Parallel-ForkManager.xml b/perl/parallel-forkmanager.xml similarity index 98% rename from perl/Parallel-ForkManager.xml rename to perl/parallel-forkmanager.xml index 4271e1dd7..24798094b 100644 --- a/perl/Parallel-ForkManager.xml +++ b/perl/parallel-forkmanager.xml @@ -1,6 +1,6 @@ - + Parallel-ForkManager A simple parallel processing fork manager diff --git a/perl/Parallel-ForkManager.xml.template b/perl/parallel-forkmanager.xml.template similarity index 96% rename from perl/Parallel-ForkManager.xml.template rename to perl/parallel-forkmanager.xml.template index 670e6b2e2..b91222f38 100644 --- a/perl/Parallel-ForkManager.xml.template +++ b/perl/parallel-forkmanager.xml.template @@ -30,5 +30,5 @@ - + diff --git a/perl/Regex-Common.xml b/perl/regex-common.xml similarity index 97% rename from perl/Regex-Common.xml rename to perl/regex-common.xml index bfc2ca7d6..de3a303c4 100644 --- a/perl/Regex-Common.xml +++ b/perl/regex-common.xml @@ -1,6 +1,6 @@ - + Regexp::Common Provide commonly requested regular expressions From 9aa6dd2c6f9734cd9fb5a939521d957847d2a4ec Mon Sep 17 00:00:00 2001 From: Philip Miess Date: Mon, 1 Jun 2020 14:05:32 -0400 Subject: [PATCH 6/6] add /usr/bin/cloc to package implimentations --- devel/cloc.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devel/cloc.xml b/devel/cloc.xml index 40811dad4..5862ece68 100644 --- a/devel/cloc.xml +++ b/devel/cloc.xml @@ -126,7 +126,7 @@ - - - + + +