Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 04:48:14 +0100 (CET)
From:      Palle Girgensohn <girgen@partitur.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34861: Update of databases/p5-Pg to sync with postgresql-7.2
Message-ID:  <200202120348.g1C3mE666490@palle.girgensohn.se>

next in thread | raw e-mail | index | archive | help

>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 <girgen@partitur.se>
>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 <bsd.port.mk>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202120348.g1C3mE666490>