summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Heisinger <mail@maxheisinger.at>2022-05-04 11:05:24 +0200
committerGuix Patches Tester <>2022-05-04 12:59:24 +0100
commit3019741fd8cb8079d25e8b5c7574a150e96f45c5 (patch)
treeafa633eef4ee5a72495e565f090da2fd7ca5a30c
parent8b2d26660717a0f352da54acd68e0d61a7c697df (diff)
downloadguix-patches-3019741fd8cb8079d25e8b5c7574a150e96f45c5.tar
guix-patches-3019741fd8cb8079d25e8b5c7574a150e96f45c5.tar.gz
gnu: ruby: Add ruby-asciidoctor-multipage
* gnu/packages/ruby.scm (ruby-asciidoctor-multipage): Add package.
-rw-r--r--gnu/packages/ruby.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index acccc4d4c4..663bda84be 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1298,6 +1298,39 @@ formats.")
(home-page "https://asciidoctor.org")
(license license:expat)))
+(define-public ruby-asciidoctor-multipage
+ (package
+ (name "ruby-asciidoctor-multipage")
+ (version "0.0.15")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/owenh000/asciidoctor-multipage")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "01qqkf00cp4sj82brz8kl02pjirydafwgld3z166slysiq78d1c5"))))
+ (propagated-inputs (list ruby-asciidoctor ruby-slim))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'extract-gemspec 'strip-version-requirements
+ (lambda _
+ (delete-file "Gemfile")
+ (substitute* "asciidoctor-multipage.gemspec"
+ (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
+ (string-append stripped "
+"))) #t)))))
+ (synopsis
+ "Asciidoctor extension for generating HTML output using multiple pages")
+ (description
+ "Asciidoctor generates single-page documents. This extension
+splits documents up into multiple HTML pages according to their headings, with
+configurable levels.")
+ (license license:ruby)
+ (home-page "https://github.com/owenh000/asciidoctor-multipage")))
+
(define-public ruby-prawn-icon
(package
(name "ruby-prawn-icon")