pantry/projects/github.com/AlDanial/cloc/package.yml

47 lines
977 B
YAML
Raw Normal View History

distributable:
2024-02-23 08:51:03 +03:00
url: https://github.com/AlDanial/cloc/archive/{{version.tag}}.tar.gz
strip-components: 1
2024-02-23 08:51:03 +03:00
versions:
github: AlDanial/cloc
2024-02-23 08:51:03 +03:00
dependencies:
perl.org: ^5
2024-02-23 08:51:03 +03:00
runtime:
env:
PERL5LIB: $PERL5LIB:{{prefix}}/lib/perl5
2024-02-23 08:51:03 +03:00
build:
dependencies:
cpanmin.us: '*'
linux:
gnu.org/gcc: '*'
gnu.org/make: '*'
script:
- cpanm -l {{prefix}} $PKGS
- make --jobs {{ hw.concurrency }} -C Unix prefix={{prefix}} install
- run: fix-shebangs.ts cloc config_data
2024-02-23 08:51:03 +03:00
working-directory: '{{prefix}}/bin'
env:
PKGS:
- Regexp::Common
- Algorithm::Diff
- Parallel::ForkManager
- Sub::Quote
- Moo::Role
- Module::Runtime
- Role::Tiny
- Devel::GlobalDestruction
- Sub::Exporter::Progressive
PERL5LIB: $PERL5LIB:{{prefix}}/lib/perl5
2024-02-23 08:51:03 +03:00
provides:
- bin/cloc
- bin/config_data
2024-02-23 08:51:03 +03:00
test:
2024-02-23 08:51:03 +03:00
- cloc --csv . | grep 1,C,0,0,5
- cloc --version
- cloc --version | grep {{version.marketing}}