aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-XML-LibXSLT/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-06 12:52:10 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-06 12:52:10 +0000
commit655c86587ebe20214a339ed4d486ab69fe8b78f2 (patch)
tree4b363cde8fc5fc293d34fa011fba4b71f70cbd8f /textproc/p5-XML-LibXSLT/files
parente555a1dbc30175363cba328548faa62c82a6db91 (diff)
downloadports-655c86587ebe20214a339ed4d486ab69fe8b78f2.tar.gz
ports-655c86587ebe20214a339ed4d486ab69fe8b78f2.zip
Notes
Diffstat (limited to 'textproc/p5-XML-LibXSLT/files')
-rw-r--r--textproc/p5-XML-LibXSLT/files/patch-Makefile.PL36
1 files changed, 36 insertions, 0 deletions
diff --git a/textproc/p5-XML-LibXSLT/files/patch-Makefile.PL b/textproc/p5-XML-LibXSLT/files/patch-Makefile.PL
new file mode 100644
index 000000000000..1dbd98b0db0f
--- /dev/null
+++ b/textproc/p5-XML-LibXSLT/files/patch-Makefile.PL
@@ -0,0 +1,36 @@
+--- Makefile.PL.orig Tue May 22 17:25:19 2001
++++ Makefile.PL Mon Aug 6 20:43:20 2001
+@@ -19,9 +19,6 @@
+ # get libs and inc from gnome-config
+ eval {
+ print "running xslt-config... ";
+- my $ver = backtick('xslt-config --version');
+- my ($major, $minor) = $ver =~ /(\d+)\.(\d+)/g;
+- die "VERSION" unless $minor >= 7;
+ $config{LIBS} ||= backtick('xslt-config --libs');
+ $config{INC} ||= backtick('xslt-config --cflags');
+ print "ok\n";
+@@ -102,8 +99,9 @@
+ }
+ open(OLDOUT, ">&STDOUT");
+ open(OLDERR, ">&STDERR");
+- open(STDOUT, ">" . File::Spec->devnull);
+- open(STDERR, ">" . File::Spec->devnull);
++ my $devnull = eval { File::Spec->devnull} || "/dev/null";
++ open(STDOUT, ">$devnull");
++ open(STDERR, ">$devnull");
+ my $retval = system($command);
+ open(STDOUT, ">&OLDOUT");
+ open(STDERR, ">&OLDERR");
+@@ -126,8 +124,9 @@
+ }
+ open(OLDOUT, ">&STDOUT");
+ open(OLDERR, ">&STDERR");
+- open(STDOUT, ">" . File::Spec->devnull);
+- open(STDERR, ">" . File::Spec->devnull);
++ my $devnull = eval { File::Spec->devnull} || "/dev/null";
++ open(STDOUT, ">$devnull");
++ open(STDERR, ">$devnull");
+ my $results = `$command`;
+ my $retval = $?;
+ open(STDOUT, ">&OLDOUT");