| 1 | 1 | ▶ | use alienfile; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | 1 | ▶ | share { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.4
| |||
| 4 | 1 | requires 'Alien::gmake' => 0.14; | |
| 5 | 1 | requires 'Path::Tiny' => 0; | |
| 6 | |||
| 7 | # https://github.com/bemoody/wfdb | ||
| 8 | 1 | plugin Download => ( | |
| 9 | url => 'https://archive.physionet.org/physiotools/archives/', | ||
| 10 | # the -no-docs archive is smaller, if it exists | ||
| 11 | version => qr/wfdb-([\d\.]+)-no-docs\.tar\.gz/, | ||
| 12 | ); | ||
| 13 | |||
| 14 | 1 | plugin Extract => 'tar.gz'; | |
| 15 | |||
| 16 | 0 | ▶ | patch sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | # the -no-docs tarball does not have a doc directory, but the build | ||
| 18 | # script still looks for one --- so we create an empty one if it | ||
| 19 | # doesn't exist and add stub Makefile (with 'install' and 'clean' | ||
| 20 | # targets) | ||
| 21 | 0 | my $doc_makefile = Path::Tiny->new('doc/Makefile'); | |
| 22 | 0 | $doc_makefile->parent->mkpath; | |
| 23 | 0 | $doc_makefile->spew_utf8(<<'EOF'); | |
| 24 | install: | ||
| 25 | |||
| 26 | clean: | ||
| 27 | |||
| 28 | EOF | ||
| 29 | 1 | }; | |
| 30 | |||
| 31 | 1 | build [ | |
| 32 | "sh ./configure --prefix=%{.install.prefix}", | ||
| 33 | '%{make} WFDBROOT=%{.install.prefix} install', | ||
| 34 | ]; | ||
| 35 | 1 | }; | |