Alien-proj
view release on metacpan or search on metacpan
381382383384385386387388389390391392393394395396397398399400401
my
$removed
=
$count
-
@PATH
;
if
(
$removed
) {
$build
->
log
(
"$removed additional .../usr/bin dirs were removed from the path for compilation"
);
}
$orig
->(
$build
,
@args
);
}
sub
update_pkg_conf_path {
return
;
return
if
!
$on_windows
;
# should be a before or around hook
say
'Modifying drive paths in PKG_CONFIG_PATH'
;
say
$ENV
{PKG_CONFIG_PATH};
# msys-ificate drive paths
@PKG_CONFIG_PATH
=
map
{
my
$r
=
$_
;
$r
=~s{^([a-z]):}{/$1}i;
$r
}
@PKG_CONFIG_PATH
;
# make sure we get the dynamic libcurl
# (although the proj configure script does not currently use it)
412413414415416417418419420421422423424425426427428429430431432
return
if
$on_automated_rig
;
return
if
!
$on_windows
;
say
"CONTINUE?"
;
my
$response
= <>;
while
(not
$response
=~ /yes/) {
$response
= <>;
}
}
sub
update_cmake_lists_file {
my
(
$orig
,
$build
,
@args
) =
@_
;
# only needed on windows for v9.0.0 or earlier
return
$orig
->(
$build
,
@args
)
if
$on_windows
and versioncmp (get_proj_version(),
'9.0.0'
) < 0;
$build
->
log
(
'updating CMakeLists.txt to properly handle proj.pc'
);
#my $h = $build->install_prop;
#use Data::Printer;
( run in 0.245 second using v1.01-cache-2.11-cpan-2b0bae70ee8 )