all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: 30274@debbugs.gnu.org
Subject: [bug#30274] [PATCH 02/24] gnu: Add perl-path-iterator-rule.
Date: Mon, 29 Jan 2018 20:20:14 +0300	[thread overview]
Message-ID: <20180129172036.21133-3-go.wigust@gmail.com> (raw)
In-Reply-To: <20180129172036.21133-1-go.wigust@gmail.com>

* gnu/packages/perl.scm (perl-path-iterator-rule): New public variable.
---
 gnu/packages/perl.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index f79a11f76..0894144f9 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8810,3 +8811,53 @@ till 5pm\" and \"on the second Tuesday of the month\" and \"between 4pm and
 4:15pm\" and \"in the first half of each minute\" and \"in January of
 1998\".")
     (license perl-license)))
+
+(define-public perl-path-iterator-rule
+  (package
+    (name "perl-path-iterator-rule")
+    (version "1.012")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/D/DA/DAGOLDEN/Path-Iterator-Rule-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "1z76avwvwgv4bw28kzx79mmb4449s5l345sn0wljq3dbf4wqigd1"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-file-pushd" ,perl-file-pushd)
+       ("perl-path-tiny" ,perl-path-tiny)
+       ("perl-test-deep" ,perl-test-deep)
+       ("perl-test-filename" ,perl-test-filename)))
+    (propagated-inputs
+     `(("perl-number-compare" ,perl-number-compare)
+       ("perl-text-glob" ,perl-text-glob)
+       ("perl-try-tiny" ,perl-try-tiny)))
+    (home-page "http://search.cpan.org/dist/Path-Iterator-Rule/")
+    (synopsis "Iterative, recursive file finder")
+    (description "Path::Iterator::Rule iterates over files and directories to
+identify ones matching a user-defined set of rules.  The API is based heavily
+on File::Find::Rule, but with more explicit distinction between matching rules
+and options that influence how directories are searched.  A
+Path::Iterator::Rule object is a collection of rules (match criteria) with
+methods to add additional criteria.  Options that control directory traversal
+are given as arguments to the method that generates an iterator.
+
+A summary of features for comparison to other file finding modules:
+
+@itemize
+@item provides many helper methods for specifying rules
+@item offers (lazy) iterator and flattened list interfaces
+@item custom rules implemented with callbacks
+@item breadth-first (default) or pre- or post-order depth-first searching
+@item follows symlinks (by default, but can be disabled)
+@item directories visited only once (no infinite loop; can be disabled)
+@item doesn't chdir during operation
+@item provides an API for extensions
+@end itemize
+
+As a convenience, the PIR module is an empty subclass of this one that is less
+arduous to type for one-liners.")
+    (license asl2.0)))
-- 
2.15.1

  parent reply	other threads:[~2018-01-29 17:22 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 18:44 [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-01-28 18:48 ` [bug#30274] [PATCH 01/21] gnu: Add perl-test-filename Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 02/21] gnu: Add perl-path-iterator-rule Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 03/21] gnu: Add perl-pod-constants Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 04/21] gnu: Add perl-regexp-pattern Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 05/21] gnu: Add perl-regexp-pattern-license Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 06/21] gnu: Add perl-number-range Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 07/21] gnu: Add perl-string-copyright Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 08/21] gnu: Add perl-string-escape Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 09/21] gnu: Add perl-test-failwarnings Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 10/21] gnu: Add perl-data-section Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 11/21] gnu: Add perl-software-license Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 12/21] gnu: Add perl-extutils-depends Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 13/21] gnu: Add perl-b-hooks-op-check Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 14/21] gnu: Add perl-bareword-filehandles Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 15/21] gnu: Add perl-indirect Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 16/21] gnu: Add perl-lexical-sealrequirehints Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 17/21] gnu: Add perl-multidimensional Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 18/21] gnu: Add perl-test-roo Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 19/21] gnu: Add perl-universal-require Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 20/21] gnu: Add perl-strictures-2 Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 21/21] gnu: Add licensecheck Oleg Pykhalov
2018-01-29  5:09     ` Oleg Pykhalov
2018-01-29 17:20     ` [bug#30274] [PATCH 00/24] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 01/24] gnu: Add perl-test-filename Oleg Pykhalov
2018-01-29 17:20       ` Oleg Pykhalov [this message]
2018-01-29 17:20       ` [bug#30274] [PATCH 03/24] gnu: Add perl-pod-constants Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 04/24] gnu: Add perl-regexp-pattern Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 05/24] gnu: Add perl-regexp-pattern-license Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 06/24] gnu: Add perl-number-range Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 07/24] gnu: Add perl-string-copyright Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 08/24] gnu: Add perl-string-escape Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 09/24] gnu: Add perl-test-failwarnings Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 10/24] gnu: Add perl-data-section Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 11/24] gnu: Add perl-software-license Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 12/24] gnu: Add perl-extutils-depends Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 13/24] gnu: Add perl-b-hooks-op-check Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 14/24] gnu: Add perl-bareword-filehandles Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 15/24] gnu: Add perl-indirect Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 16/24] gnu: Add perl-lexical-sealrequirehints Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 17/24] gnu: Add perl-multidimensional Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 18/24] gnu: Add perl-test-roo Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 19/24] gnu: Add perl-universal-require Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 20/24] gnu: Add perl-strictures-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 21/24] gnu: Add perl-role-tiny-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 22/24] gnu: Add perl-sub-quote Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 23/24] gnu: Add perl-moo-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 24/24] gnu: Add licensecheck Oleg Pykhalov
2018-01-28 19:22 ` [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-02-22 14:18   ` Marius Bakke
2018-02-22 20:14     ` Oleg Pykhalov
2018-02-23 10:49       ` Marius Bakke
2018-02-24 17:23         ` bug#30274: " Oleg Pykhalov
2018-02-24 18:38           ` [bug#30274] " Marius Bakke
2018-02-28  2:12             ` bug#30641: Make 'guix refresh' to ignore "v" prefix in CPAN updater Oleg Pykhalov
2018-03-01 13:58               ` Ludovic Courtès
2018-02-28  2:14             ` [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-02-22 14:14 ` Marius Bakke
2018-02-22 20:08   ` Oleg Pykhalov
2018-02-23 10:51     ` Marius Bakke
2018-02-24 17:20       ` Oleg Pykhalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180129172036.21133-3-go.wigust@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=30274@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.