From nobody@FreeBSD.org  Tue Jun 26 15:15:30 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 964D216A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jun 2007 15:15:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 7726D13C4C6
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jun 2007 15:15:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5QFFUDX006318
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jun 2007 15:15:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5QFFUIQ006317;
	Tue, 26 Jun 2007 15:15:30 GMT
	(envelope-from nobody)
Message-Id: <200706261515.l5QFFUIQ006317@www.freebsd.org>
Date: Tue, 26 Jun 2007 15:15:30 GMT
From: Roderick van Domburg <r.s.a.vandomburg@nedforce.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [UPDATE] Update databases/ruby-postgres to 0.7.1.2006.04.06
X-Send-Pr-Version: www-3.0

>Number:         114048
>Category:       ports
>Synopsis:       [UPDATE] Update databases/ruby-postgres to 0.7.1.2006.04.06
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 26 15:20:05 GMT 2007
>Closed-Date:    Fri Aug 03 07:25:06 GMT 2007
>Last-Modified:  Mon Apr  7 12:10:01 UTC 2008
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jun 26 15:20:18 UTC 2007 
Responsible-Changed-Why:  
clsung@ wants to have ruby- PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114048 
State-Changed-From-To: open->repocopy 
State-Changed-By: clsung 
State-Changed-When: Wed Jul 25 06:43:10 UTC 2007 
State-Changed-Why:  
New version comes with rubygem, please repocopy 
databases/ruby-postgres to databases/rubygem-postgres. 



Responsible-Changed-From-To: clsung->portmgr 
Responsible-Changed-By: clsung 
Responsible-Changed-When: Wed Jul 25 06:43:10 UTC 2007 
Responsible-Changed-Why:  
New version comes with rubygem, please repocopy 
databases/ruby-postgres to databases/rubygem-postgres. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=114048 
State-Changed-From-To: repocopy->open 
State-Changed-By: marcus 
State-Changed-When: Sat Jul 28 05:30:22 UTC 2007 
State-Changed-Why:  
Repocopy complete. 


Responsible-Changed-From-To: portmgr->clsung 
Responsible-Changed-By: marcus 
Responsible-Changed-When: Sat Jul 28 05:30:22 UTC 2007 
Responsible-Changed-Why:  
Repocopy complete. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114048 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Wed,  1 Aug 2007 00:46:02 +0000 (UTC)

 clsung      2007-08-01 00:45:57 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/rubygem-postgres Makefile distinfo pkg-descr 
                                pkg-plist 
   Log:
   - Force commit to note repo copy from databases/ruby-postgres
   
   PR:             ports/114048
   
   Revision  Changes    Path
   1.32      +0 -0      ports/databases/rubygem-postgres/Makefile
   1.12      +0 -0      ports/databases/rubygem-postgres/distinfo
   1.10      +0 -0      ports/databases/rubygem-postgres/pkg-descr
   1.7       +0 -0      ports/databases/rubygem-postgres/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Fri,  3 Aug 2007 07:18:28 +0000 (UTC)

 clsung      2007-08-03 07:18:22 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/rubygem-postgres Makefile distinfo pkg-plist 
   Log:
   - 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.
   
   PR:             ports/114048
   Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
   
   Revision  Changes    Path
   1.33      +12 -30    ports/databases/rubygem-postgres/Makefile
   1.13      +3 -3      ports/databases/rubygem-postgres/distinfo
   1.8       +183 -15   ports/databases/rubygem-postgres/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: clsung 
