pantry/projects/gnu.org/source-highlight/package.yml
Andrew 97933f2bf7
gnu.org/source-highlight (#1688)
* new file:   projects/gnu.org/source-highlight/package.yml

* switch to version scraper

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-04-27 01:17:08 -04:00

35 lines
748 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/src-highlite/source-highlight-{{version}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/src-highlite/
match: /source-highlight-\d+\.\d+\.\d+.tar.gz/
strip:
- /source-highlight-/
- /.tar.gz/
provides:
- bin/check-regexp
- bin/source-highlight
- bin/source-highlight-settings
dependencies:
boost.org: '*'
build:
dependencies:
tea.xyz/gx/cc: 'c99'
tea.xyz/gx/make: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-dependency-tracking
- --with-boost={{deps.boost.org.prefix}}
test:
script:
source-highlight --version | grep {{version}}