[csw-devel] SF.net SVN: gar:[11541] csw/mgar/pkg/cpan

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Nov 10 12:34:16 CET 2010


Revision: 11541
          http://gar.svn.sourceforge.net/gar/?rev=11541&view=rev
Author:   dmichelsen
Date:     2010-11-10 11:34:16 +0000 (Wed, 10 Nov 2010)

Log Message:
-----------
DBD-Sybase: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/cpan/DBD-Sybase/
    csw/mgar/pkg/cpan/DBD-Sybase/branches/
    csw/mgar/pkg/cpan/DBD-Sybase/tags/
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/checksums
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/0001-Use-CS_UNITEXT_TYPE-only-when-available.patch
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/COPYING


Property changes on: csw/mgar/pkg/cpan/DBD-Sybase/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile	2010-11-10 11:34:16 UTC (rev 11541)
@@ -0,0 +1,39 @@
+GARNAME = DBD-Sybase
+GARVERSION = 1.11
+CATEGORIES = cpan
+AUTHOR = MEWP
+
+DESCRIPTION = Sybase database driver for the DBI module
+define BLURB
+endef
+
+DISTFILES = COPYING
+PATCHFILES = 0001-Use-CS_UNITEXT_TYPE-only-when-available.patch
+
+PACKAGES = CSWpmdbdsybase
+CATALOGNAME = pm_dbdsybase
+
+SYBASE = /opt/csw/sybase/OCS-12_5
+LD_LIBRARY_PATH = $(SYBASE)/lib
+
+NOISALIST = 1
+EXTRA_LIB = $(SYBASE)/lib
+
+LD_OPTIONS =
+EXTRA_LINKER_FLAGS = $(RUNPATH_LINKER_FLAGS)
+
+EXTRA_CONFIGURE_EXPORTS = SYBASE LD_LIBRARY_PATH
+PERL_CONFIGURE_ARGS = --accept_test_defaults --chained Y --threaded_libs N
+
+EXTRA_TEST_EXPORTS = LD_LIBRARY_PATH
+
+# We need a running database for this
+TEST_SCRIPTS ?=
+
+# These are provided by the Sybase OCS libraries
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcs.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcomn.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libtcl.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libct.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
+
+include gar/category.mk

Added: csw/mgar/pkg/cpan/DBD-Sybase/trunk/checksums
===================================================================
--- csw/mgar/pkg/cpan/DBD-Sybase/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/cpan/DBD-Sybase/trunk/checksums	2010-11-10 11:34:16 UTC (rev 11541)
@@ -0,0 +1 @@
+7bbad79fcfc34195e6a3a8418277e64d  DBD-Sybase-1.11.tar.gz

Added: csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/0001-Use-CS_UNITEXT_TYPE-only-when-available.patch
===================================================================
--- csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/0001-Use-CS_UNITEXT_TYPE-only-when-available.patch	                        (rev 0)
+++ csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/0001-Use-CS_UNITEXT_TYPE-only-when-available.patch	2010-11-10 11:34:16 UTC (rev 11541)
@@ -0,0 +1,30 @@
+From 32772f45d772b1721b47f7487b9c46b5d392e3c3 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 10 Nov 2010 11:39:56 +0100
+Subject: [PATCH] Use CS_UNITEXT_TYPE only when available
+
+---
+ dbdimp.c |    7 +++++--
+ 1 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/dbdimp.c b/dbdimp.c
+index 1bbe697..0abfbf7 100644
+--- a/dbdimp.c
++++ b/dbdimp.c
+@@ -4013,8 +4013,11 @@ AV * syb_st_fetch(SV *sth, imp_sth_t *imp_sth) {
+ 					}
+ #if defined(DBD_CAN_HANDLE_UTF8)
+ 					if (imp_dbh->enable_utf8
+-							&& (imp_sth->coldata[i].realType == CS_UNICHAR_TYPE ||
+-									imp_sth->coldata[i].realType == CS_UNITEXT_TYPE)) {
++							&& (imp_sth->coldata[i].realType == CS_UNICHAR_TYPE
++#if defined(CS_UNITEXT_TYPE)
++								|| imp_sth->coldata[i].realType == CS_UNITEXT_TYPE
++#endif
++							)) {
+ 						U8 *value = SvPV_nolen(sv);
+ 						STRLEN len = SvLEN(sv);
+ 
+-- 
+1.7.3
+

Added: csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/COPYING
===================================================================
--- csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/COPYING	                        (rev 0)
+++ csw/mgar/pkg/cpan/DBD-Sybase/trunk/files/COPYING	2010-11-10 11:34:16 UTC (rev 11541)
@@ -0,0 +1,5 @@
+   Copyright (c) 1996-2007  Michael Peppler
+
+   You may distribute under the terms of either the GNU General Public
+   License or the Artistic License, as specified in the Perl README file.
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list