From 8c188fbe08494492c01aa434f7f5b7365ee416ac Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 4 Apr 2008 15:16:02 +0000 Subject: Update ruby-postgresql to version 0.7.9.2008.01.28. Changes from version 0.7.1 include: + Install as a Ruby gem. - Aliases to make it easier for ActiveRecord to support both ruby-pg (the successor to ruby-postgres) and ruby-postgres. - Fix connections to PostgreSQL>8.2. --- databases/ruby-postgresql/Makefile | 50 +++++++++----------------------------- databases/ruby-postgresql/PLIST | 31 ++++++++++++----------- databases/ruby-postgresql/distinfo | 8 +++--- 3 files changed, 32 insertions(+), 57 deletions(-) (limited to 'databases') diff --git a/databases/ruby-postgresql/Makefile b/databases/ruby-postgresql/Makefile index ebdcb8e44a5..293e0754b9c 100644 --- a/databases/ruby-postgresql/Makefile +++ b/databases/ruby-postgresql/Makefile @@ -1,46 +1,18 @@ -# $NetBSD: Makefile,v 1.32 2007/12/02 11:58:26 wiz Exp $ +# $NetBSD: Makefile,v 1.33 2008/04/04 15:16:02 jlam Exp $ -DISTNAME= ruby-postgres-${VERSION} -PKGNAME= ${RUBY_PKGPREFIX}-postgresql-${VERSION} -PKGREVISION= 8 -CATEGORIES= databases ruby -MASTER_SITES= http://raa.ruby-lang.org/cache/postgres/ \ - http://ruby.scripting.ca/postgres/archive/ +DISTNAME= postgres-0.7.9.2008.01.28 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/} +CATEGORIES= databases -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://ruby.scripting.ca/postgres/ -COMMENT= Ruby extension for postgresql +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ruby.scripting.ca/postgres/ +COMMENT= Ruby extension for PostgreSQL -RUBY_HAS_ARCHLIB= yes -USE_RUBY_EXTCONF= yes -VERSION= 0.7.1 -INSTALL_TARGET= site-install -CONFIGURE_ARGS+= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \ - --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib +GEM_BUILD= gemspec +CONFIGURE_ARGS= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \ + --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib -DOC= README README.ja doc/postgres.html doc/postgres.ja.html -EXAMPLE_LIBS= losample.rb psqlHelp.rb -EXAMPLE_SCRIPTS= psql.rb test1.rb test2.rb test4.rb -REPLACE_RUBY= sample/psql.rb sample/test1.rb sample/test2.rb \ - sample/test4.rb +.include "../../misc/rubygems/rubygem.mk" -pre-install: - @cd ${WRKSRC}; \ - ${CP} -p doc/postgres.jp.html doc/postgres.ja.html - -post-install: - ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/postgresql -.for f in ${DOC} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgresql -.endfor - ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/postgresql -.for f in ${EXAMPLE_LIBS} - ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/postgresql -.endfor -.for f in ${EXAMPLE_SCRIPTS} - ${INSTALL_SCRIPT} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/postgresql -.endfor - -.include "../../lang/ruby/modules.mk" .include "../../mk/pgsql.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/databases/ruby-postgresql/PLIST b/databases/ruby-postgresql/PLIST index 02314604076..44b4aa2317a 100644 --- a/databases/ruby-postgresql/PLIST +++ b/databases/ruby-postgresql/PLIST @@ -1,14 +1,17 @@ -@comment $NetBSD: PLIST,v 1.3 2004/12/04 17:20:46 taca Exp $ -${RUBY_SITEARCHLIBDIR}/postgres.${RUBY_DLEXT} -${RUBY_DOCDIR}/postgresql/README -${RUBY_DOCDIR}/postgresql/README.ja -${RUBY_DOCDIR}/postgresql/postgres.html -${RUBY_DOCDIR}/postgresql/postgres.ja.html -${RUBY_EXAMPLESDIR}/postgresql/losample.rb -${RUBY_EXAMPLESDIR}/postgresql/psql.rb -${RUBY_EXAMPLESDIR}/postgresql/psqlHelp.rb -${RUBY_EXAMPLESDIR}/postgresql/test1.rb -${RUBY_EXAMPLESDIR}/postgresql/test2.rb -${RUBY_EXAMPLESDIR}/postgresql/test4.rb -@dirrm ${RUBY_DOCDIR}/postgresql -@dirrm ${RUBY_EXAMPLESDIR}/postgresql +@comment $NetBSD: PLIST,v 1.4 2008/04/04 15:16:02 jlam 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 +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/ext +@dirrm ${GEM_LIBDIR} diff --git a/databases/ruby-postgresql/distinfo b/databases/ruby-postgresql/distinfo index b1c6592c5cb..e50a1d94ea0 100644 --- a/databases/ruby-postgresql/distinfo +++ b/databases/ruby-postgresql/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.6 2006/01/03 14:25:49 taca Exp $ +$NetBSD: distinfo,v 1.7 2008/04/04 15:16:02 jlam Exp $ -SHA1 (ruby-postgres-0.7.1.tar.gz) = ba3b872511b525f6b5979031ee62bfa265697e9a -RMD160 (ruby-postgres-0.7.1.tar.gz) = 9ec82ec6755f1ccd38582faeba239474fcb53ec9 -Size (ruby-postgres-0.7.1.tar.gz) = 29256 bytes +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 -- cgit v1.2.3