Alien-Base-ModuleBuild
view release on metacpan or search on metacpan
lib/Alien/Base/ModuleBuild/API.pod view on Meta::CPAN
=head2 COMMAND INTERPOLATION
Before L<Alien::Base::ModuleBuild> executes system commands, it replaces a few special escape sequences with useful data. This is needed especially for referencing the full path to the C<alien_share_dir> before this path is known. The available seque...
=over
=item %{I<helper>}
[version 0.020]
Call the given helper, either provided by the C<alien_helper> or C<alien_bin_requires> property. See L<Alien::Base#alien_helper>.
=item %c
Platform independent incantation for running autoconf C<configure> script. On *nix systems this is C<./configure>, on Windows this is C<sh configure>. On windows L<Alien::MSYS> is injected as a dependency and all commands are executed in an C<MSYS>...
=item %n
Shortcut for the name stored in C<alien_name>
pkg-config --modversion %n
=item %p
B<deprecated>
Platform independent "local command prefix". On *nix systems this is C<./>, on Windows it is an empty string.
%pconfigure
Please note that this only works to run scripts on Unix, and does not work on Windows. It is thus, not fit for purpose and should not be used. As an alternative:
=over 4
=item autoconf "configure"
If you are trying to invoke the autoconf configure script, use C<%c> instead. This will use the correct incantation on either Unix like systems and on Windows.
=item Some other script
Invoke the interpreter directly. For example, if you have a Python script use C<python foo.py>, if you have a Perl script use "%X foo.pl", if you have an sh script use "sh foo.sh". These are all portable.
For sh, be sure to set the C<alien_msys> property so that it will work on Windows.
=back
=item %s
The full path to the installed location of the the share directory (builder method C<alien_library_destination>).
This is where the library should install itself; for autoconf style installs this will look like
--prefix=%s
This will be the local blib directory location if C<alien_stage_install> is true (which is the default as of 0.17.
This will be the final install location if C<alien_stage_install> is false (which was the default prior to 0.17).
Please see the documentation above on C<alien_stage_install> which includes some caveats before you consider changing
this option.
=item %v
Captured version of the original archive.
=item %x
The current Perl interpreter (aka $^X)
=item %X
[version 0.027]
The current Perl interpreter using the Unix style path separator C</>
instead of the native Windows C<\>.
=item %%
A literal C<%>.
=back
=head1 SEE ALSO
=over
=item *
L<Module::Build::API>
=back
=head1 AUTHOR
Original author: Joel A Berger E<lt>joel.a.berger@gmail.comE<gt>
Current maintainer: Graham Ollis E<lt>plicease@cpan.orgE<gt>
Contributors:
David Mertens (run4flat)
Mark Nunberg (mordy, mnunberg)
Christian Walde (Mithaldu)
Brian Wightman (MidLifeXis)
Graham Ollis (plicease)
Zaki Mughal (zmughal)
mohawk2
Vikas N Kumar (vikasnkumar)
Flavio Poletti (polettix)
Salvador Fandiño (salva)
Gianni Ceccarelli (dakkar)
Pavel Shaydo (zwon, trinitum)
( run in 0.540 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )