+rtomayko.github.io/ronn (#1349)

* +rtomayko.github.io/ronn/ronn

* Add ruby dependencies.

---------

Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
James Reynolds 2023-04-22 16:50:38 -06:00 committed by GitHub
parent c10dbf1786
commit 89bf572ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,41 @@
distributable:
url: https://github.com/rtomayko/ronn/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: rtomayko/ronn/tags
dependencies:
ruby-lang.org: ^3.1
rubygems.org: '*'
build:
dependencies:
rubygems.org: '*'
tea.xyz/gx/make: '*'
tea.xyz/gx/cc: '*'
env:
GEM_HOME: ${{prefix}}
GEM_PATH: ${{prefix}}
script: |
gem build ronn.gemspec
gem install \
--no-user-install \
--bindir={{prefix}}/gems/bin \
--no-document \
ronn-{{version}}.gem
mkdir "{{prefix}}"/bin
mv props/ronn "{{prefix}}"/bin
provides:
- bin/ronn
test:
script: |
ronn --date 1970-01-01 $FIXTURE
fixture: |
simple(7) -- a simple ronn example
==================================
This document is created by ronn.

View file

@ -0,0 +1,5 @@
#!/bin/sh
export GEM_HOME="$(cd $(dirname $0)/.. && pwd)"
export GEM_PATH="$GEM_HOME"
export PATH="$GEM_HOME/gems/bin:$PATH"
exec "$GEM_HOME"/gems/bin/ronn "$@"