From yasuf@big.or.jp Thu Jun 10 22:28:58 1999
Return-Path: <yasuf@big.or.jp>
Received: from smtp.teleway.ne.jp (smtp.teleway.ne.jp [203.140.129.13])
	by hub.freebsd.org (Postfix) with ESMTP id 4F40A14D94
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Jun 1999 22:28:56 -0700 (PDT)
	(envelope-from yasuf@big.or.jp)
Received: from post1a.po.teleway.ne.jp (post1a.teleway.ne.jp [203.140.129.22])
	by smtp.teleway.ne.jp (8.9.3+3.2W/3.7W) with ESMTP id OAA24069
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jun 1999 14:28:55 +0900 (JST)
	(envelope-from yasuf@big.or.jp)
Received: from localhost ([210.234.51.90]) by post1a.po.teleway.ne.jp
          (Post.Office MTA v3.0 release "turbo_2"
          ID# 110-55583U50000L50000S0V35) with ESMTP id AAA9253
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 11 Jun 1999 14:28:54 +0900
Message-Id: <19990611142851S.yasuf@big.or.jp>
Date: Fri, 11 Jun 1999 14:28:51 +0900
From: yasuf@big.or.jp
Reply-To: yasuf@big.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: databases/ruby-postgres
X-Send-Pr-Version: 3.2

>Number:         12123
>Category:       ports
>Synopsis:       New port: databases/ruby-postgres
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 10 22:30:01 PDT 1999
>Closed-Date:    Mon Sep 6 07:02:35 PDT 1999
>Last-Modified:  Mon Sep  6 07:02:55 PDT 1999
>Originator:     Yasuhiro Fukuma
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

I'd like to add the following new port to the collection.

  Package name:		ruby-postgres-0.4.1
  Primary category:	databases
  Package description:
	This is an extention module to access PostgreSQL database from Ruby.

>How-To-Repeat:

	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ruby-postgres
#	ruby-postgres/pkg
#	ruby-postgres/pkg/COMMENT
#	ruby-postgres/pkg/DESCR
#	ruby-postgres/pkg/PLIST
#	ruby-postgres/files
#	ruby-postgres/files/md5
#	ruby-postgres/patches
#	ruby-postgres/patches/patch-aa
#	ruby-postgres/Makefile
#
echo c - ruby-postgres
mkdir -p ruby-postgres > /dev/null 2>&1
echo c - ruby-postgres/pkg
mkdir -p ruby-postgres/pkg > /dev/null 2>&1
echo x - ruby-postgres/pkg/COMMENT
sed 's/^X//' >ruby-postgres/pkg/COMMENT << 'END-of-ruby-postgres/pkg/COMMENT'
Xa Ruby interface to PostgreSQL library.
END-of-ruby-postgres/pkg/COMMENT
echo x - ruby-postgres/pkg/DESCR
sed 's/^X//' >ruby-postgres/pkg/DESCR << 'END-of-ruby-postgres/pkg/DESCR'
XThis is an extention module to access PostgreSQL database from Ruby.
X
X- Yasuhiro Fukuma
Xyasuf@big.or.jp
END-of-ruby-postgres/pkg/DESCR
echo x - ruby-postgres/pkg/PLIST
sed 's/^X//' >ruby-postgres/pkg/PLIST << 'END-of-ruby-postgres/pkg/PLIST'
Xlib/ruby/%%RUBY_ARCH%%/postgres.so
Xshare/doc/ruby/postgres/postgres.html
X@dirrm share/doc/ruby/postgres
X@unexec /bin/rmdir %D/share/doc/ruby >/dev/null 2>&1 || true
END-of-ruby-postgres/pkg/PLIST
echo c - ruby-postgres/files
mkdir -p ruby-postgres/files > /dev/null 2>&1
echo x - ruby-postgres/files/md5
sed 's/^X//' >ruby-postgres/files/md5 << 'END-of-ruby-postgres/files/md5'
XMD5 (postgres-0.4.1.tar.gz) = c5c50269b9bfb49043fd8a7bcd266c9e
END-of-ruby-postgres/files/md5
echo c - ruby-postgres/patches
mkdir -p ruby-postgres/patches > /dev/null 2>&1
echo x - ruby-postgres/patches/patch-aa
sed 's/^X//' >ruby-postgres/patches/patch-aa << 'END-of-ruby-postgres/patches/patch-aa'
X--- extconf.rb.orig	Wed Jan 20 17:09:18 1999
X+++ extconf.rb	Mon Apr 19 22:31:02 1999
X@@ -1,3 +1,6 @@
X+require 'mkmf'
X+$CFLAGS ||= ''
X+
X have_library("wsock32", "cygwin32_socket") or have_library("socket", "socket")
X have_library("inet", "gethostbyname")
X have_library("nsl", "gethostbyname")
END-of-ruby-postgres/patches/patch-aa
echo x - ruby-postgres/Makefile
sed 's/^X//' >ruby-postgres/Makefile << 'END-of-ruby-postgres/Makefile'
X# New ports collection makefile for:    ruby-postgres
X# Version required:     0.4.1
X# Date created:         19 April 1999
X# Whom:                 Yasuhiro Fukuma <yasuf@big.or.jp>
X#
X# $Id$
X#
X
XDISTNAME=	postgres-0.4.1
XPKGNAME=	ruby-postgres-0.4.1
XCATEGORIES=	databases
XMASTER_SITES=	ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
X		ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
X		ftp://ftp.iij.ad.jp/pub/lang/ruby/contrib/ \
X		ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/contrib/ \
X		ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
X		ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
X
XMAINTAINER=	yasuf@big.or.jp
X
XBUILD_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XRUN_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XLIB_DEPENDS=	pq.2:${PORTSDIR}/databases/postgresql
X
XWRKSRC=		${WRKDIR}/postgres
XCONFIGURE_ENV+=	PGLIB="${PGLIB}"
XPLIST_SUB+=	RUBY_ARCH="${RUBY_ARCH}"
X
XRUBY_ARCH=	${ARCH}-freebsd${OSREL}
X
XRUBY=		${PREFIX}/bin/ruby
XPGLIB=		${PREFIX}/pgsql/lib
X
Xdo-configure:
X	@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/ruby/postgres
X	${INSTALL_DATA} ${WRKSRC}/postgres.html ${PREFIX}/share/doc/ruby/postgres
X.endif
X
X.include <bsd.port.mk>
END-of-ruby-postgres/Makefile
exit

>Release-Note:
>Audit-Trail:

From: Yasuhiro Fukuma <yasuf@big.or.jp>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/12123: New port: databases/ruby-postgres
Date: Sun, 22 Aug 1999 07:25:21 +0900

 Here is a patch:
 
   - to update to postgres-0.5.3.
   - to cope with Ruby 1.4.
 
 Removed file:	patches/patch-aa
 
 diff -ruN ruby-postgres-19990420/Makefile ruby-postgres/Makefile
 --- ruby-postgres-19990420/Makefile	Mon Apr 19 22:49:32 1999
 +++ ruby-postgres/Makefile	Sat Aug 14 07:08:59 1999
 @@ -1,13 +1,13 @@
  # New ports collection makefile for:    ruby-postgres
 -# Version required:     0.4.1
 +# Version required:     0.5.3
  # Date created:         19 April 1999
  # Whom:                 Yasuhiro Fukuma <yasuf@big.or.jp>
  #
  # $Id$
  #
  
 -DISTNAME=	postgres-0.4.1
 -PKGNAME=	ruby-postgres-0.4.1
 +DISTNAME=	postgres-0.5.3
 +PKGNAME=	ruby-postgres-0.5.3
  CATEGORIES=	databases
  MASTER_SITES=	ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
  		ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
 @@ -23,21 +23,25 @@
  LIB_DEPENDS=	pq.2:${PORTSDIR}/databases/postgresql
  
  WRKSRC=		${WRKDIR}/postgres
 -CONFIGURE_ENV+=	PGLIB="${PGLIB}"
 -PLIST_SUB+=	RUBY_ARCH="${RUBY_ARCH}"
 +CONFIGURE_ARGS+= --with-pgsql-include-dir="${PGDIR}/include" \
 +		--with-pgsql-lib-dir="${PGDIR}/lib"
 +PLIST_SUB+=	RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
  
 +RUBY=		${PREFIX}/bin/ruby
 +RUBY_VER=	1.4
  RUBY_ARCH=	${ARCH}-freebsd${OSREL}
  
 -RUBY=		${PREFIX}/bin/ruby
 -PGLIB=		${PREFIX}/pgsql/lib
 +PGDIR?=		${PREFIX}/pgsql
  
  do-configure:
 -	@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
 +	@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
  
  post-install:
 +	${MKDIR} ${PREFIX}/share/examples/ruby/postgres
 +	${INSTALL_DATA} ${WRKSRC}/psql*.rb ${PREFIX}/share/examples/ruby/postgres
  .if !defined(NOPORTDOCS)
  	${MKDIR} ${PREFIX}/share/doc/ruby/postgres
 -	${INSTALL_DATA} ${WRKSRC}/postgres.html ${PREFIX}/share/doc/ruby/postgres
 +	${INSTALL_DATA} ${WRKSRC}/README* ${WRKSRC}/*.html ${PREFIX}/share/doc/ruby/postgres
  .endif
  
  .include <bsd.port.mk>
 diff -ruN ruby-postgres-19990420/files/md5 ruby-postgres/files/md5
 --- ruby-postgres-19990420/files/md5	Mon Apr 19 22:24:28 1999
 +++ ruby-postgres/files/md5	Sat Aug 14 05:51:34 1999
 @@ -1 +1 @@
 -MD5 (postgres-0.4.1.tar.gz) = c5c50269b9bfb49043fd8a7bcd266c9e
 +MD5 (postgres-0.5.3.tar.gz) = f34965e627807b9e9ac78e322e3d21f2
 diff -ruN ruby-postgres-19990420/patches/patch-aa ruby-postgres/patches/patch-aa
 --- ruby-postgres-19990420/patches/patch-aa	Mon Apr 19 22:31:18 1999
 +++ ruby-postgres/patches/patch-aa	Thu Jan  1 09:00:00 1970
 @@ -1,9 +0,0 @@
 ---- extconf.rb.orig	Wed Jan 20 17:09:18 1999
 -+++ extconf.rb	Mon Apr 19 22:31:02 1999
 -@@ -1,3 +1,6 @@
 -+require 'mkmf'
 -+$CFLAGS ||= ''
 -+
 - have_library("wsock32", "cygwin32_socket") or have_library("socket", "socket")
 - have_library("inet", "gethostbyname")
 - have_library("nsl", "gethostbyname")
 diff -ruN ruby-postgres-19990420/pkg/PLIST ruby-postgres/pkg/PLIST
 --- ruby-postgres-19990420/pkg/PLIST	Mon Apr 19 22:59:36 1999
 +++ ruby-postgres/pkg/PLIST	Sat Aug 14 07:07:57 1999
 @@ -1,4 +1,10 @@
 -lib/ruby/%%RUBY_ARCH%%/postgres.so
 +lib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/postgres.so
 +share/examples/ruby/postgres/psql.rb
 +share/examples/ruby/postgres/psqlHelp.rb
 +@dirrm share/examples/ruby/postgres
 +share/doc/ruby/postgres/README
 +share/doc/ruby/postgres/README.jp
  share/doc/ruby/postgres/postgres.html
 +share/doc/ruby/postgres/postgres.jp.html
  @dirrm share/doc/ruby/postgres
  @unexec /bin/rmdir %D/share/doc/ruby >/dev/null 2>&1 || true
 
State-Changed-From-To: open->closed 
State-Changed-By: taoka 
State-Changed-When: Mon Sep 6 07:02:35 PDT 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
