summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-Sybase
diff options
context:
space:
mode:
Diffstat (limited to 'databases/p5-DBD-Sybase')
-rw-r--r--databases/p5-DBD-Sybase/Makefile17
-rw-r--r--databases/p5-DBD-Sybase/distinfo11
-rw-r--r--databases/p5-DBD-Sybase/patches/patch-aa32
-rw-r--r--databases/p5-DBD-Sybase/patches/patch-ab43
-rw-r--r--databases/p5-DBD-Sybase/patches/patch-ac30
5 files changed, 48 insertions, 85 deletions
diff --git a/databases/p5-DBD-Sybase/Makefile b/databases/p5-DBD-Sybase/Makefile
index d722eb63409..f076c410a85 100644
--- a/databases/p5-DBD-Sybase/Makefile
+++ b/databases/p5-DBD-Sybase/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2008/10/19 19:17:44 he Exp $
+# $NetBSD: Makefile,v 1.29 2009/07/17 06:46:41 sno Exp $
#
-DISTNAME= DBD-Sybase-0.94
+DISTNAME= DBD-Sybase-1.09
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 9
SVR4_PKGNAME= p5dsy
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
@@ -11,6 +10,7 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.peppler.org/freeware/dbd-sybase.html
COMMENT= Perl DBI/DBD driver for Sybase/MS-SQL databases
+LICENSE= ${PERL5_LICENSE}
PKG_DESTDIR_SUPPORT= user-destdir
@@ -32,12 +32,21 @@ _SYBASE= ${BUILDLINK_PREFIX.freetds}
PERL5_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_SYBASE}/lib
MAKE_ENV+= SYBASE=${_SYBASE:Q}
+MAKE_PARAMS+= --accept_test_defaults
+MAKE_PARAMS+= --chained Y
.if !defined(USE_SYBASE_OPENCLIENT)
. include "../../databases/freetds/buildlink3.mk"
.endif
+.include "../../lang/perl5/module.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.perl:Mthreads)
+MAKE_PARAMS+= --threaded_libs Y
+.else
+MAKE_PARAMS+= --threaded_libs N
+.endif
+
.include "../../databases/p5-DBI/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/p5-DBD-Sybase/distinfo b/databases/p5-DBD-Sybase/distinfo
index be872596882..dfd126568a9 100644
--- a/databases/p5-DBD-Sybase/distinfo
+++ b/databases/p5-DBD-Sybase/distinfo
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.7 2005/02/23 16:33:07 agc Exp $
+$NetBSD: distinfo,v 1.8 2009/07/17 06:46:41 sno Exp $
-SHA1 (DBD-Sybase-0.94.tar.gz) = e11d85b31751253a0da3ccee5336504b1edc59de
-RMD160 (DBD-Sybase-0.94.tar.gz) = d76291f58331cc8c302881ecac56345635e7d3b9
-Size (DBD-Sybase-0.94.tar.gz) = 98551 bytes
-SHA1 (patch-aa) = 741edae7aaa75cf65ec00bae22692bc12f5e4c9f
-SHA1 (patch-ab) = 942ed3c795d33a2d9dcd4dfb4b784f0a7b8a3a42
+SHA1 (DBD-Sybase-1.09.tar.gz) = 23cad59ab7892732175336087093b1e3c2bda09a
+RMD160 (DBD-Sybase-1.09.tar.gz) = 6328d65c955956aa4c68dedf5d10aaf882ccc949
+Size (DBD-Sybase-1.09.tar.gz) = 194414 bytes
+SHA1 (patch-ac) = 17211c406ce1784da5d637fd0430a960c513704d
diff --git a/databases/p5-DBD-Sybase/patches/patch-aa b/databases/p5-DBD-Sybase/patches/patch-aa
deleted file mode 100644
index 945d4069c36..00000000000
--- a/databases/p5-DBD-Sybase/patches/patch-aa
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2002/10/27 19:41:54 seb Exp $
-
---- Makefile.PL.orig Tue Nov 20 21:04:06 2001
-+++ Makefile.PL
-@@ -39,9 +39,6 @@ WriteMakefile('NAME' => 'DBD::Sy
- 'LDDLFLAGS' => $lddlflags,
- 'LDFLAGS' => $ldflags,
- LINKTYPE => $LINKTYPE,
-- ($^O eq 'VMS' ?
-- (MAN3PODS => { 'Sybase.pm' => 'blib/man3/DBD_Sybase.3' }) :
-- (MAN3PODS => { 'Sybase.pm' => 'blib/man3/DBD::Sybase.3' })),
- ($] >= 5.005 ?
- (ABSTRACT => 'DBI driver for Sybase datasources',
- AUTHOR => 'Michael Peppler (mpeppler@peppler.org)') : ()),
-@@ -197,17 +194,6 @@ sub configPwd {
- $pwd{$key} = $val || "undef";
- }
- close(IN);
-- select(STDOUT); $| = 1;
--
-- print "The DBD::Sybase module need access to a Sybase server to run the tests.\n";
-- print "To clear an entry please enter 'undef'\n";
-- print "Sybase server to use (default: $pwd{SRV}): ";
-- $pwd{SRV} = getAns() || $pwd{SRV};
-- print "User ID to log in to Sybase (default: $pwd{UID}): ";
-- $pwd{UID} = getAns() || $pwd{UID};
-- print "Password (default: $pwd{PWD}): ";
-- $pwd{PWD} = getAns() || $pwd{PWD};
--
- open(OUT, ">PWD") || die "Can't open PWD: $!";
- print OUT <<EOF;
- # This file contains optional login id, passwd and server info for the test
diff --git a/databases/p5-DBD-Sybase/patches/patch-ab b/databases/p5-DBD-Sybase/patches/patch-ab
deleted file mode 100644
index 61a87863b63..00000000000
--- a/databases/p5-DBD-Sybase/patches/patch-ab
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2004/05/14 18:49:52 wiz Exp $
-
---- dbdimp.c.orig 2001-12-13 02:05:26.000000000 +0100
-+++ dbdimp.c
-@@ -1970,23 +1970,23 @@ static int syb_st_describe_proc(imp_sth,
- PerlIO_printf(DBILOGFP, " describe_proc: %s %s %s\n", db, owner, proc);
-
- if(db && *db) {
-- sprintf(sql, "
--select c.colid, c.name, c.usertype, c.prec, c.scale
-- from %s..sysobjects o, %s..syscolumns c, %s..sysusers u
-- where c.id = o.id
-- and o.name = '%s'
-- and o.type = 'P'
-- and o.uid = u.uid
-- and u.name = '%s'
-+ sprintf(sql, "\
-+select c.colid, c.name, c.usertype, c.prec, c.scale \
-+ from %s..sysobjects o, %s..syscolumns c, %s..sysusers u\
-+ where c.id = o.id \
-+ and o.name = '%s'\
-+ and o.type = 'P'\
-+ and o.uid = u.uid\
-+ and u.name = '%s'\
- ", db, db, db, proc, owner);
- } else {
-- sprintf(sql, "
--select c.colid, c.name, c.usertype, c.prec, c.scale
-- from sysobjects o, syscolumns c
-- where c.id = o.id
-- and o.name = '%s'
-- and o.type = 'P'
-- and o.uid = user_id(u.uid
-+ sprintf(sql, "\
-+select c.colid, c.name, c.usertype, c.prec, c.scale \
-+ from sysobjects o, syscolumns c\
-+ where c.id = o.id \
-+ and o.name = '%s'\
-+ and o.type = 'P'\
-+ and o.uid = user_id(u.uid\
- and u.name = '%s'", proc, owner);
- }
- #endif
diff --git a/databases/p5-DBD-Sybase/patches/patch-ac b/databases/p5-DBD-Sybase/patches/patch-ac
new file mode 100644
index 00000000000..a8c335f88a2
--- /dev/null
+++ b/databases/p5-DBD-Sybase/patches/patch-ac
@@ -0,0 +1,30 @@
+--- dbdimp.c.orig 2009-07-07 14:58:51.000000000 +0000
++++ dbdimp.c 2009-07-07 14:59:26.000000000 +0000
+@@ -774,22 +774,22 @@
+
+ #if defined(CS_VERSION_150)
+ if(cs_ver == CS_VERSION_150)
+- BLK_VERSION = BLK_VERSION_150;
++ BLK_VERSION = CS_VERSION_150;
+ #endif
+ #if defined(CS_VERSION_125)
+ if(cs_ver == CS_VERSION_125)
+- BLK_VERSION = BLK_VERSION_125;
++ BLK_VERSION = CS_VERSION_125;
+ #endif
+ #if defined(CS_VERSION_120)
+ if(cs_ver == CS_VERSION_120)
+- BLK_VERSION = BLK_VERSION_120;
++ BLK_VERSION = CS_VERSION_120;
+ #endif
+ #if defined(CS_VERSION_110)
+ if(cs_ver == CS_VERSION_110)
+- BLK_VERSION = BLK_VERSION_110;
++ BLK_VERSION = CS_VERSION_110;
+ #endif
+ if (cs_ver == CS_VERSION_100)
+- BLK_VERSION = BLK_VERSION_100;
++ BLK_VERSION = CS_VERSION_100;
+
+ #if USE_CSLIB_CB
+ if (cs_config(context, CS_SET, CS_MESSAGE_CB,