unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31041] [PATCH] gnu: Add perl-pathtools.
@ 2018-04-03 13:09 Roel Janssen
  2018-04-04 11:52 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Roel Janssen @ 2018-04-03 13:09 UTC (permalink / raw)
  To: 31041

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

Dear Guix,

The attached patch would add perl-pathtools.  This package searches for
the “pwd” program in specific paths (ignoring the PATH environment
variable).  Because “pwd” is part of “coreutils”, it has a funny
dependency.

In the path I substitute the entry for “/bin/pwd” to the store path of
coreutils's “pwd”.

Is this the right way of packaging perl-pathtools?

Kind regards,
Roel Janssen


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-perl-pathtools.patch --]
[-- Type: text/x-patch, Size: 1788 bytes --]

From a9adb8d30747afb47284baaca898261a012a1d03 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Tue, 3 Apr 2018 15:00:15 +0200
Subject: [PATCH] gnu: Add perl-pathtools.

* gnu/packages/perl.scm (perl-pathtools): New variable.
---
 gnu/packages/perl.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 78c15f333..c99568a0d 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6655,7 +6655,36 @@ directory specifications in a cross-platform manner.")
 with file paths.")
     (license asl2.0)))
 
+(define-public perl-pathtools
+  (package
+    (name "perl-pathtools")
+    (version "3.74")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/X/XS/XSAWYERX/PathTools-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "04bfjdvn5p78hirljcinpxv8djcjn8nyg5gcmnmvz8sr9k2lqwi5"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-pwd-path
+           (lambda* (#:key inputs  #:allow-other-keys)
+             (substitute* "Cwd.pm"
+               (("'/bin/pwd'")
+                (string-append "'" (assoc-ref inputs "coreutils")
+                               "/bin/pwd'"))))))))
+    (inputs
+     `(("coreutils" ,coreutils)))
+    (home-page "http://search.cpan.org/dist/PathTools/")
+    (synopsis "Tools for working with directory and file names")
+    (description "This package provides functions to work with directory and
+file names.")
+    (license (package-license perl))))
+
 (define-public perl-perlio-utf8_strict
   (package
     (name "perl-perlio-utf8-strict")
-- 
2.16.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#31041] [PATCH] gnu: Add perl-pathtools.
  2018-04-03 13:09 [bug#31041] [PATCH] gnu: Add perl-pathtools Roel Janssen
@ 2018-04-04 11:52 ` Ludovic Courtès
  2018-04-04 12:55   ` bug#31041: " Roel Janssen
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2018-04-04 11:52 UTC (permalink / raw)
  To: Roel Janssen; +Cc: 31041

Hello,

Roel Janssen <roel@gnu.org> skribis:

> From a9adb8d30747afb47284baaca898261a012a1d03 Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Tue, 3 Apr 2018 15:00:15 +0200
> Subject: [PATCH] gnu: Add perl-pathtools.
>
> * gnu/packages/perl.scm (perl-pathtools): New variable.

[...]

> +    (license (package-license perl))))

Please change this as discussed before.

Otherwise LGTM!

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#31041: [PATCH] gnu: Add perl-pathtools.
  2018-04-04 11:52 ` Ludovic Courtès
@ 2018-04-04 12:55   ` Roel Janssen
  0 siblings, 0 replies; 3+ messages in thread
From: Roel Janssen @ 2018-04-04 12:55 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31041-done


Ludovic Courtès <ludo@gnu.org> writes:

> Hello,
>
> Roel Janssen <roel@gnu.org> skribis:
>
>> From a9adb8d30747afb47284baaca898261a012a1d03 Mon Sep 17 00:00:00 2001
>> From: Roel Janssen <roel@gnu.org>
>> Date: Tue, 3 Apr 2018 15:00:15 +0200
>> Subject: [PATCH] gnu: Add perl-pathtools.
>>
>> * gnu/packages/perl.scm (perl-pathtools): New variable.
>
> [...]
>
>> +    (license (package-license perl))))
>
> Please change this as discussed before.
>
> Otherwise LGTM!

I adjusted the license field, and pushed in b028a9830.

Thanks!

Kind regards,
Roel Janssen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-04 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 13:09 [bug#31041] [PATCH] gnu: Add perl-pathtools Roel Janssen
2018-04-04 11:52 ` Ludovic Courtès
2018-04-04 12:55   ` bug#31041: " Roel Janssen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).