aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-Class-DBI
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2004-03-30 13:39:33 +0000
committerMathieu Arnold <mat@FreeBSD.org>2004-03-30 13:39:33 +0000
commit87870f1ab882f34d971bc0570ed4df9f2aad8bc6 (patch)
treecd27c2958d1c187769daeae1b4b4dc8903ec6127 /databases/p5-Class-DBI
parent53cefb9ad2e2b197baeb13f0db8cee392c8aa4be (diff)
downloadports-87870f1ab882f34d971bc0570ed4df9f2aad8bc6.tar.gz
ports-87870f1ab882f34d971bc0570ed4df9f2aad8bc6.zip
Notes
Diffstat (limited to 'databases/p5-Class-DBI')
-rw-r--r--databases/p5-Class-DBI/Makefile2
-rw-r--r--databases/p5-Class-DBI/files/5.005-Makefile.PL11
-rw-r--r--databases/p5-Class-DBI/files/5.005-lib::Class::DBI.pm11
3 files changed, 23 insertions, 1 deletions
diff --git a/databases/p5-Class-DBI/Makefile b/databases/p5-Class-DBI/Makefile
index 53a66b7c9a23..ac720042d8b0 100644
--- a/databases/p5-Class-DBI/Makefile
+++ b/databases/p5-Class-DBI/Makefile
@@ -37,7 +37,7 @@ post-configure:
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again."
+EXTRA_PATCHES= ${PATCHDIR}/5.005-lib::Class::DBI.pm ${PATCHDIR}/5.005-Makefile.PL
.endif
.include <bsd.port.post.mk>
diff --git a/databases/p5-Class-DBI/files/5.005-Makefile.PL b/databases/p5-Class-DBI/files/5.005-Makefile.PL
new file mode 100644
index 000000000000..617597ffc8c4
--- /dev/null
+++ b/databases/p5-Class-DBI/files/5.005-Makefile.PL
@@ -0,0 +1,11 @@
+--- Makefile.PL~ Wed Jan 7 15:01:06 2004
++++ Makefile.PL Tue Mar 16 17:11:54 2004
+@@ -7,8 +7,6 @@
+ ($PACKAGE_FILE) = $PACKAGE =~ /::([^:]+)/;
+ $LAST_API_CHANGE = 0.93;
+
+-require 5.006;
+-
+ eval "require $PACKAGE";
+
+ unless ($@) { # Make sure we did find the module.
diff --git a/databases/p5-Class-DBI/files/5.005-lib::Class::DBI.pm b/databases/p5-Class-DBI/files/5.005-lib::Class::DBI.pm
new file mode 100644
index 000000000000..130b4d488e5b
--- /dev/null
+++ b/databases/p5-Class-DBI/files/5.005-lib::Class::DBI.pm
@@ -0,0 +1,11 @@
+--- lib/Class/DBI.pm~ Tue Mar 16 17:01:40 2004
++++ lib/Class/DBI.pm Tue Mar 16 17:02:02 2004
+@@ -153,7 +153,7 @@
+ my ($class, $alias) = split /=/, shift, 2;
+ my $table = $class ? $class->table : $self->table;
+ $cmap{ $alias || $table } = $class || ref $self || $self;
+- ($alias ||= "") &&= " AS $alias";
++ if ($alias ||= "") { $alias = " AS $alias" };
+ return $table . $alias;
+ };
+