Update node-pg to 0.7.1, works with node 0.8.0.

Build process changed from waf to gyp, modify gyp binding to work.
This commit is contained in:
jeremy 2012-06-28 17:31:43 +00:00
parent 0376117422
commit 877e92b50c
4 changed files with 49 additions and 18 deletions

View File

@ -1,13 +1,11 @@
# $OpenBSD: Makefile,v 1.6 2012/05/23 15:13:20 jasper Exp $
# $OpenBSD: Makefile,v 1.7 2012/06/28 17:31:43 jeremy Exp $
COMMENT = postgresql client for nodejs
NPM_VERSION = 0.6.10
NPM_VERSION = 0.7.1
NPM_NAME = pg
CATEGORIES = databases
REVISION = 2
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
HOMEPAGE = https://github.com/brianc/node-postgres
@ -29,6 +27,9 @@ LIB_DEPENDS = databases/postgresql
RUN_DEPENDS = devel/node-generic-pool
MODNODE_DEPENDS = generic-pool
pre-configure:
${SUBST_CMD} ${WRKSRC}/binding.gyp
# Must have a database setup running on localhost with
# user=postgres and password=1234
REGRESS_TARGET = test-all

View File

@ -1,5 +1,5 @@
MD5 (pg-0.6.10.tgz) = pa8l44un0/iJB2L6yC13ZA==
RMD160 (pg-0.6.10.tgz) = pLXRvJFmaxivkkT99KK3LDhAcO0=
SHA1 (pg-0.6.10.tgz) = CvdigcPpuS8fcfy1atUTeMthXKg=
SHA256 (pg-0.6.10.tgz) = rDo0R2afDvQwu3MHxHivP/g8qlHfBwE7NIF9n61qHM4=
SIZE (pg-0.6.10.tgz) = 51200
MD5 (pg-0.7.1.tgz) = q1pH/uFVy5xHmzuOF0GlJg==
RMD160 (pg-0.7.1.tgz) = NLac+igoRxGgLOgV7S9RP7c2o3s=
SHA1 (pg-0.7.1.tgz) = 0aOa6pWT0TeIGdMDUkJosS8Ivcg=
SHA256 (pg-0.7.1.tgz) = ZdlGVsl4g/8ks2dGT0f2gdDyimPMJOF5n2WPiRfjDWE=
SIZE (pg-0.7.1.tgz) = 61440

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-binding_gyp,v 1.1 2012/06/28 17:31:43 jeremy Exp $
--- binding.gyp.orig Mon Jun 18 20:44:42 2012
+++ binding.gyp Tue Jun 26 13:47:33 2012
@@ -5,8 +5,8 @@
'sources': [
'src/binding.cc'
],
- 'include_dirs': ['/usr/include/postgresql'],
- 'libraries' : ['-lpq']
+ 'include_dirs': ['${LOCALBASE}/include/postgresql'],
+ 'libraries' : ['-L${LOCALBASE}/lib -lpq']
}
]
}

View File

@ -1,6 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/04/03 18:49:11 jeremy Exp $
@comment $OpenBSD: PLIST,v 1.2 2012/06/28 17:31:43 jeremy Exp $
lib/node_modules/pg/
lib/node_modules/pg/.lock-wscript
lib/node_modules/pg/.npmignore
lib/node_modules/pg/Makefile
lib/node_modules/pg/README.md
@ -8,17 +7,30 @@ lib/node_modules/pg/benchmark/
lib/node_modules/pg/benchmark/js-versus-native-bench.js
lib/node_modules/pg/benchmark/large-datatset-bench.js
lib/node_modules/pg/benchmark/simple-query-bench.js
lib/node_modules/pg/binding.gyp
lib/node_modules/pg/build/
lib/node_modules/pg/build/.wafpickle-7
lib/node_modules/pg/build/Makefile
lib/node_modules/pg/build/Release/
lib/node_modules/pg/build/Release/.deps/
lib/node_modules/pg/build/Release/.deps/Release/
lib/node_modules/pg/build/Release/.deps/Release/binding.node.d
lib/node_modules/pg/build/Release/.deps/Release/obj.target/
lib/node_modules/pg/build/Release/.deps/Release/obj.target/binding/
lib/node_modules/pg/build/Release/.deps/Release/obj.target/binding.node.d
lib/node_modules/pg/build/Release/.deps/Release/obj.target/binding/src/
lib/node_modules/pg/build/Release/.deps/Release/obj.target/binding/src/binding.o.d
@bin lib/node_modules/pg/build/Release/binding.node
lib/node_modules/pg/build/Release/src/
lib/node_modules/pg/build/Release/src/binding_1.o
lib/node_modules/pg/build/c4che/
lib/node_modules/pg/build/c4che/Release.cache.py
lib/node_modules/pg/build/c4che/build.config.py
lib/node_modules/pg/build/config.log
lib/node_modules/pg/build/Release/linker.lock
lib/node_modules/pg/build/Release/obj.target/
lib/node_modules/pg/build/Release/obj.target/binding/
@bin lib/node_modules/pg/build/Release/obj.target/binding.node
lib/node_modules/pg/build/Release/obj.target/binding/src/
lib/node_modules/pg/build/Release/obj.target/binding/src/binding.o
lib/node_modules/pg/build/binding.Makefile
lib/node_modules/pg/build/binding.target.mk
lib/node_modules/pg/build/config.gypi
lib/node_modules/pg/lib/
lib/node_modules/pg/lib/arrayParser.js
lib/node_modules/pg/lib/binaryParsers.js
lib/node_modules/pg/lib/client.js
lib/node_modules/pg/lib/connection.js
@ -54,6 +66,7 @@ lib/node_modules/pg/test/integration/client/configuration-tests.js
lib/node_modules/pg/test/integration/client/drain-tests.js
lib/node_modules/pg/test/integration/client/empty-query-tests.js
lib/node_modules/pg/test/integration/client/error-handling-tests.js
lib/node_modules/pg/test/integration/client/huge-numeric-tests.js
lib/node_modules/pg/test/integration/client/no-data-tests.js
lib/node_modules/pg/test/integration/client/notice-tests.js
lib/node_modules/pg/test/integration/client/prepared-statement-tests.js
@ -78,6 +91,9 @@ lib/node_modules/pg/test/integration/connection/bound-command-tests.js
lib/node_modules/pg/test/integration/connection/notification-tests.js
lib/node_modules/pg/test/integration/connection/query-tests.js
lib/node_modules/pg/test/integration/connection/test-helper.js
lib/node_modules/pg/test/integration/gh-issues/
lib/node_modules/pg/test/integration/gh-issues/130.js
lib/node_modules/pg/test/integration/gh-issues/131.js
lib/node_modules/pg/test/integration/test-helper.js
lib/node_modules/pg/test/native/
lib/node_modules/pg/test/native/callback-api-tests.js