diff --git a/projects/github.com/AlDanial/cloc/package.yml b/projects/github.com/AlDanial/cloc/package.yml index 3639c89c..4f49abca 100644 --- a/projects/github.com/AlDanial/cloc/package.yml +++ b/projects/github.com/AlDanial/cloc/package.yml @@ -1,13 +1,17 @@ distributable: - url: https://github.com/AlDanial/cloc/archive/v{{version.marketing}}.tar.gz + url: https://github.com/AlDanial/cloc/archive/{{version.tag}}.tar.gz strip-components: 1 + versions: github: AlDanial/cloc + dependencies: perl.org: ^5 + runtime: env: PERL5LIB: $PERL5LIB:{{prefix}}/lib/perl5 + build: dependencies: cpanmin.us: '*' @@ -18,7 +22,7 @@ build: - cpanm -l {{prefix}} $PKGS - make --jobs {{ hw.concurrency }} -C Unix prefix={{prefix}} install - run: fix-shebangs.ts cloc config_data - working-directory: "{{prefix}}/bin" + working-directory: '{{prefix}}/bin' env: PKGS: - Regexp::Common @@ -31,10 +35,12 @@ build: - 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}} + - cloc --csv . | grep 1,C,0,0,5 + - cloc --version + - cloc --version | grep {{version.marketing}}