view release on metacpan or search on metacpan
t/01-tsort.t view on Meta::CPAN
# REVISION: ---
#===============================================================================
use strict;
use warnings;
use lib 'lib';
use Algorithm::TSort qw(Graph tsort);
use autouse 'Data::Dumper'=> 'Dumper';
use Test::More qw(no_plan);
my $buf = "1 2 3\n2 4\n3 4\n5 5\n6 7\n7 6";
view all matches for this distribution
view release on metacpan or search on metacpan
examples/retrieve_similar_tickets.pl view on Meta::CPAN
### thousands, the value of this parameter is likely to be between 2 and
### 3. See the writeup on this parameter in the API description in the
### main documentation.
#use lib '../blib/lib', '../blib/arch';
use strict;
use Algorithm::TicketClusterer;
my $fieldname_for_clustering = "Description";
view all matches for this distribution
view release on metacpan or search on metacpan
examples/basic_usage.pl view on Meta::CPAN
# Basic usage example of the Algorithm::TimelinePacking module
#
use strict;
use warnings;
use FindBin qw($RealBin);
use lib "$RealBin/../lib";
use Algorithm::TimelinePacking;
use Data::Dumper;
# Create timeline with minimum spacing of 5 units between jobs
view all matches for this distribution
view release on metacpan or search on metacpan
example/cb.pl view on Meta::CPAN
# usage: perl cb.pl
use strict;
use warnings;
use lib '../lib', 'lib';
use Algorithm::TravelingSalesman::BitonicTour;
my $b = Algorithm::TravelingSalesman::BitonicTour->new;
# Grid points from Cormen, Figure 15.9, p. 365. Note that points can be added
view all matches for this distribution
view release on metacpan or search on metacpan
examples/calculate_similarity_matrix_for_all_normalized_docs.pl view on Meta::CPAN
#!/usr/bin/perl -w
use lib '../blib/lib', '../blib/arch';
## calculate_similarity_matrix_for_all_normalized_docs.pl
# This script demonstrates how you can calculate the similarity matrix for
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use lib qw(lib);
use Module::Build::Compat;
Module::Build::Compat->run_build_pl(args => \@ARGV);
Module::Build::Compat->write_makefile(build_class => 'Module::Build');
view all matches for this distribution
view release on metacpan or search on metacpan
BEGIN {
my $bin = $FindBin::Bin;
# running from source dir
if (-e "$bin/../Makefile.PL") {
eval "use lib '$bin/../lib'";
# extlib present
if (-e "$bin/../extlib") {
eval "use lib '$bin/../extlib/lib/perl5'";
eval "use local::lib '$bin/../extlib'";
}
}
require Alice::Standalone;
}
view all matches for this distribution
view release on metacpan or search on metacpan
use strict;
use warnings;
use lib "inc";
#### we need the platform-specific module
my %platforms =(
# Unix = default, thus not listing all UNIX like systems
MSWin32 => 'Windows',
view all matches for this distribution
view release on metacpan or search on metacpan
examples/example.pl view on Meta::CPAN
#! /usr/bin/env perl
use lib qw+../blib/lib/+;
use Alien::BWIPP;
use Data::Dumper;
my $ean13 = new Alien::BWIPP::ean13;
view all matches for this distribution
view release on metacpan or search on metacpan
corpus/libpalindrome/configure view on Meta::CPAN
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
# soname into executable. Probably we can add versioning support to
# collect2, so additional links can be useful in future.
aix,yes) # traditional libtool
dynamic_linker='AIX unversionable lib.so'
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
# instead of lib<name>.a to let people know that these are not
# typical AIX shared libraries.
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
;;
aix,no) # traditional AIX only
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Base/ModuleBuild/FAQ.pod view on Meta::CPAN
=item set C<alien_provides_cflags> and C<alien_provides_libs> in C<Build.PL>.
Add something like this to your C<Build.PL>:
# Build.PL
use lib 'inc';
use My::ModuleBuild;
My::ModuleBuild->new(
...
alien_provides_cflags => '-I/usr/include/foo',
lib/Alien/Base/ModuleBuild/FAQ.pod view on Meta::CPAN
In general, this means specifying a subclass in your C<Build.PL> and bundling it in your distribution C<inc> directory.
C<Build.PL>:
...
use lib 'inc';
use My::ModuleBuild;
My::ModuleBuild->new(
...
)->create_build_script;
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_base.t view on Meta::CPAN
use Test2::Bundle::Extended;
use lib 'corpus/lib';
use Env qw( @PKG_CONFIG_PATH );
use File::Glob qw( bsd_glob );
use File::chdir;
use File::Spec;
view all matches for this distribution
view release on metacpan or search on metacpan
use constant FROM_SOURCE =>
exists $ENV{ALIEN_BAZEL_FROM_SOURCE}
? $ENV{ALIEN_BAZEL_FROM_SOURCE}
: 0;
use lib 'lib';
use Alien::Bazel::Util;
# check if the operating system already has Bazel installed
plugin 'Probe::CommandLine' => (
command => 'bazel',
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
use strict;
use warnings;
use base 'Module::Build';
use lib "inc";
use File::Spec::Functions qw(catdir catfile splitpath catpath rel2abs abs2rel);
use File::Path;
use File::Copy qw(cp);
use File::Fetch;
use File::Find;
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_build_plugin_download_git.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Test::Alien::Build;
use Alien::Build::Plugin::Download::Git;
use Capture::Tiny qw( capture_merged );
use Path::Tiny qw( path );
use lib 't/lib';
use Repo;
skip_all 'Test requires Sort::Versions'
unless eval { require Sort::Versions; 1 };
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_build_mb.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Alien::Build::MB;
use File::Temp qw( tempdir );
use Path::Tiny qw( path );
use File::chdir;
use lib 'corpus/lib';
use Data::Dumper;
use Capture::Tiny qw( capture_merged );
delete $ENV{$_} for qw( ALIEN_BUILD_PRELOAD ALIEN_BUILD_POSTLOAD ALIEN_INSTALL_TYPE );
$ENV{ALIEN_BUILD_RC} = '-';
view all matches for this distribution
view release on metacpan or search on metacpan
t/alien_base.t view on Meta::CPAN
use 5.008004;
use Test2::V0 -no_srand => 1;
use lib 'corpus/lib';
use Env qw( @PKG_CONFIG_PATH );
use File::Glob qw( bsd_glob );
use File::chdir;
use Path::Tiny qw( path );
use FFI::CheckLib;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
use strict;
use warnings;
use base 'Module::Build';
use lib "inc";
use My::Utility qw(find_CMake_dir find_file sed_inplace);
use File::Spec::Functions qw(catdir catfile splitpath catpath rel2abs abs2rel);
use File::Path qw(make_path remove_tree);
use File::Copy qw(cp);
use File::Copy::Recursive qw(dircopy);
view all matches for this distribution
view release on metacpan or search on metacpan
examples/csfml.pl view on Meta::CPAN
#use lib '../../blib';
use strict;
use warnings;
$|++;
{
use Alien::CSFML;
view all matches for this distribution
view release on metacpan or search on metacpan
use strict;
use warnings;
use lib 'inc';
use My::ModuleBuild;
use Config;
my $cflags = '';
my $libs
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Build/Alien/CodePress.pm view on Meta::CPAN
use English qw( -no_match_vars );
use FindBin qw($Bin);
use File::Path qw(mkpath);
use File::Copy qw(copy);
use File::Spec;
use lib File::Spec->catfile($Bin, 'lib');
use Alien::CodePress::Archive;
my $CODEPRESS_TARGET = 'blib/lib/Alien/CodePress/';
view all matches for this distribution
view release on metacpan or search on metacpan
#!/usr/bin/env perl
use strict;
use warnings;
use lib './lib';
use Alien::DBD::SQLite::BundledExtensions;
use Alien::Base::ModuleBuild;
my $builder = Alien::Base::ModuleBuild->new(
view all matches for this distribution
view release on metacpan or search on metacpan
use strict;
use lib q(.);
use ElectronModuleBuild;
my $build = ElectronModuleBuild->new(
module_name => 'Alien::Electron',
dist_abstract => 'Download and install the electron GUI framework',
view all matches for this distribution
view release on metacpan or search on metacpan
use strict;
use warnings;
use lib 'inc';
use My::ModuleBuild;
my $builder = My::ModuleBuild->new(
module_name => 'Alien::FFCall',
dist_abstract => 'Build and install libffcall',
view all matches for this distribution
view release on metacpan or search on metacpan
examples/opengl.pl view on Meta::CPAN
use lib '../../blib';
$|++;
use Alien::FLTK;
use ExtUtils::CBuilder;
my $AF = Alien::FLTK->new();
my $CC = ExtUtils::CBuilder->new();
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
use strict;
use warnings;
use base 'Module::Build';
use lib "inc";
use File::Spec::Functions qw(catfile rel2abs);
use ExtUtils::Command;
use File::Path qw();
use File::ShareDir;
use Config;
view all matches for this distribution
view release on metacpan or search on metacpan
# This file was automatically generated by Dist::Zilla::Plugin::Alien v0.023.
use strict;
use warnings;
use Module::Build 0.28;
use lib qw{inc}; use Alien::Base::ModuleBuild;
my %module_build_args = (
"alien_build_commands" => [
"%p../../inc/configure.pl --with-pic --prefix=%s"
],
view all matches for this distribution
view release on metacpan or search on metacpan
# This file was automatically generated by Dist::Zilla::Plugin::Alien v0.023.
use strict;
use warnings;
use Module::Build 0.28;
use lib qw{inc}; use Alien::Base::ModuleBuild;
my %module_build_args = (
"alien_inline_auto_include" => [],
"alien_name" => "GHTTP",
"alien_repository" => {
view all matches for this distribution
view release on metacpan or search on metacpan
# This file was automatically generated by Dist::Zilla::Plugin::Alien v0.023.
use strict;
use warnings;
use Module::Build 0.28;
use lib qw{inc}; use Alien::Base::ModuleBuild;
my %module_build_args = (
"alien_build_commands" => [
"%pconfigure --with-pic --prefix=%s"
],
view all matches for this distribution
view release on metacpan or search on metacpan
t/version.t view on Meta::CPAN
use Test2::V0;
use Test::Alien;
use Alien::Graphene;
use lib 't/lib';
subtest "Check flags" => sub {
alien_ok 'Alien::Graphene';
my $xs = do { local $/; <DATA> };
view all matches for this distribution