diff --git a/textproc/Makefile b/textproc/Makefile index 84902bfd0c78..c41caa4e7b74 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1508,6 +1508,7 @@ SUBDIR += rubygem-asciidoctor SUBDIR += rubygem-asciidoctor-diagram SUBDIR += rubygem-asciidoctor-include-ext + SUBDIR += rubygem-asciidoctor-pdf SUBDIR += rubygem-asciidoctor-plantuml SUBDIR += rubygem-asciidoctor-plantuml0010 SUBDIR += rubygem-autoprefixer-rails diff --git a/textproc/rubygem-asciidoctor-pdf/Makefile b/textproc/rubygem-asciidoctor-pdf/Makefile new file mode 100644 index 000000000000..8192cb67b0e1 --- /dev/null +++ b/textproc/rubygem-asciidoctor-pdf/Makefile @@ -0,0 +1,35 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= asciidoctor-pdf +PORTVERSION= 1.5.3 +CATEGORIES= textproc rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Convert AsciiDoc documents to PDF + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.adoc + +RUN_DEPENDS= rubygem-asciidoctor>=1.5.3<3.0.0:textproc/rubygem-asciidoctor \ + rubygem-concurrent-ruby>=1.1.0<1.2:devel/rubygem-concurrent-ruby \ + rubygem-prawn>=2.2.0<2.3:print/rubygem-prawn \ + rubygem-prawn-icon>=2.5.0:print/rubygem-prawn-icon \ + rubygem-prawn-svg>=0.30.0<1:print/rubygem-prawn-svg \ + rubygem-prawn-table>=0.2.0<0.3:print/rubygem-prawn-table \ + rubygem-prawn-templates>=0.1.0<0.2:print/rubygem-prawn-templates \ + rubygem-safe_yaml>=1.0.0<1.1:devel/rubygem-safe_yaml \ + rubygem-thread_safe>=0.3.0<0.4:devel/rubygem-thread_safe \ + rubygem-treetop>=1.6.0<1.7:devel/rubygem-treetop \ + rubygem-ttfunk>=1.5.1<1.6:print/rubygem-ttfunk + +USES= gem +USE_RUBY= yes + +NO_ARCH= yes + +PLIST_FILES= bin/asciidoctor-pdf \ + bin/asciidoctor-pdf-optimize + +.include diff --git a/textproc/rubygem-asciidoctor-pdf/distinfo b/textproc/rubygem-asciidoctor-pdf/distinfo new file mode 100644 index 000000000000..793561824870 --- /dev/null +++ b/textproc/rubygem-asciidoctor-pdf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1607539649 +SHA256 (rubygem/asciidoctor-pdf-1.5.3.gem) = 3e70d0e513f4d631a4b667fed634700d93b104e0d3b4c33f993979df6a67d3f1 +SIZE (rubygem/asciidoctor-pdf-1.5.3.gem) = 1931776 diff --git a/textproc/rubygem-asciidoctor-pdf/files/patch-gemspec b/textproc/rubygem-asciidoctor-pdf/files/patch-gemspec new file mode 100644 index 000000000000..06aec85cb07c --- /dev/null +++ b/textproc/rubygem-asciidoctor-pdf/files/patch-gemspec @@ -0,0 +1,13 @@ +--- asciidoctor-pdf.gemspec.orig 2020-12-10 20:30:01 UTC ++++ asciidoctor-pdf.gemspec +@@ -28,8 +28,8 @@ Gem::Specification.new do |s| + s.add_runtime_dependency(%q.freeze, ["~> 1.5.0", ">= 1.5.1"]) + s.add_runtime_dependency(%q.freeze, ["~> 0.2.0"]) + s.add_runtime_dependency(%q.freeze, ["~> 0.1.0"]) +- s.add_runtime_dependency(%q.freeze, ["~> 0.30.0"]) +- s.add_runtime_dependency(%q.freeze, ["~> 2.5.0"]) ++ s.add_runtime_dependency(%q.freeze, ["~> 0.30"]) ++ s.add_runtime_dependency(%q.freeze, [">= 2.5.0"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.0.0"]) + s.add_runtime_dependency(%q.freeze, ["~> 0.3.0"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.1.0"]) diff --git a/textproc/rubygem-asciidoctor-pdf/pkg-descr b/textproc/rubygem-asciidoctor-pdf/pkg-descr new file mode 100644 index 000000000000..7c8c35804312 --- /dev/null +++ b/textproc/rubygem-asciidoctor-pdf/pkg-descr @@ -0,0 +1,7 @@ +Asciidoctor PDF is a native PDF converter for AsciiDoc. It bypasses the +requirement to generate an intermediary format such as DocBook, Apache FO, or +LaTeX. Instead, you can use this extension to convert your documents directly +from AsciiDoc to PDF. Its aim is to take the pain out of creating PDF documents +from AsciiDoc. + +WWW: https://github.com/asciidoctor/asciidoctor-pdf