aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBD-Pg
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2006-04-21 02:26:25 +0800
committerleeym <leeym@FreeBSD.org>2006-04-21 02:26:25 +0800
commit49b24a143d65b27ccc5aed97a82efb6d6a41755e (patch)
tree19c50ae48c91b5134417934cc6e64deed99997ff /databases/p5-DBD-Pg
parent893657d920c45704d79732144b83c0e4d30b3ae8 (diff)
downloadfreebsd-ports-gnome-49b24a143d65b27ccc5aed97a82efb6d6a41755e.tar.gz
freebsd-ports-gnome-49b24a143d65b27ccc5aed97a82efb6d6a41755e.tar.zst
freebsd-ports-gnome-49b24a143d65b27ccc5aed97a82efb6d6a41755e.zip
- update to 1.48
Diffstat (limited to 'databases/p5-DBD-Pg')
-rw-r--r--databases/p5-DBD-Pg/Makefile5
-rw-r--r--databases/p5-DBD-Pg/distinfo6
-rw-r--r--databases/p5-DBD-Pg/files/patch-06bytea.t34
-rw-r--r--databases/p5-DBD-Pg/files/patch-Makefile.PL24
-rw-r--r--databases/p5-DBD-Pg/files/patch-quote.c11
5 files changed, 18 insertions, 62 deletions
diff --git a/databases/p5-DBD-Pg/Makefile b/databases/p5-DBD-Pg/Makefile
index c6c60a635959..139cd0131e99 100644
--- a/databases/p5-DBD-Pg/Makefile
+++ b/databases/p5-DBD-Pg/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= DBD-Pg
-PORTVERSION= 1.43
-PORTREVISION= 1
+PORTVERSION= 1.48
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
@@ -39,7 +38,7 @@ post-install:
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= Needs DBI 1.38 which needs perl 5.6, install lang/perl5.8 and try again
+IGNORE= needs DBI 1.38 which needs perl 5.6, install lang/perl5.8 and try again
.endif
PG_CONFIG= ${LOCALBASE}/bin/pg_config
diff --git a/databases/p5-DBD-Pg/distinfo b/databases/p5-DBD-Pg/distinfo
index 92dbb5e4b293..bb0d9c6cbbf5 100644
--- a/databases/p5-DBD-Pg/distinfo
+++ b/databases/p5-DBD-Pg/distinfo
@@ -1,3 +1,3 @@
-MD5 (DBD-Pg-1.43.tar.gz) = 1ddefc3cb5f8c0d20eaf6ba7aa11049d
-SHA256 (DBD-Pg-1.43.tar.gz) = 24d34fa3b0310f61ac7748bf3d566ab6d01800f9c27c0828e42dce7e81574550
-SIZE (DBD-Pg-1.43.tar.gz) = 131267
+MD5 (DBD-Pg-1.48.tar.gz) = 77e56726219cccf2abb42f70c58b6eeb
+SHA256 (DBD-Pg-1.48.tar.gz) = 5a2f4e870622cbe4d03e794275d7bc51f742e21ed28de82cc60d7b972a1c2d40
+SIZE (DBD-Pg-1.48.tar.gz) = 144737
diff --git a/databases/p5-DBD-Pg/files/patch-06bytea.t b/databases/p5-DBD-Pg/files/patch-06bytea.t
deleted file mode 100644
index 3a02b028fa50..000000000000
--- a/databases/p5-DBD-Pg/files/patch-06bytea.t
+++ /dev/null
@@ -1,34 +0,0 @@
---- t/06bytea.t.orig Sun Mar 20 10:47:38 2005
-+++ t/06bytea.t Thu Aug 4 22:34:26 2005
-@@ -9,7 +9,7 @@
- $|=1;
-
- if (defined $ENV{DBI_DSN}) {
-- plan tests => 3;
-+ plan tests => 6;
- } else {
- plan skip_all => 'Cannot run test unless DBI_DSN is defined. See the README file';
- }
-@@ -22,12 +22,21 @@
-
- $sth = $dbh->prepare(qq{INSERT INTO dbd_pg_test (id,bytetest) VALUES (?,?)});
- $sth->bind_param(2, undef, { pg_type => DBD::Pg::PG_BYTEA });
--$sth->execute(400, "a\0b");
-+ok($sth->execute(400, "a\0b", 'execute 401');
-+ok($sth->execute(401, '\''), 'execute 401');
-+ok($sth->execute(402, '\''), 'execute 402');
-+
-+
- $sth = $dbh->prepare(qq{SELECT bytetest FROM dbd_pg_test WHERE id=?});
- $sth->execute(400);
-
- my $byte = $sth->fetchall_arrayref()->[0][0];
- ok($byte eq "a\0b", "text from BYTEA column looks corect");
-+
-+$sth->execute(402);
-+$byte = $sth->fetchall_arrayref()->[0][0];
-+is($byte, '\'', 'text from BYTEA column with quote');
-+
- $sth->finish();
-
- $dbh->rollback();
diff --git a/databases/p5-DBD-Pg/files/patch-Makefile.PL b/databases/p5-DBD-Pg/files/patch-Makefile.PL
index 082486aaf7c5..fe6c53911ab1 100644
--- a/databases/p5-DBD-Pg/files/patch-Makefile.PL
+++ b/databases/p5-DBD-Pg/files/patch-Makefile.PL
@@ -1,13 +1,15 @@
---- Makefile.PL.orig Sat May 21 16:43:17 2005
-+++ Makefile.PL Mon May 23 13:32:05 2005
-@@ -85,13 +85,13 @@
+--- Makefile.PL.orig Thu Apr 20 19:25:49 2006
++++ Makefile.PL Thu Apr 20 19:26:54 2006
+@@ -96,7 +96,7 @@
}
}
--my $comp_opts = $Config{q{ccflags}} . " -DPGLIBVERSION=$serverversion";
-+my $comp_opts = " -DPGLIBVERSION=$serverversion";
+-my $comp_opts = $Config{q{ccflags}} . " -DPGLIBVERSION=$serverversion -DPGDEFPORT=$defaultport";
++my $comp_opts = " -DPGLIBVERSION=$serverversion -DPGDEFPORT=$defaultport";
- my %opts =
+ if ($ENV{DBDPG_GCCDEBUG}) {
+ warn "Enabling many compiler options\n";
+@@ -120,7 +120,7 @@
(
NAME => 'DBD::Pg',
VERSION_FROM => 'Pg.pm',
@@ -16,11 +18,11 @@
OBJECT => "Pg\$(OBJ_EXT) dbdimp\$(OBJ_EXT) quote\$(OBJ_EXT) types\$(OBJ_EXT)",
LIBS => ["-L$POSTGRES_LIB -lpq"],
AUTHOR => 'http://gborg.postgresql.org/project/dbdpg/',
-@@ -99,7 +99,6 @@
- PREREQ_PM => { 'Test::Simple' => '0.17', # Need Test::More.
- 'Test::Harness' => '2.03', # Need TODO tests.
- },
+@@ -130,7 +130,6 @@
+ 'Test::Simple' => '0.30',
+ 'Test::Harness' => '2.03',
+ },
- CCFLAGS => $comp_opts,
PERL_MALLOC_OK => 1,
NEEDS_LINKING => 1,
- clean => { FILES => 'trace' },
+ clean => { FILES => 'trace Pg.xsi' },
diff --git a/databases/p5-DBD-Pg/files/patch-quote.c b/databases/p5-DBD-Pg/files/patch-quote.c
deleted file mode 100644
index 0ffbf3bd2f33..000000000000
--- a/databases/p5-DBD-Pg/files/patch-quote.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- quote.c.orig Wed May 25 04:14:24 2005
-+++ quote.c Thu Aug 4 22:34:26 2005
-@@ -307,7 +307,7 @@
- dest = result;
-
- Copy("'", dest++, 1, char);
-- strncpy(dest,intermead,strlen(intermead));
-+ strncpy(dest,intermead,strlen(intermead)+1);
- strcat(dest,"\'");
-
- #if PGLIBVERSION >= 70400