[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add guile-file-names.
From: |
guix-commits |
Subject: |
01/01: gnu: Add guile-file-names. |
Date: |
Thu, 9 May 2019 16:41:33 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit b97b4624d085c3d6137a1c543088a68ec85f8f58
Author: Ricardo Wurmus <address@hidden>
Date: Thu May 9 22:40:19 2019 +0200
gnu: Add guile-file-names.
* gnu/packages/guile-xyz.scm (guile-file-names): New variable.
---
gnu/packages/guile-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 03fd638..c640893 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2195,3 +2195,42 @@ serializing continuations or delimited continuations.")
"This package allows you to compile a Guile Python file to any target
from @code{tree-il}.")
(license license:lgpl2.0+))))
+
+(define-public guile-file-names
+ (package
+ (name "guile-file-names")
+ (version "0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"http://brandon.invergo.net/software/download/"
+ "guile-file-names/guile-file-names-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "01ba6jdypj9cwc5rgiw384dgz12iz6ab4dsd3ai5gfklprm2a50b"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'build-with-guile-2.2
+ (lambda _
+ (substitute* "configure"
+ (("guile-2.0") "guile-2.2"))
+ (substitute* "file-names/Makefile.in"
+ (("guilemoddir = \\$\\(GUILE_SITE\\)")
+ "guilemoddir =
$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
+ #t)))))
+ (inputs
+ `(("guile" ,guile-2.2)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
+ (synopsis "Manipulate file names")
+ (description
+ "The @code{(file-names)} module provides tools for manipulating file
+names. The module was built on the idea that doing anything more than a
+non-trivial modification of a file name string is a pain (making sure all
+slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
+Inevitably, you have to break the string up into chunks and operate on that
+list of components. This module takes care of that for you.")
+ (license license:lgpl3+)))