diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/textutils.scm | 70 |
1 files changed, 37 insertions, 33 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ba647ed3c46..a269ea2c2dd 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm | |||
| @@ -1921,41 +1921,45 @@ conversion and pretty-printing.") | |||
| 1921 | (package | 1921 | (package |
| 1922 | (name "ack") | 1922 | (name "ack") |
| 1923 | (version "3.7.0") | 1923 | (version "3.7.0") |
| 1924 | (source (origin | 1924 | (source |
| 1925 | (method git-fetch) | 1925 | (origin |
| 1926 | (uri | 1926 | (method git-fetch) |
| 1927 | (git-reference | 1927 | (uri |
| 1928 | (url "https://github.com/beyondgrep/ack3") | 1928 | (git-reference |
| 1929 | (commit (string-append "v" version)))) | 1929 | (url "https://github.com/beyondgrep/ack3") |
| 1930 | (file-name (git-file-name name version)) | 1930 | (commit (string-append "v" version)))) |
| 1931 | (sha256 | 1931 | (file-name (git-file-name name version)) |
| 1932 | (base32 "0xrbgjj3nys4158nskd0npqf825xlrqa2x3fqcfz0nnxai2jzbck")))) | 1932 | (sha256 |
| 1933 | (base32 "0xrbgjj3nys4158nskd0npqf825xlrqa2x3fqcfz0nnxai2jzbck")))) | ||
| 1933 | (build-system perl-build-system) | 1934 | (build-system perl-build-system) |
| 1934 | (arguments | 1935 | (arguments |
| 1935 | `(#:phases | 1936 | (list |
| 1936 | (modify-phases %standard-phases | 1937 | #:phases |
| 1937 | (add-after 'patch-generated-file-shebangs 'patch-more-shebangs | 1938 | #~(modify-phases %standard-phases |
| 1938 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1939 | (add-after 'patch-generated-file-shebangs 'patch-more-shebangs |
| 1939 | (let ((perl (string-append | 1940 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1940 | (assoc-ref inputs "perl") | 1941 | (let ((perl (string-append |
| 1941 | "/bin/perl")) | 1942 | #$(this-package-input "perl") |
| 1942 | (site-perl | 1943 | "/bin/perl")) |
| 1943 | (lambda (input) | 1944 | (site-perl |
| 1944 | (format #false "~a/lib/perl5/site_perl/~a" | 1945 | (lambda (input) |
| 1945 | input | 1946 | (format #false "~a/lib/perl5/site_perl/~a" |
| 1946 | ,(package-version perl))))) | 1947 | input |
| 1947 | (substitute* "t/ack-type.t" | 1948 | #$(package-version perl))))) |
| 1948 | (("/usr/bin/perl") perl) | 1949 | (substitute* "t/ack-type.t" |
| 1949 | (("/usr/bin/env perl") perl)) | 1950 | (("/usr/bin/perl") perl) |
| 1950 | (substitute* "ack" | 1951 | (("/usr/bin/env perl") perl)) |
| 1951 | (("/bin/perl") ;; add @INC include directories to perl calls | 1952 | ;; Add @INC include directories to perl calls |
| 1952 | (string-append "/bin/perl -I " | 1953 | (substitute* "ack" |
| 1953 | (site-perl | 1954 | (("/bin/perl") |
| 1954 | (assoc-ref inputs "perl-file-next")) | 1955 | (string-append "/bin/perl" |
| 1955 | " -I " | 1956 | " -I " |
| 1956 | (site-perl | 1957 | (site-perl #$(this-package-input perl-file-next)) |
| 1957 | (assoc-ref outputs "out"))))))))))) | 1958 | " -I " |
| 1958 | (inputs (list perl-file-next)) | 1959 | (site-perl #$output)))))))))) |
| 1960 | (inputs | ||
| 1961 | (list perl | ||
| 1962 | perl-file-next)) | ||
| 1959 | (home-page "https://beyondgrep.com/") | 1963 | (home-page "https://beyondgrep.com/") |
| 1960 | (synopsis "Code-searching tool for programmers with large source trees") | 1964 | (synopsis "Code-searching tool for programmers with large source trees") |
| 1961 | (description "ack is a tool for finding text inside files. It is designed for | 1965 | (description "ack is a tool for finding text inside files. It is designed for |
