diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-12-28 16:12:58 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-14 09:02:08 -0500 |
commit | e9fdc442f271eec178d81f5d95c3d7eaf8fa10dd (patch) | |
tree | b7986a36180d95f7b6faa1a6600b5db5749bda74 | |
parent | 1840484a272960a1a82597ac577e304a51537286 (diff) | |
download | guix-e9fdc442f271eec178d81f5d95c3d7eaf8fa10dd.tar.gz guix-e9fdc442f271eec178d81f5d95c3d7eaf8fa10dd.zip |
gnu: Add perl-sgmls.
* gnu/packages/perl.scm (perl-sgmls): New variable.
-rw-r--r-- | gnu/packages/perl.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 6697ea763d..2d0b8648ce 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -11185,6 +11185,39 @@ package takes some liberties with the SDL API, and attempts to adhere to the spirit of both the SDL and Perl.") (license license:lgpl2.1))) +(define-public perl-sgmls + (package + (name "perl-sgmls") + (version "1.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RA/RAAB/SGMLSpm-" + version ".tar.gz")) + (sha256 + (base32 + "1gdjf3mcz2bxir0l9iljxiz6qqqg3a9gg23y5wjg538w552r432m")))) + (build-system perl-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'install 'wrap-script + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (site (string-append out "/lib/perl5/site_perl"))) + (with-directory-excursion out + (rename-file "bin/sgmlspl.pl" "bin/sgmlspl") + (wrap-program "bin/sgmlspl" + `("PERL5LIB" suffix (,site)))) + #t)))))) + (native-inputs + `(("perl-module-build" ,perl-module-build))) + (home-page "https://metacpan.org/release/RAAB/SGMLSpm-1.1") + (synopsis "Perl module for processing SGML parser output") + (description "This package contains @code{SGMLS.pm}, a perl5 class library +for parsing the output from an SGML parser such as OpenSP. It also includes +the @command{sgmlspl} command, an Perl script showcasing how the library can +be used.") + (license license:gpl2+))) + (define-public perl-shell-command (package (name "perl-shell-command") |