view release on metacpan or search on metacpan
lib/Alien/Build/Plugin/Build/Premake5.pm view on Meta::CPAN
1;
__END__
=encoding utf8
=head1 NAME
Alien::Build::Plugin::Build::Premake5 - Premake5 build plugin for Alien::Build
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_build_plugin_download_github.t view on Meta::CPAN
@mock_calls = ();
my $file = path( tempdir( CLEANUP => 1 ) )->child('release');
local $mock_response{path} = "$file";
$file->spew_utf8(encode_json([
{
tag_name => 'v1.01',
tarball_url => 'https://api.github.com/repos/PerlAlien/dontpanic/tarball/v1.01',
},
{
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_build_plugin_fetch_promp.t view on Meta::CPAN
use Test2::V0 -no_srand => 1, -no_utf8 => 1;
use Test2::Mock;
use Test::Alien::Build;
use Test2::Tools::Process qw( intercept_exit );
use ExtUtils::MakeMaker;
use Alien::Build::Plugin::Fetch::Prompt;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/MBCSFML.pm view on Meta::CPAN
);
sub Build {
my $action = @ARGV && $ARGV[0] =~ /\A\w+\z/ ? shift @ARGV : 'build';
die "No such action '$action'\n" if not $actions{$action};
unshift @ARGV, @{ decode_json( read_file( '_build_params', 'utf8' ) ) };
GetOptions(
\my %opt,
qw/install_base=s install_path=s% installdirs=s destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1 pureperl-only:1 create_packlist=i/
);
$_ = detildefy($_)
inc/MBCSFML.pm view on Meta::CPAN
printf "Creating new 'Build' script for '%s' version '%s'\n", $meta->name, $meta->version;
my $dir = $meta->name eq 'MBCSFML' ? '' : "use lib 'inc';";
write_file( 'Build', 'raw', "#!perl\n$dir\nuse MBCSFML;\n\$|++;\nBuild();\n" );
make_executable('Build');
my @env = defined $ENV{PERL_MB_OPT} ? split_like_shell( $ENV{PERL_MB_OPT} ) : ();
write_file( '_build_params', 'utf8', encode_json( [ @env, @ARGV ] ) );
$meta->save(@$_) for ['MYMETA.json'], [ 'MYMETA.yml' => { version => 1.4 } ];
}
1;
=head1 SEE ALSO
view all matches for this distribution
view release on metacpan or search on metacpan
patch sub {
# See <https://github.com/sisinflab-swot/cowl/pull/9>.
my $needle = q|add_subdirectory("${COWL_DOCS_DIR}")|;
my $install_targets = q|install(TARGETS cowl ulib)|;
Path::Tiny->new('CMakeLists.txt')->edit_utf8(sub {
s/\Q$needle\E/$install_targets\n\n$&/s;
});
};
plugin 'Build::CMake';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/DDC/Concordance.pm view on Meta::CPAN
__END__
=pod
=encoding utf8
=head1 NAME
Alien::DDC::Concordance - install the ddc-concordance C++ libraries on your system
view all matches for this distribution
view release on metacpan or search on metacpan
inc/MBTFLTK.pm view on Meta::CPAN
dircopy rel2abs('lib'), catdir($archdir, 'lib')
or die $!;
#
write_file(catfile($archdir, qw[config.json]),
'utf8', encode_json(\%libinfo));
}
}
sub find {
my ($pattern, $dir) = @_;
inc/MBTFLTK.pm view on Meta::CPAN
);
sub Build {
my $action = @ARGV && $ARGV[0] =~ /\A\w+\z/ ? shift @ARGV : 'build';
die "No such action '$action'\n" if not $actions{$action};
unshift @ARGV, @{decode_json(read_file('_build_params', 'utf8'))};
GetOptions(\my %opt,
qw/install_base=s install_path=s% installdirs=s destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1 pureperl-only:1 create_packlist=i/
);
$_ = detildefy($_)
for grep {defined} @opt{qw/install_base destdir prefix/},
inc/MBTFLTK.pm view on Meta::CPAN
make_executable('Build');
my @env
= defined $ENV{PERL_MB_OPT} ?
split_like_shell($ENV{PERL_MB_OPT})
: ();
write_file('_build_params', 'utf8', encode_json([@env, @ARGV]));
$meta->save(@$_) for ['MYMETA.json'], ['MYMETA.yml' => {version => 1.4}];
}
1;
=head1 SEE ALSO
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/GMP.pm view on Meta::CPAN
package Alien::GMP;
use v5.10;
use strict;
use warnings FATAL => "all";
use utf8;
our $VERSION = 'v0.0.6'; # VERSION
# ABSTRACT: Build and install the GNU Multiple Precision library.
sub inc_dir () { "##" }
sub lib_dir () { "##" }
1;
=encoding utf8
=head1 NAME
Alien::GMP - Build and install the GNU Multiple Precision library.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Gfsm.pm view on Meta::CPAN
__END__
=pod
=encoding utf8
=head1 NAME
Alien::Gfsm - install the libgfsm C library on your system
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/GfsmXL.pm view on Meta::CPAN
__END__
=pod
=encoding utf8
=head1 NAME
Alien::GfsmXL - install the libgfsmxl C library on your system
view all matches for this distribution
view release on metacpan or search on metacpan
test/functional/examples.pl view on Meta::CPAN
use CGI;
use HTTP::Daemon;
use HTTP::Status;
use URI::Escape;
use JSON;
use Encode qw/decode_utf8/;
my $query;
my @countries = <DATA>;
chomp foreach @countries;
test/functional/examples.pl view on Meta::CPAN
my $daemon = HTTP::Daemon->new(LocalPort => $port) || die;
print "Please contact me at: <URL:", $daemon->url, ">\n";
while (my $client_connection = $daemon->accept) {
while (my $req = $client_connection->get_request) {
my $path_info = decode_utf8(substr(uri_unescape($req->url->path), 1));
print STDERR "REQUEST: $path_info\n";
$client_connection->force_last_request;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/HIDAPI.pm view on Meta::CPAN
use parent 'Alien::Base';
=pod
=encoding utf8
=head1 NAME
Alien::HIDAPI - Perl distribution for HIDAPI
view all matches for this distribution
view release on metacpan or search on metacpan
);
plugin Extract => 'zip';
patch sub {
Path::Tiny->new("kiwi/variable.h")->edit_utf8(sub {
s/private:\n/$&friend int* get_refcount( kiwi::Variable* obj );/s;
});
Path::Tiny->new("kiwi/constraint.h")->edit_utf8(sub {
s/private:\n/$&friend int* get_refcount( kiwi::Constraint* obj );/s;
});
};
build [
view all matches for this distribution
view release on metacpan or search on metacpan
my $sh_version = "3";
patch sub {
my $makefile = Path::Tiny::path('Makefile');
# real version is 3.x
$makefile->edit_lines_utf8(sub {
s/^SHVER = 2/SHVER = $sh_version/;
});
};
build [
view all matches for this distribution
view release on metacpan or search on metacpan
jq/CMakeLists.txt view on Meta::CPAN
src/jq_test.c src/jv.c src/jv_alloc.c src/jv_aux.c
src/jv_dtoa.c src/jv_file.c src/jv_parse.c src/jv_print.c
src/jv_unicode.c src/linker.c src/locfile.c src/util.c
src/builtin.h src/bytecode.h src/compile.h
src/exec_stack.h src/jq_parser.h src/jv_alloc.h src/jv_dtoa.h
src/jv_unicode.h src/jv_utf8_tables.h src/lexer.l src/libm.h
src/linker.h src/locfile.h src/opcode_list.h src/parser.y
src/util.h
)
target_link_libraries(jq PUBLIC "$<BUILD_INTERFACE:jq_compiler_flags>")
target_link_libraries(jq PUBLIC -lm)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/LibMagic.pm view on Meta::CPAN
sub libs {
my ($self) = @_;
my $top_lib = File::Spec->catfile( File::Spec->rel2abs($self->dist_dir), qw(lib) );
my $la_file = path( File::Spec->catfile( $top_lib, 'libmagic.la' ) );
my ($deps) = $la_file->slurp_utf8 =~ /^dependency_libs=' (.*)'$/m;
return "-L$top_lib -lmagic $deps";
}
sub Inline {
my ($self, $lang) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/LibUSB.pm view on Meta::CPAN
use parent 'Alien::Base';
=pod
=encoding utf8
=head1 NAME
Alien::LibUSB - Perl distribution for LibUSB
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/LibXML.pm view on Meta::CPAN
__END__
=pod
=encoding utf8
=head1 NAME
Alien::LibXML - install the C libxml2 library on your system
view all matches for this distribution
view release on metacpan or search on metacpan
when doing a share install (gh#12)
0.32 2021-05-26 21:04:50 -0600
- Bump required libarchive to 3.2.0 (gh#9)
This allows downstream modules to use the
*_utf8 functions and the match API
0.31 2021-05-20 16:54:11 -0600
- Bump required libarchive to 3.0.2 (3.0.0 and 3.0.1
were alpha / beta versions)
- Only build libarchive once where possible. On MSWin32
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Libmcrypt.pm view on Meta::CPAN
1;
=pod
=encoding utf8
=head1 NAME
Alien::Libmcrypt
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/MUSCLE.pm view on Meta::CPAN
return $class->runtime_prop->{muscle_dist_type};
}
1;
=encoding utf8
=head1 NAME
Alien::MUSCLE - Discover or easy install of MUSCLE
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
if( $run_configure =~ /^y/i ) {
print "\nWe're going to run configure for mecab.\n",
"First, we'll ask you a few questions about common options\n\n";
my $prefix = prompt( "Where would you like to install libmecab?", "/usr/local" );
my $charset = prompt( "What charset would you like to use?", "utf8" );
my $configure_args = '';
$configure_args .= "--prefix=$prefix " if $prefix;
$configure_args .= "--with-charset=$charset " if $charset;
$configure_args .= prompt("Are there any other arguments you would like to pass to configure?" );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Moot.pm view on Meta::CPAN
__END__
=pod
=encoding utf8
=head1 NAME
Alien::Moot - install the libmoot C++ library on your system
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/OpenMP/configure.pm view on Meta::CPAN
$checked++;
}
1;
=encoding utf8
=head1 NAME
Alien::OpenMP::configure - Install time configuration helper
view all matches for this distribution
view release on metacpan or search on metacpan
version => qr/PlantUML version ([0-9\.]+)/,
);
sub find_jar_file {
my $plantuml = path(scalar which('plantuml'));
if( my ($jar_file) = $plantuml->slurp_utf8 =~ qr/-jar\s+(\S+\.jar)/s ) {
return $jar_file;
}
}
meta->around_hook( probe => sub {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/inc_Locale-Maketext-Simple/Locale/Maketext/Simple.pm view on Meta::CPAN
C<I18N> via this option.
=head2 Decode
If set to a true value, source entries will be converted into
utf8-strings (available in Perl 5.6.1 or later). This feature
needs the B<Encode> or B<Encode::compat> module.
=head2 Encoding
Specifies an encoding to store lexicon entries, instead of
utf8-strings. If set to C<locale>, the encoding from the current
locale setting is used. Implies a true value for C<Decode>.
=cut
sub import {
view all matches for this distribution
view release on metacpan or search on metacpan
my ($build) = @_;
my $from = $build->install_prop->{prefix};
my $to = $build->runtime_prop->{prefix};
$build->log( "Changing contents of env file: $from -> $to");
my $env = path($from)->child('env');
$env->edit_utf8(sub {
s/\Q$from\E/$to/g;
}) if -f $env;
},
];
view all matches for this distribution
view release on metacpan or search on metacpan
use 5.008_001;
use strict;
use warnings;
use utf8;
BEGIN { push @INC, '.' }
use builder::Alien;
use File::Basename;
use File::Spec;
view all matches for this distribution
view release on metacpan or search on metacpan
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010001;
use utf8;
use lib 'inc';
use My::ModuleBuild;
my $conf_cmd = [
view all matches for this distribution
view release on metacpan or search on metacpan
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010001;
use utf8;
use lib 'inc';
use My::ModuleBuild;
my $conf_cmd = [
view all matches for this distribution