Alien-pdf2json

 view release on metacpan or  search on metacpan

inc/Alien/pdf2json/ModuleBuild.pm  view on Meta::CPAN

		} elsif(  $phase eq 'install' ) {
			my $target_bin = File::Spec->catfile( $self->alien_library_destination, 'bin' );
			mkdir $target_bin;

			my $src_pdf2json = File::Spec->catfile( $bin_dir, 'pdf2json.exe' );
			my $target_pdf2json = File::Spec->catfile( $target_bin, 'pdf2json.exe' );

			copy( $src_pdf2json, $target_pdf2json );
			return 1;
		} else {
			$self->SUPER::alien_do_commands($phase);
		}
	} else {
		my $ret = $self->SUPER::alien_do_commands($phase);
		if( $phase eq 'build' ) {
			# after build
			my $pdf2json_src = File::Spec->catfile( $dir, 'src', 'pdf2json' );
			my $pdf2json_tgt = File::Spec->catfile( $bin_dir, 'pdf2json' );

			# needed for test to pass
			copy $pdf2json_src, $pdf2json_tgt;
			chmod '0755', $pdf2json_tgt; # rwxr-xr-x
		}
		return $ret;



( run in 1.399 second using v1.01-cache-2.11-cpan-49f99fa48dc )