pantry/projects/asciidoctor.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

57 lines
986 B
YAML

distributable:
url: https://github.com/asciidoctor/asciidoctor/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: asciidoctor/asciidoctor
dependencies:
ruby-lang.org: ^3.1
rubygems.org: '*'
build:
dependencies:
rubygems.org: '*'
env:
GEM_HOME: ${{prefix}}
GEM_PATH: ${{prefix}}
script: |
gem build asciidoctor.gemspec
gem install \
--no-user-install \
--bindir={{prefix}}/gems/bin \
--no-document \
asciidoctor-{{version}}.gem
mkdir "{{prefix}}"/bin
mv props/asciidoctor "{{prefix}}"/bin
provides:
- bin/asciidoctor
test:
script:
asciidoctor -b html5 -o test.html $FIXTURE
fixture: |
= AsciiDoc is Writing Zen
Random J. Author <rjauthor@example.com>
:icons: font
:source-highlighter: #{highlighter}
Hello, World!
== Syntax Highlighting
Python source.
[source, python]
----
import something
----
List
- one
- two
- three