| 1 | #!perl | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use alienfile; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | plugin 'PkgConfig' => ( | |||||||||
| 6 | pkg_name => 'tidy', | ||||||||||
| 7 | minimum_version => '5.6.0', | ||||||||||
| 8 | ); | ||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | meta->around_hook('probe' => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||
| 11 | 0 | my($orig, $build) = @_; | |||||||||
| 12 | |||||||||||
| 13 | 0 | my $type = $orig->($build); | |||||||||
| 14 | 0 | ▶ | if($type eq 'system') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | foreach my $exe (qw( tidy5 tidy )) { | |||||||||
| 16 | 0 | ▶ | if(`$exe -version` =~ /HTML Tidy /) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $build->runtime_prop->{command} = $exe; | |||||||||
| 18 | 0 | return 'system'; | |||||||||
| 19 | } | ||||||||||
| 20 | } | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | return 'share'; | |||||||||
| 24 | 1 | }); | |||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | share { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
| |||||||||||
| 27 | |||||||||||
| 28 | 1 | plugin 'Build::CMake'; | |||||||||
| 29 | |||||||||||
| 30 | 1 | start_url 'https://github.com/htacg/tidy-html5/tags'; | |||||||||
| 31 | |||||||||||
| 32 | 1 | plugin 'Download' => ( | |||||||||
| 33 | filter => qr/(\d\.)+\d\.tar\.gz$/, | ||||||||||
| 34 | version => qr/([0-9\.]+)/, | ||||||||||
| 35 | prefer => 1, | ||||||||||
| 36 | ); | ||||||||||
| 37 | |||||||||||
| 38 | 1 | plugin 'Extract' => 'tar.gz'; | |||||||||
| 39 | |||||||||||
| 40 | 1 | build [ | |||||||||
| 41 | [ | ||||||||||
| 42 | '%{cmake}', | ||||||||||
| 43 | -G => '%{cmake_generator}', | ||||||||||
| 44 | '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true', | ||||||||||
| 45 | '-DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}', '.' | ||||||||||
| 46 | ], | ||||||||||
| 47 | '%{make}', | ||||||||||
| 48 | '%{make} install', | ||||||||||
| 49 | ]; | ||||||||||
| 50 | |||||||||||
| 51 | 0 | ▶ | after 'gather' => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 52 | 0 | my($build) = @_; | |||||||||
| 53 | 0 | $build->runtime_prop->{command} = 'tidy'; | |||||||||
| 54 | 1 | }; | |||||||||
| 55 | |||||||||||
| 56 | 1 | }; | |||||||||