From 0c72dc12dca92f5a8659b513ba5ea61071b8a785 Mon Sep 17 00:00:00 2001 From: jeremy Date: Fri, 9 Sep 2011 00:47:23 +0000 Subject: [PATCH] Update version to 0.4.5. Add patch for building with the recently updated freetds 0.91. --- databases/ruby-tiny_tds/Makefile | 6 ++--- databases/ruby-tiny_tds/distinfo | 10 ++++---- .../patches/patch-ext_tiny_tds_result_h | 15 ++++++++++++ databases/ruby-tiny_tds/pkg/PLIST | 24 ++++++++++++++++++- 4 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 databases/ruby-tiny_tds/patches/patch-ext_tiny_tds_result_h diff --git a/databases/ruby-tiny_tds/Makefile b/databases/ruby-tiny_tds/Makefile index cc892cae0f9..de636c9ceab 100644 --- a/databases/ruby-tiny_tds/Makefile +++ b/databases/ruby-tiny_tds/Makefile @@ -1,12 +1,10 @@ -# $OpenBSD: Makefile,v 1.2 2011/04/15 16:13:23 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.3 2011/09/09 00:47:23 jeremy Exp $ COMMENT = simple and fast ruby binding to FreeTDS -DISTNAME = tiny_tds-0.4.3 +DISTNAME = tiny_tds-0.4.5 CATEGORIES = databases -REVISION = 0 - HOMEPAGE = https://github.com/rails-sqlserver/tiny_tds MAINTAINER = Jeremy Evans diff --git a/databases/ruby-tiny_tds/distinfo b/databases/ruby-tiny_tds/distinfo index 38210e6b771..8c34962b462 100644 --- a/databases/ruby-tiny_tds/distinfo +++ b/databases/ruby-tiny_tds/distinfo @@ -1,5 +1,5 @@ -MD5 (tiny_tds-0.4.3.gem) = JRqiWcXCNvYI2qZ8eGU0lg== -RMD160 (tiny_tds-0.4.3.gem) = axF9Uke1OZ4DezeUvF4BJL8X5ac= -SHA1 (tiny_tds-0.4.3.gem) = k+HLdD1vLh2QAzUlySokKzdoLhY= -SHA256 (tiny_tds-0.4.3.gem) = PkE2EDzKd4jALzRcd4dvrmJT2TO+5Uo3QdnqXsYgUPM= -SIZE (tiny_tds-0.4.3.gem) = 19968 +MD5 (tiny_tds-0.4.5.gem) = spm5TUL1BX7TIa9otgaIhQ== +RMD160 (tiny_tds-0.4.5.gem) = Teanp1oJbe+xfnjiatFuFNsuMcE= +SHA1 (tiny_tds-0.4.5.gem) = /TVnJXnkLxUMjzZigcv/v67Bbp4= +SHA256 (tiny_tds-0.4.5.gem) = 3I/GNJfcPpLpozNam8xCPZQV4IxbSPr9z0ka9RTohHQ= +SIZE (tiny_tds-0.4.5.gem) = 34816 diff --git a/databases/ruby-tiny_tds/patches/patch-ext_tiny_tds_result_h b/databases/ruby-tiny_tds/patches/patch-ext_tiny_tds_result_h new file mode 100644 index 00000000000..bcf77cbd373 --- /dev/null +++ b/databases/ruby-tiny_tds/patches/patch-ext_tiny_tds_result_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-ext_tiny_tds_result_h,v 1.1 2011/09/09 00:47:23 jeremy Exp $ +--- ext/tiny_tds/result.h.orig Thu Sep 8 16:00:29 2011 ++++ ext/tiny_tds/result.h Thu Sep 8 16:01:18 2011 +@@ -2,8 +2,9 @@ + #ifndef TINYTDS_RESULT_H + #define TINYTDS_RESULT_H + +-// TODO: Is this needed? +-typedef tds_sysdep_int64_type DBBIGINT; /* Missing in sybdb.h ?!?! */ ++#ifndef DBSETLDBNAME ++typedef tds_sysdep_int64_type DBBIGINT; /* For FreeTDS 0.82 */ ++#endif + + void init_tinytds_result(); + VALUE rb_tinytds_new_result_obj(DBPROCESS *c); diff --git a/databases/ruby-tiny_tds/pkg/PLIST b/databases/ruby-tiny_tds/pkg/PLIST index f5d962c37f8..e9b427532cd 100644 --- a/databases/ruby-tiny_tds/pkg/PLIST +++ b/databases/ruby-tiny_tds/pkg/PLIST @@ -1,9 +1,13 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2011/04/01 23:17:08 jeremy Exp $ +@comment $OpenBSD: PLIST,v 1.2 2011/09/09 00:47:23 jeremy Exp $ ${GEM_LIB}/cache/${DISTNAME}.gem ${GEM_LIB}/gems/${DISTNAME}/ +${GEM_LIB}/gems/${DISTNAME}/.gitignore ${GEM_LIB}/gems/${DISTNAME}/CHANGELOG +${GEM_LIB}/gems/${DISTNAME}/Gemfile ${GEM_LIB}/gems/${DISTNAME}/MIT-LICENSE +${GEM_LIB}/gems/${DISTNAME}/NOTES ${GEM_LIB}/gems/${DISTNAME}/README.rdoc +${GEM_LIB}/gems/${DISTNAME}/Rakefile ${GEM_LIB}/gems/${DISTNAME}/ext/ ${GEM_LIB}/gems/${DISTNAME}/ext/tiny_tds/ ${GEM_LIB}/gems/${DISTNAME}/ext/tiny_tds/Makefile @@ -26,4 +30,22 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/client.rb ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/error.rb ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/result.rb ${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/tiny_tds.so +${GEM_LIB}/gems/${DISTNAME}/lib/tiny_tds/version.rb +${GEM_LIB}/gems/${DISTNAME}/tasks/ +${GEM_LIB}/gems/${DISTNAME}/tasks/ports.rake +${GEM_LIB}/gems/${DISTNAME}/test/ +${GEM_LIB}/gems/${DISTNAME}/test/benchmark/ +${GEM_LIB}/gems/${DISTNAME}/test/benchmark/query.rb +${GEM_LIB}/gems/${DISTNAME}/test/benchmark/query_odbc.rb +${GEM_LIB}/gems/${DISTNAME}/test/benchmark/query_tinytds.rb +${GEM_LIB}/gems/${DISTNAME}/test/client_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/result_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/schema/ +${GEM_LIB}/gems/${DISTNAME}/test/schema/1px.gif +${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2000.sql +${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2005.sql +${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_2008.sql +${GEM_LIB}/gems/${DISTNAME}/test/schema/sqlserver_azure.sql +${GEM_LIB}/gems/${DISTNAME}/test/schema_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/test_helper.rb ${GEM_LIB}/specifications/${DISTNAME}.gemspec