void-packages/srcpkgs/ssoma/patches/no-git.diff

17 lines
518 B
Diff

--- Makefile.PL.orig
+++ Makefile.PL
@@ -6,9 +6,10 @@
# so don't depend on any public Perl API
use strict;
use ExtUtils::MakeMaker;
-my @EXE_FILES = split("\n", `git ls-files 'script/' 2>/dev/null`);
-my $PM_FILES = `git ls-files lib '*.pm' 2>/dev/null`;
-$PM_FILES =~ tr/\n/ /;
+open my $m, '<', 'MANIFEST' or die "open(MANIFEST): $!\n";
+chomp(my @manifest = (<$m>));
+my @EXE_FILES = grep(m!^script/!, @manifest);
+my $PM_FILES = join(' ', grep(m!^lib/.*\.pm$!, @manifest));
WriteMakefile(
NAME => 'ssoma',