summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-03-17 14:18:48 +0000
committertaca <taca@pkgsrc.org>2012-03-17 14:18:48 +0000
commit9fb76cd3d9b5c473a5555792c8871c1d2a92aca6 (patch)
tree530a059bdf1483b4c676f6e396b458ac816d2f32 /databases
parentad7cb0ee4cee0b861590413704e99578f5a19848 (diff)
downloadpkgsrc-9fb76cd3d9b5c473a5555792c8871c1d2a92aca6.tar.gz
Remove ruby-postgresql.
There is postgresql.gem named 0.8.1 and its README.txt says: This is an old, deprecated version of the Ruby PostgreSQL driver that hasn't been maintained or supported since early 2008. You should install/require 'pg' instead. So, say good-by to databases/ruby-postgresql and use databases/ruby-pg.
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-postgresql/DESCR1
-rw-r--r--databases/ruby-postgresql/Makefile21
-rw-r--r--databases/ruby-postgresql/PLIST14
-rw-r--r--databases/ruby-postgresql/distinfo7
-rw-r--r--databases/ruby-postgresql/patches/patch-aa22
-rw-r--r--databases/ruby-postgresql/patches/patch-ab102
6 files changed, 0 insertions, 167 deletions
diff --git a/databases/ruby-postgresql/DESCR b/databases/ruby-postgresql/DESCR
deleted file mode 100644
index f89a1ee9ead..00000000000
--- a/databases/ruby-postgresql/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-This is the extension library to access a PostgreSQL database from Ruby.
diff --git a/databases/ruby-postgresql/Makefile b/databases/ruby-postgresql/Makefile
deleted file mode 100644
index 6d110d2c663..00000000000
--- a/databases/ruby-postgresql/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: Makefile,v 1.37 2011/02/21 16:01:12 taca Exp $
-
-DISTNAME= postgres-0.7.9.2008.01.28
-PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
-PKGREVISION= 2
-CATEGORIES= databases
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://bitbucket.org/ged/ruby-pg/
-COMMENT= Ruby extension for PostgreSQL
-LICENSE= gnu-gpl-v2 OR ruby-license
-
-CONFIGURE_ARGS= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \
- --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib
-
-pre-configure:
- chmod -R g-w ${WRKSRC}
-
-.include "../../lang/ruby/gem.mk"
-.include "../../mk/pgsql.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/databases/ruby-postgresql/PLIST b/databases/ruby-postgresql/PLIST
deleted file mode 100644
index 78ff465f3e0..00000000000
--- a/databases/ruby-postgresql/PLIST
+++ /dev/null
@@ -1,14 +0,0 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 17:43:25 joerg Exp $
-${GEM_HOME}/cache/postgres-${PKGVERSION}.gem
-${GEM_LIBDIR}/COPYING
-${GEM_LIBDIR}/COPYING.txt
-${GEM_LIBDIR}/Contributors
-${GEM_LIBDIR}/GPL
-${GEM_LIBDIR}/LICENSE
-${GEM_LIBDIR}/README
-${GEM_LIBDIR}/ext/extconf.rb
-${GEM_LIBDIR}/ext/libpq-compat.c
-${GEM_LIBDIR}/ext/postgres.c
-${GEM_LIBDIR}/ext/type-oids.h
-${GEM_LIBDIR}/lib/postgres.${RUBY_DLEXT}
-${GEM_HOME}/specifications/postgres-${PKGVERSION}.gemspec
diff --git a/databases/ruby-postgresql/distinfo b/databases/ruby-postgresql/distinfo
deleted file mode 100644
index 54df1474552..00000000000
--- a/databases/ruby-postgresql/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD: distinfo,v 1.8 2010/09/10 04:42:58 taca Exp $
-
-SHA1 (postgres-0.7.9.2008.01.28.gem) = 229ca3c503cda8a0977cd6e6d41896da7b8d5ecc
-RMD160 (postgres-0.7.9.2008.01.28.gem) = 2473b4225802a49fd56a5adac702dc89d6cd19ba
-Size (postgres-0.7.9.2008.01.28.gem) = 32768 bytes
-SHA1 (patch-aa) = 50263d107921a1733d57a276bac2c88b15785c03
-SHA1 (patch-ab) = a43bb1f31ddc90103f9dac11f7a2d326218b6f61
diff --git a/databases/ruby-postgresql/patches/patch-aa b/databases/ruby-postgresql/patches/patch-aa
deleted file mode 100644
index cd9e8f197ae..00000000000
--- a/databases/ruby-postgresql/patches/patch-aa
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2010/09/10 04:42:58 taca Exp $
-
-Don't use deprecated constant PLATFORM, use RUBY_PLATFORM.
-
---- ext/extconf.rb.orig 2010-08-27 23:28:37.000000000 +0000
-+++ ext/extconf.rb
-@@ -1,13 +1,13 @@
-
-
- # windows compatibility, need different library name
--if(PLATFORM =~ /mingw|mswin/) then
-+if(RUBY_PLATFORM =~ /mingw|mswin/) then
- $libname = '/ms/libpq'
- else
- $libname = 'pq'
- end
-
--if(PLATFORM =~ /darwin/) then
-+if(RUBY_PLATFORM =~ /darwin/) then
- # test if postgresql is probably universal
- bindir = (IO.popen("pg_config --bindir").readline.chomp rescue nil)
- filetype = (IO.popen("file #{bindir}/pg_config").
diff --git a/databases/ruby-postgresql/patches/patch-ab b/databases/ruby-postgresql/patches/patch-ab
deleted file mode 100644
index 8593cf67320..00000000000
--- a/databases/ruby-postgresql/patches/patch-ab
+++ /dev/null
@@ -1,102 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2010/09/10 04:42:58 taca Exp $
-
-Use modern Ruby's API.
-
---- ext/postgres.c.orig 2010-08-28 00:00:42.000000000 +0000
-+++ ext/postgres.c
-@@ -192,7 +192,7 @@ pgconn_connect(argc, argv, self)
- PGconn *conn = NULL;
-
- rb_scan_args(argc, argv, "0*", &args);
-- if (RARRAY(args)->len == 1) {
-+ if (RARRAY_LEN(args) == 1) {
- conn = try_connectdb(rb_ary_entry(args, 0));
- }
- if (conn == NULL) {
-@@ -720,14 +720,14 @@ pgconn_exec(argc, argv, obj)
-
- Check_Type(command, T_STRING);
-
-- if (RARRAY(params)->len <= 0) {
-+ if (RARRAY_LEN(params) <= 0) {
- result = PQexec(conn, StringValuePtr(command));
- }
- else {
-- int len = RARRAY(params)->len;
-+ int len = RARRAY_LEN(params);
- int i;
- #ifdef HAVE_PQEXECPARAMS
-- VALUE* ptr = RARRAY(params)->ptr;
-+ VALUE* ptr = RARRAY_PTR(params);
- char const** values = ALLOCA_N(char const*, len);
- int* lengths = ALLOCA_N(int, len);
- int* formats = ALLOCA_N(int, len);
-@@ -947,9 +947,9 @@ pgconn_insert_table(obj, table, values)
-
- Check_Type(table, T_STRING);
- Check_Type(values, T_ARRAY);
-- i = RARRAY(values)->len;
-+ i = RARRAY_LEN(values);
- while (i--) {
-- if (TYPE(RARRAY(RARRAY(values)->ptr[i])) != T_ARRAY) {
-+ if (TYPE(RARRAY(RARRAY_PTR(values)[i])) != T_ARRAY) {
- rb_raise(rb_ePGError, "second arg must contain some kind of arrays.");
- }
- }
-@@ -964,15 +964,15 @@ pgconn_insert_table(obj, table, values)
- }
- PQclear(result);
-
-- for (i = 0; i < RARRAY(values)->len; i++) {
-- struct RArray *row = RARRAY(RARRAY(values)->ptr[i]);
-+ for (i = 0; i < RARRAY_LEN(values); i++) {
-+ struct RArray *row = RARRAY(RARRAY_PTR(values)[i]);
- buffer = rb_tainted_str_new(0,0);
-- for (j = 0; j < row->len; j++) {
-+ for (j = 0; j < RARRAY_LEN(row); j++) {
- if (j > 0) rb_str_cat(buffer, "\t", 1);
-- if (NIL_P(row->ptr[j])) {
-+ if (NIL_P(RARRAY_PTR(row)[j])) {
- rb_str_cat(buffer, "\\N",2);
- } else {
-- s = rb_obj_as_string(row->ptr[j]);
-+ s = rb_obj_as_string(RARRAY_PTR(row)[j]);
- rb_funcall(s,pg_gsub_bang_id,2,
- rb_str_new("([\\t\\n\\\\])", 10),pg_escape_str);
- rb_str_cat(buffer, StringValuePtr(s), RSTRING_LEN(s));
-@@ -1482,7 +1482,7 @@ fetch_pgrow(self, fields, row_num)
- PGresult *result = get_pgresult(self);
- VALUE row = rb_funcall(rb_cPGrow, rb_intern("new"), 1, fields);
- int field_num;
-- for (field_num = 0; field_num < RARRAY(fields)->len; field_num++) {
-+ for (field_num = 0; field_num < RARRAY_LEN(fields); field_num++) {
- /* don't use push, PGrow is sized with nils in #new */
- rb_ary_store(row, field_num, fetch_pgresult(result, row_num, field_num));
- }
-@@ -2417,7 +2417,7 @@ static VALUE
- pgrow_init(self, keys)
- VALUE self, keys;
- {
-- VALUE args[1] = { LONG2NUM(RARRAY(keys)->len) };
-+ VALUE args[1] = { LONG2NUM(RARRAY_LEN(keys)) };
- rb_call_super(1, args);
- rb_iv_set(self, "@keys", keys);
- return self;
-@@ -2501,7 +2501,7 @@ pgrow_each_pair(self)
- {
- VALUE keys = pgrow_keys(self);
- int i;
-- for (i = 0; i < RARRAY(keys)->len; ++i) {
-+ for (i = 0; i < RARRAY_LEN(keys); ++i) {
- rb_yield(rb_assoc_new(rb_ary_entry(keys, i), rb_ary_entry(self, i)));
- }
- return self;
-@@ -2556,7 +2556,7 @@ pgrow_to_hash(self)
- VALUE result = rb_hash_new();
- VALUE keys = pgrow_keys(self);
- int i;
-- for (i = 0; i < RARRAY(self)->len; ++i) {
-+ for (i = 0; i < RARRAY_LEN(self); ++i) {
- rb_hash_aset(result, rb_ary_entry(keys, i), rb_ary_entry(self, i));
- }
- return result;