Alien-geos-af
view release on metacpan or search on metacpan
gather [
\©_geos_c_dll,
#\&pause,
# get all the geos-config fields
\&set_runtime_props_from_config,
];
# needed for gcc-13
sub update_hilbert_encoder_h {
my $build = shift;
my @files
= File::Find::Rule->file()
->name( 'HilbertEncoder.h' )
->in( '.' );
log ("Updating " . path ($files[0])->absolute);
my $replace = '#include <cstdint>';
path($files[0])->edit (
foreach my $file (@files) {
say "Modifying file $file";
path($file)->edit (
sub {
s{^//(#define USE_RECTANGLE_INTERSECTION 1)}{$1}ms;
}
);
}
}
sub update_geos_config {
my ($build) = @_;
$build->log ('updating geos-config to use dynamic base dir');
use File::Find::Rule;
my ($geos_config)
= $build->install_type eq 'share'
? File::Find::Rule
->file()
->name( 'geos-config' )
->in( getcwd() )
( run in 0.307 second using v1.01-cache-2.11-cpan-95122f20152 )