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

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 0.7.1.2006.04.06
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 26 15:20:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Roderick van Domburg
>Release:        FreeBSD/i386 6.2
>Organization:
Nedforce
>Environment:
>Description:
This updates ruby-postgres to the latest version: 0.7.1.2006.04.06. 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.
>How-To-Repeat:

>Fix:


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
-PORTVERSION=	0.7.1
-PORTREVISION=	2
-CATEGORIES=	databases ruby
-MASTER_SITES=	http://ruby.scripting.ca/postgres/archive/
-PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
-DISTNAME=	ruby-${PORTNAME}-${PORTVERSION}
-DIST_SUBDIR=	ruby
+PORTNAME=	ruby-postgres
+PORTVERSION=	0.7.1.2006.04.06
+CATEGORIES=	databases rubygems
+MASTER_SITES=   ${MASTER_SITE_RUBYFORGE}
+MASTER_SITE_SUBDIR=     ${PORTNAME}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Ruby interface to PostgreSQL library
 
 USE_PGSQL=	yes
-USE_RUBY=	yes
-USE_RUBY_EXTCONF=	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
-
-post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${RUBY_MODEXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/
-	${MKDIR} ${RUBY_MODDOCDIR}/ja
-.for f in ${DOCS_EN}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
-.for f in ${DOCS_JA}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
-.endfor
-.endif
-
-.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-0.7.1.2006.04.06.gem) = 810ccd6684e93c25ed7281d4f96b3839
+SHA256 (rubygem/ruby-postgres-0.7.1.2006.04.06.gem) = 13f27bf37fe8c98c8775bc28225025996e0f72afb5fc574cd3fd8d0f6bf1b887
+SIZE (rubygem/ruby-postgres-0.7.1.2006.04.06.gem) = 46592


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list