Skip to content

Commit

Permalink
Add build config file and read license file from package
Browse files Browse the repository at this point in the history
  • Loading branch information
APAC\mjd5kor committed Oct 15, 2024
1 parent 4f41c5f commit 731a5da
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
21 changes: 0 additions & 21 deletions recipes/asciidoctor-reducer/LICENSE

This file was deleted.

2 changes: 2 additions & 0 deletions recipes/asciidoctor-reducer/asciidoctor-reducer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@ECHO OFF
@ruby.exe "%~dpn0" %*
4 changes: 4 additions & 0 deletions recipes/asciidoctor-reducer/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ruby:
- 3.1
- 3.2
- 3.3
9 changes: 6 additions & 3 deletions recipes/asciidoctor-reducer/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ package:
version: {{ version }}

source:
url: https://rubygems.org/downloads/{{ name }}-{{ version }}.gem
sha256: 9c6a132414846aaeb4620dceb9687ed3f0e827135b3514c2fc46d8564f9a79b9
- url: https://rubygems.org/downloads/{{ name }}-{{ version }}.gem
sha256: 9c6a132414846aaeb4620dceb9687ed3f0e827135b3514c2fc46d8564f9a79b9
- path: asciidoctor-reducer.bat

build:
noarch: generic
number: 0
script:
- gem install -N -l -V --norc --ignore-dependencies -n $PREFIX/bin {{ name }}-{{ version }}.gem
- gem unpack {{ name }}-{{ version }}.gem
- cp -v asciidoctor-reducer.bat $PREFIX/bin/asciidoctor-reducer.bat
skip: {{ win }}

requirements:
host:
Expand All @@ -31,7 +34,7 @@ about:
home: https://rubygems.org/gems/{{ name }}
license: MIT
license_family: MIT
license_file: LICENSE
license_file: {{ name }}-{{ version }}/LICENSE
summary: A tool to generate a single AsciiDoc document by expanding all the include directives reachable from the parent document.

doc_url: http://www.rubydoc.info/gems/{{ name }}
Expand Down

0 comments on commit 731a5da

Please sign in to comment.