ports/114048: [UPDATE] Update databases/ruby-postgres to

Roderick van Domburg r.s.a.vandomburg at nedforce.nl
Tue Jun 26 15:20:09 UTC 2007

>Number:         114048
>Category:       ports
>Synopsis:       [UPDATE] Update databases/ruby-postgres to
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 26 15:20:05 GMT 2007
>Originator:     Roderick van Domburg
>Release:        FreeBSD/i386 6.2
This updates ruby-postgres to the latest version: This offers greatly improved performance and compatibility.

The Makefile has been revamped to use RubyGems instead of a plain tarball. The RubyGem packaging is the preferred method of distribution, and simplifies the Makefile.


Patch attached with submission follows:

diff -ru /usr/ports/databases/ruby-postgres/Makefile ruby-postgres/Makefile
--- /usr/ports/databases/ruby-postgres/Makefile	Thu Feb  8 18:19:21 2007
+++ ruby-postgres/Makefile	Tue Jun 26 17:08:41 2007
@@ -5,39 +5,21 @@
 # $FreeBSD: ports/databases/ruby-postgres/Makefile,v 1.30 2006/07/24 17:14:47 jmelo Exp $
-PORTNAME=	postgres
-CATEGORIES=	databases ruby
-MASTER_SITES=	http://ruby.scripting.ca/postgres/archive/
+PORTNAME=	ruby-postgres
+CATEGORIES=	databases rubygems
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Ruby interface to PostgreSQL library
-USE_RUBY=	yes
-CONFIGURE_ARGS=	--with-pgsql-include-dir="${LOCALBASE}/include"
-INSTALL_TARGET=	site-install
-DOCS_EN=	ChangeLog README doc/postgres.html
-DOCS_JA=	README.ja doc/postgres.jp.html
-.if !defined(NOPORTDOCS)
-.for f in ${DOCS_EN}
-.for f in ${DOCS_JA}
-.include <bsd.port.mk>
+PG_CONFIG=	${LOCALBASE}/bin/pg_config
+CONFIGURE_ARGS=	--with-pgsql-include-dir=`${PG_CONFIG} --includedir` \
+		--with-pgsql-lib-dir=`${PG_CONFIG} --libdir`
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
+.include <bsd.port.post.mk>
diff -ru /usr/ports/databases/ruby-postgres/distinfo ruby-postgres/distinfo
--- /usr/ports/databases/ruby-postgres/distinfo	Thu Feb  8 18:19:21 2007
+++ ruby-postgres/distinfo	Tue Jun 26 17:08:44 2007
@@ -1,3 +1,3 @@
-MD5 (ruby/ruby-postgres-0.7.1.tar.gz) = 8ef67b3f4b089248f0420baeb0e3b3c8
-SHA256 (ruby/ruby-postgres-0.7.1.tar.gz) = 78b875f6632dd89ecaab22c264e4c99f7742c8ca6100b380b01e2f65221b80d1
-SIZE (ruby/ruby-postgres-0.7.1.tar.gz) = 29256
+MD5 (rubygem/ruby-postgres- = 810ccd6684e93c25ed7281d4f96b3839
+SHA256 (rubygem/ruby-postgres- = 13f27bf37fe8c98c8775bc28225025996e0f72afb5fc574cd3fd8d0f6bf1b887
+SIZE (rubygem/ruby-postgres- = 46592


More information about the freebsd-ports-bugs mailing list