Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 02:49:59 +0200 (CEST)
From:      Palle Girgensohn <girgen@pingpong.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/56350: py-PyGreSQL - modify postgresql slave ports build behaviour
Message-ID:  <200309030049.h830nxRe066787@palle.girgensohn.se>
Resent-Message-ID: <200309030050.h830oLBh070269@freefall.freebsd.org>

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

>Number:         56350
>Category:       ports
>Synopsis:       py-PyGreSQL - modify postgresql slave ports build behaviour
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 02 17:50:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@pingpong.net>
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
PING PONG
>Environment:
System: FreeBSD palle.girgensohn.se 4.7-RC FreeBSD 4.7-RC #0: Sun Sep 29 17:21:22 CEST 2002     root@palle.girgensohn.se:/usr/local/obj/usr/src/sys/STORDATAN  i386
	
>Description:
The postgresql slave ports now use .include to get info about version
etc from the master port. This has drawbacks, and the now introduced
scheme, using `...!= make -V ...', is better.

	
>How-To-Repeat:
	
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/py-PyGreSQL/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile	7 Mar 2003 02:35:55 -0000	1.36
+++ Makefile	2 Sep 2003 23:42:11 -0000
@@ -4,21 +4,30 @@
 #
 # $FreeBSD: ports/databases/py-PyGreSQL/Makefile,v 1.36 2003/03/07 02:35:55 ade Exp $
 #
+POSTGRESQL_PORT?=	databases/postgresql7
 
 PORTNAME=	PyGreSQL
+PORTVERSION!=	${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V PORTVERSION
+PORTREVISION=	1
 CATEGORIES=	databases python
+MASTER_SITES=	${MASTER_SITE_PGSQL}
+MASTER_SITE_SUBDIR!=	${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V MASTER_SITE_SUBDIR
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTFILES!=	${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V DISTFILES
+DIST_SUBDIR=	postgresql
+WRKSRC=		${WRKDIR}/postgresql-${PORTVERSION}
 
-POSTGRESQL_SUBPORT=	YES
-.include <${.CURDIR}/../postgresql7/Makefile>
+MAINTAINER=	girgen@pingpong.net
 COMMENT=	A Python interface to PostgreSQL, including a DP-API 2.0 wrapper
 
 BUILD_DEPENDS=	${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
 RUN_DEPENDS=	${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
 LIB_DEPENDS=	pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
 
-POSTGRESQL_PORT?=	databases/postgresql7
+MD5_FILE=	${.CURDIR}/../../${POSTGRESQL_PORT}/distinfo
 
+USE_GMAKE=	YES
+GNU_CONFIGURE=	YES
 USE_PYTHON=	yes
 CONFIGURE_ARGS=	--with-python --prefix=${PREFIX}
 MAKE_ARGS+=	-C src/interfaces/python
>Release-Note:
>Audit-Trail:
>Unformatted:



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