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.diff -r1.32 -r1.33 pkgsrc/databases/ruby-postgresql/Makefile
(jlam)
@@ -1,46 +1,18 @@ | @@ -1,46 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.32 2007/12/02 11:58:26 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.33 2008/04/04 15:16:02 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= ruby-postgres-${VERSION} | 3 | DISTNAME= postgres-0.7.9.2008.01.28 | |
4 | PKGNAME= ${RUBY_PKGPREFIX}-postgresql-${VERSION} | 4 | PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/} | |
5 | PKGREVISION= 8 | 5 | CATEGORIES= databases | |
6 | CATEGORIES= databases ruby | |||
7 | MASTER_SITES= http://raa.ruby-lang.org/cache/postgres/ \ | |||
8 | http://ruby.scripting.ca/postgres/archive/ | |||
9 | 6 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://ruby.scripting.ca/postgres/ | 8 | HOMEPAGE= http://ruby.scripting.ca/postgres/ | |
12 | COMMENT= Ruby extension for postgresql | 9 | COMMENT= Ruby extension for PostgreSQL | |
13 | 10 | |||
14 | RUBY_HAS_ARCHLIB= yes | 11 | GEM_BUILD= gemspec | |
15 | USE_RUBY_EXTCONF= yes | 12 | CONFIGURE_ARGS= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \ | |
16 | VERSION= 0.7.1 | 13 | --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib | |
17 | INSTALL_TARGET= site-install | |||
18 | CONFIGURE_ARGS+= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \ | |||
19 | --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib | |||
20 | 14 | |||
21 | DOC= README README.ja doc/postgres.html doc/postgres.ja.html | 15 | .include "../../misc/rubygems/rubygem.mk" | |
22 | EXAMPLE_LIBS= losample.rb psqlHelp.rb | |||
23 | EXAMPLE_SCRIPTS= psql.rb test1.rb test2.rb test4.rb | |||
24 | REPLACE_RUBY= sample/psql.rb sample/test1.rb sample/test2.rb \ | |||
25 | sample/test4.rb | |||
26 | 16 | |||
27 | pre-install: | |||
28 | @cd ${WRKSRC}; \ | |||
29 | ${CP} -p doc/postgres.jp.html doc/postgres.ja.html | |||
30 | ||||
31 | post-install: | |||
32 | ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/postgresql | |||
33 | .for f in ${DOC} | |||
34 | ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgresql | |||
35 | .endfor | |||
36 | ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/postgresql | |||
37 | .for f in ${EXAMPLE_LIBS} | |||
38 | ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/postgresql | |||
39 | .endfor | |||
40 | .for f in ${EXAMPLE_SCRIPTS} | |||
41 | ${INSTALL_SCRIPT} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/postgresql | |||
42 | .endfor | |||
43 | ||||
44 | .include "../../lang/ruby/modules.mk" | |||
45 | .include "../../mk/pgsql.buildlink3.mk" | 17 | .include "../../mk/pgsql.buildlink3.mk" | |
46 | .include "../../mk/bsd.pkg.mk" | 18 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2004/12/04 17:20:46 taca Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2008/04/04 15:16:02 jlam Exp $ | |
2 | ${RUBY_SITEARCHLIBDIR}/postgres.${RUBY_DLEXT} | 2 | ${GEM_HOME}/cache/postgres-${PKGVERSION}.gem | |
3 | ${RUBY_DOCDIR}/postgresql/README | 3 | ${GEM_LIBDIR}/COPYING | |
4 | ${RUBY_DOCDIR}/postgresql/README.ja | 4 | ${GEM_LIBDIR}/COPYING.txt | |
5 | ${RUBY_DOCDIR}/postgresql/postgres.html | 5 | ${GEM_LIBDIR}/Contributors | |
6 | ${RUBY_DOCDIR}/postgresql/postgres.ja.html | 6 | ${GEM_LIBDIR}/GPL | |
7 | ${RUBY_EXAMPLESDIR}/postgresql/losample.rb | 7 | ${GEM_LIBDIR}/LICENSE | |
8 | ${RUBY_EXAMPLESDIR}/postgresql/psql.rb | 8 | ${GEM_LIBDIR}/README | |
9 | ${RUBY_EXAMPLESDIR}/postgresql/psqlHelp.rb | 9 | ${GEM_LIBDIR}/ext/extconf.rb | |
10 | ${RUBY_EXAMPLESDIR}/postgresql/test1.rb | 10 | ${GEM_LIBDIR}/ext/libpq-compat.c | |
11 | ${RUBY_EXAMPLESDIR}/postgresql/test2.rb | 11 | ${GEM_LIBDIR}/ext/postgres.c | |
12 | ${RUBY_EXAMPLESDIR}/postgresql/test4.rb | 12 | ${GEM_LIBDIR}/ext/type-oids.h | |
13 | @dirrm ${RUBY_DOCDIR}/postgresql | 13 | ${GEM_LIBDIR}/lib/postgres.${RUBY_DLEXT} | |
14 | @dirrm ${RUBY_EXAMPLESDIR}/postgresql | 14 | ${GEM_HOME}/specifications/postgres-${PKGVERSION}.gemspec | |
15 | @dirrm ${GEM_LIBDIR}/lib | |||
16 | @dirrm ${GEM_LIBDIR}/ext | |||
17 | @dirrm ${GEM_LIBDIR} |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2006/01/03 14:25:49 taca Exp $ | 1 | $NetBSD: distinfo,v 1.7 2008/04/04 15:16:02 jlam Exp $ | |
2 | 2 | |||
3 | SHA1 (ruby-postgres-0.7.1.tar.gz) = ba3b872511b525f6b5979031ee62bfa265697e9a | 3 | SHA1 (postgres-0.7.9.2008.01.28.gem) = 229ca3c503cda8a0977cd6e6d41896da7b8d5ecc | |
4 | RMD160 (ruby-postgres-0.7.1.tar.gz) = 9ec82ec6755f1ccd38582faeba239474fcb53ec9 | 4 | RMD160 (postgres-0.7.9.2008.01.28.gem) = 2473b4225802a49fd56a5adac702dc89d6cd19ba | |
5 | Size (ruby-postgres-0.7.1.tar.gz) = 29256 bytes | 5 | Size (postgres-0.7.9.2008.01.28.gem) = 32768 bytes |