From owner-freebsd-ports Mon Feb 11 20:41:28 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 840CD37C834 for ; Mon, 11 Feb 2002 20:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1C4A2X73741; Mon, 11 Feb 2002 20:10:02 -0800 (PST) (envelope-from gnats) Received: from palle.girgensohn.se (c213-89-136-218.cm-upc.chello.se [213.89.136.218]) by hub.freebsd.org (Postfix) with ESMTP id 71F1737BB80 for ; Mon, 11 Feb 2002 19:48:16 -0800 (PST) Received: (from girgen@localhost) by palle.girgensohn.se (8.11.6/8.11.6) id g1C3mE666490; Tue, 12 Feb 2002 04:48:14 +0100 (CET) (envelope-from girgen) Message-Id: <200202120348.g1C3mE666490@palle.girgensohn.se> Date: Tue, 12 Feb 2002 04:48:14 +0100 (CET) From: Palle Girgensohn Reply-To: Palle Girgensohn To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34861: Update of databases/p5-Pg to sync with postgresql-7.2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34861 >Category: ports >Synopsis: Update of databases/p5-Pg to sync with postgresql-7.2 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 11 20:10:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Palle Girgensohn >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: Partitur >Environment: System: FreeBSD palle.girgensohn.se 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #11: Fri Dec 28 17:22:10 CET 2001 root@palle.girgensohn.se:/usr/obj/usr/src/sys/STORDATAN i386 >Description: The p5-Pg port has previously been fetched from CPAN. Unfortunately, that code is apparently no longer beeing maintained, and the fresh code is now to be found in the postgresql distribution. This patch fixes the p5-Pg to work with postgresql-7.2, and since it is now a part of the postgresql-7.2 main distribution, the most logical version scheme is to stick with the distribution version number. Hence, p5-Pg is now version 7.2. Since noone is maintaining the port, I set myself as maintainer; hope that's OK. :) >How-To-Repeat: >Fix: 1. make sure PR 34855 is committed 2. cvs remove distinfo (postgresql7 is used a sort of "master" port) 3. apply this patch Thanks! Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/p5-Pg/Makefile,v retrieving revision 1.30 diff -u -r1.30 Makefile --- Makefile 8 May 2001 11:36:25 -0000 1.30 +++ Makefile 12 Feb 2002 03:41:14 -0000 @@ -6,23 +6,32 @@ # PORTNAME= Pg -PORTVERSION= 1.9.0 -PORTREVISION= 1 +POSTVERSION= 7.2 CATEGORIES= databases perl5 -MASTER_SITES= ${MASTER_SITE_PERL_CPAN} -MASTER_SITE_SUBDIR= Pg PKGNAMEPREFIX= p5- -DISTNAME= pgsql_perl5-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= girgen@partitur.se + +POSTGRESQL_SUBPORT=YES +.include <${.CURDIR}/../postgresql7/Makefile> LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7 -PERL_CONFIGURE= yes -CONFIGURE_ENV= POSTGRES_INCLUDE="${LOCALBASE}/include/pgsql -I${LOCALBASE}/pgsql/include" \ - POSTGRES_LIB="${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib" +USE_PERL5= yes + +CONFIGURE_ARGS= --with-perl MAN3= Pg.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +MAKE_ARGS+= -C src/interfaces/perl5 +MAKEFILE= GNUmakefile + +post-patch: + cd ${WRKSRC}/src/interfaces/perl5 ;\ + cp GNUmakefile GNUmakefile.old ;\ + ${SED} -e 's,\$$\$$abs_libpq_builddir,${LOCALBASE}/lib,; \ + s,Makefile\ libpq-all,Makefile,' \ + < GNUmakefile.old > GNUmakefile .include Index: pkg-comment =================================================================== RCS file: /home/ncvs/ports/databases/p5-Pg/pkg-comment,v retrieving revision 1.2 diff -u -r1.2 pkg-comment --- pkg-comment 26 Jun 1999 17:05:42 -0000 1.2 +++ pkg-comment 11 Feb 2002 22:24:34 -0000 @@ -1 +1 @@ -An interface between perl5 and the database Postgres95 +An interface for using perl5 to access PostgreSQL databases Index: pkg-descr =================================================================== RCS file: /home/ncvs/ports/databases/p5-Pg/pkg-descr,v retrieving revision 1.2 diff -u -r1.2 pkg-descr --- pkg-descr 21 Mar 2000 23:40:35 -0000 1.2 +++ pkg-descr 11 Feb 2002 23:34:08 -0000 @@ -1,11 +1,5 @@ -This is version 1.2.0 of pg95perl5. +This is an API for using Perl5 to access PostgreSQL databases. -Pg95perl5 is an interface between Larry Wall's language perl version 5 and -the database Postgres95. This has been done by using the Perl 5 application -program- ming interface for C extensions which calls the Postgres -programmer's interface LIBQ. +This software is part of the standard PostgreSQL distribution. -Pg95perl5 is based on the pgperl package from Igor Metz and Robert Withrow. -Because the perl interface changed, this interface has been rewritten -following the guidelines from the perlapi manpage. Also the test script -has been adapted to SQL, which has replaced the query language POSTQUEL. +WWW: http://www.postgresql.org/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message