Alien-LIBSVM

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

   - macOS: Rename the .so file to .dylib.

     Fixes <https://github.com/EntropyOrg/p5-Alien-LIBSVM/issues/13>.

   - Add documentation and tests for SVM tools.

     See <https://github.com/EntropyOrg/p5-Alien-LIBSVM/pull/18>.
     Fixes <https://github.com/EntropyOrg/p5-Alien-LIBSVM/issues/8>.

0.003 2016-11-21 20:01:09-0600
  - Add a configure time dependency on File::chmod. Thanks to @pablrod for the patch!
    <https://github.com/EntropyOrg/p5-Alien-LIBSVM/pull/3>.
  - Fix the build on Windows so that it does not need to run `make` since the
    binaries are already built.

0.002 2016-04-17 13:00:09-0500
  - Added a minimum version version for Alien::Base `configure_requires`.
    Thanks to Graham Ollis (PLICEASE++)!
  - Updated libsvm tarball to v3.21 (released 2015-12-14).

0.001 2015-06-06 02:15:45-0500

META.json  view on Meta::CPAN

      }
   },
   "version" : "0.005",
   "x_alienfile" : {
      "generated_by" : "Dist::Zilla::Plugin::AlienBuild version 0.32",
      "requires" : {
         "share" : {
            "Alien::gmake" : "0.14",
            "Archive::Tar" : "0",
            "Config" : "0",
            "File::chmod" : "0",
            "HTTP::Tiny" : "0.044",
            "IO::Socket::SSL" : "1.56",
            "IO::Zlib" : "0",
            "Mojo::DOM" : "0",
            "Mojolicious" : "7.00",
            "Net::SSLeay" : "1.49",
            "Path::Tiny" : "0",
            "Sort::Versions" : "0",
            "URI" : "0",
            "URI::Escape" : "0"

META.yml  view on Meta::CPAN

  homepage: https://github.com/EntropyOrg/p5-Alien-LIBSVM
  repository: https://github.com/EntropyOrg/p5-Alien-LIBSVM.git
version: '0.005'
x_alienfile:
  generated_by: 'Dist::Zilla::Plugin::AlienBuild version 0.32'
  requires:
    share:
      Alien::gmake: '0.14'
      Archive::Tar: '0'
      Config: '0'
      File::chmod: '0'
      HTTP::Tiny: '0.044'
      IO::Socket::SSL: '1.56'
      IO::Zlib: '0'
      Mojo::DOM: '0'
      Mojolicious: '7.00'
      Net::SSLeay: '1.49'
      Path::Tiny: '0'
      Sort::Versions: '0'
      URI: '0'
      URI::Escape: '0'

alienfile  view on Meta::CPAN

use alienfile;

use File::Copy "cp";
use File::Path qw(make_path);

share {
	requires 'Alien::gmake' => 0.14;
	requires 'Path::Tiny' => 0;
	requires 'File::chmod';

	# http://www.csie.ntu.edu.tw/~cjlin/libsvm/
	plugin Download => (
		url => 'https://github.com/cjlin1/libsvm/tags',
		version => qr/v([\d\.]+)\.tar\.gz/,
	);

	plugin Extract => 'tar.gz';

	my $sh_version = "3";

alienfile  view on Meta::CPAN

			my ($lib_dir, $header_dir, $bin_dir) =
				map { File::Spec->catfile( $dir, $_ ) }
				qw(lib include bin);

			my @filesys = (
				{ to => $lib_dir, files => \@libs, symlink => $symlink },
				{ to => $header_dir, files => \@headers },
				{ to => $bin_dir, files => \@bins, exec => 1 },
			);

			local $File::chmod::UMASK = 0;
			for my $type (@filesys) {
				make_path $type->{to};
				for my $file (@{ $type->{files} }) {
					cp( $file, $type->{to} ); # cp keeps permissions
					File::chmod::chmod('a+x', File::Spec->catfile( $type->{to}, $file )) if exists $type->{exec};
				}
				if( $^O ne 'MSWin32' && exists $type->{symlink} ) {
					# NOTE we assume symlink exists on non-MSWin32 systems
					while( my ($k, $v) = each %{  $type->{symlink} } ) {
						symlink( $v, File::Spec->catfile( $type->{to}, $k ) );
					}
				}
			}
		}
	];



( run in 0.396 second using v1.01-cache-2.11-cpan-496ff517765 )