State-Changed-When: Fri Aug 3 07:25:01 UTC 2007 
State-Changed-Why:  
Committed. Thank You. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114048 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Fri,  3 Aug 2007 07:21:51 +0000 (UTC)

 clsung      2007-08-03 07:21:46 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases            Makefile 
   Removed files:
     databases/ruby-postgres Makefile distinfo pkg-descr pkg-plist 
   Log:
   - databases/ruby-postgres -> databases/rubygem-postgres
   
   PR:             ports/114048
   Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
   
   Revision  Changes    Path
   1.629     +1 -1      ports/databases/Makefile
   1.32      +0 -43     ports/databases/ruby-postgres/Makefile (dead)
   1.12      +0 -3      ports/databases/ruby-postgres/distinfo (dead)
   1.10      +0 -7      ports/databases/ruby-postgres/pkg-descr (dead)
   1.7       +0 -15     ports/databases/ruby-postgres/pkg-plist (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Fri,  3 Aug 2007 07:23:20 +0000 (UTC)

 clsung      2007-08-03 07:23:13 UTC
 
   FreeBSD ports repository
 
   Modified files:
     .                    modules 
   Log:
   - databases/ruby-postgres -> databases/rubygem-postgres
   
   PR:             ports/114048
   Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
   
   Revision  Changes    Path
   1.18471   +1 -1      CVSROOT/modules
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Fri,  3 Aug 2007 07:24:52 +0000 (UTC)

 clsung      2007-08-03 07:24:48 UTC
 
   FreeBSD ports repository
 
   Modified files:
     .                    MOVED 
   Log:
   - address the move of databases/ruby-postgres to databases/rubygem-postgres
   
   PR:             ports/114048
   Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
   
   Revision  Changes    Path
   1.1442    +2 -1      ports/MOVED
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Pascal Hofstee <pascal.hofstee@quaerenovum.com>
To: bug-followup@FreeBSD.org, r.s.a.vandomburg@nedforce.nl
Cc:  
Subject: Re: ports/114048: [UPDATE] Update databases/ruby-postgres to
	0.7.1.2006.04.06
Date: Wed, 08 Aug 2007 11:04:42 +0200

 This changing from ruby-postgres to use the rubygem mechanism seems to
 have broken ruby-dbi as it now no longer is able to load the ruby
 postgres module.
 
 The code below used to work flawlessly
 
 
 require 'dbi'
 
 dbh = DBI.connect("DBI:Pg:dbname:dbhost", "dbuser", "dbpasswd")
 
 
 However since the switch to the rubygem mechanism it now generates this
 error message:
 
 /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:344:in `load_driver': Could not
 load driver (no such file to load -- postgres) (DBI::InterfaceError)
         from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:227:in
 `_get_full_driver'
         from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:213:in `connect'
         from ./DataImport.rb:13
 
 -- 
 Pascal Hofstee <pascal.hofstee@quaerenovum.com>
 Quaere Novum Enterprises
 

From: Pascal Hofstee <pascal.hofstee@quaerenovum.com>
To: Roderick van Domburg <r.s.a.vandomburg@nedforce.nl>
Cc: bug-followup@FreeBSD.org
Subject: RE: ports/114048: [UPDATE] Update databases/ruby-postgres
	to0.7.1.2006.04.06
Date: Wed, 08 Aug 2007 11:54:01 +0200

 On Wed, 2007-08-08 at 11:12 +0200, Roderick van Domburg wrote:
 > Hi Pascal,
 > 
 > Does the following work for you?
 > 
 > require 'rubygems'
 > ..rest of code..
 > 
 > That should configure the path to the postgres driver. Alternatively you
 > can set RUBYOPT to -rubygems and Ruby should load the gems
 > automatically.
 > 
 > Let me know what happens.
 
 Looks like simply adding the rubygems require entry does the trick ...
 
 -- 
 Pascal Hofstee <pascal.hofstee@quaerenovum.com>
 Quaere Novum Enterprises
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114048: commit references a PR
Date: Mon,  7 Apr 2008 12:06:08 +0000 (UTC)

 dinoex      2008-04-07 12:06:01 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/ruby-postgres Makefile 
   Log:
   - a fix for ruby-dbd_pg is now possible
   PR:             114048
   
   Revision  Changes    Path
   1.34      +1 -1      ports/databases/ruby-postgres/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
