mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
github.com/AlDanial/cloc (#3748)
* new file: projects/github.com/AlDanial/cloc/package.yml new file: projects/github.com/AlDanial/cloc/test.c * add provides; use fix-shebangs.ts --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
8137221cf9
commit
6fa71f55b7
2 changed files with 45 additions and 0 deletions
40
projects/github.com/AlDanial/cloc/package.yml
Normal file
40
projects/github.com/AlDanial/cloc/package.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
distributable:
|
||||
url: https://github.com/AlDanial/cloc/archive/v{{version.marketing}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: AlDanial/cloc
|
||||
dependencies:
|
||||
perl.org: ^5
|
||||
runtime:
|
||||
env:
|
||||
PERL5LIB: $PERL5LIB:{{prefix}}/lib/perl5
|
||||
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
|
||||
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
|
||||
provides:
|
||||
- bin/cloc
|
||||
- bin/config_data
|
||||
test:
|
||||
script:
|
||||
- cloc --csv . | grep 1,C,0,0,5
|
||||
- cloc --version | grep {{version.marketing}}
|
5
projects/github.com/AlDanial/cloc/test.c
Normal file
5
projects/github.com/AlDanial/cloc/test.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <stdio.h>
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue