Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2014 23:32:06 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341308 - head/databases/py-psycopg2
Message-ID:  <201401262332.s0QNW6Vs093548@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Sun Jan 26 23:32:05 2014
New Revision: 341308
URL: http://svnweb.freebsd.org/changeset/ports/341308
QAT: https://qat.redports.org/buildarchive/r341308/

Log:
  - convert to autogenerated packing list to fix python3 packaging
  - simplify DOCS and EXAMPLES installation
  
  PR:		182422
  Reported by:	    Arseny Nasokin <eirnym@gmail.com>
  Approved by:	miwi (maintainer, by email)

Deleted:
  head/databases/py-psycopg2/pkg-plist
Modified:
  head/databases/py-psycopg2/Makefile
  head/databases/py-psycopg2/pkg-descr

Modified: head/databases/py-psycopg2/Makefile
==============================================================================
--- head/databases/py-psycopg2/Makefile	Sun Jan 26 23:31:22 2014	(r341307)
+++ head/databases/py-psycopg2/Makefile	Sun Jan 26 23:32:05 2014	(r341308)
@@ -1,4 +1,4 @@
-# Created by: Martin Wilke 	<miwi@FreeBSD.org>
+# Created by: Martin Wilke <miwi@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	psycopg2
@@ -9,35 +9,28 @@ MASTER_SITES=	http://initd.org/psycopg/t
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	miwi@FreeBSD.org
-COMMENT=	The high performance Python adapter for PostgreSQL
+COMMENT=	High performance Python adapter for PostgreSQL
 
-USE_PGSQL=	yes
-# Python3 ready
-USE_PYTHON=	yes
+USE_PGSQL=		yes
+USE_PYTHON=		yes
 USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/py-psycopg2
 EXAMPLESDIR=	${PREFIX}/share/examples/py-psycopg2
 
-EXAMPLES=	binary.py copy_from.py copy_to.py cursor.py dialtone.py \
+PORTEXAMPLES=	binary.py copy_from.py copy_to.py cursor.py dialtone.py \
 		dict.py dt.py encoding.py fetch.py lastrowid.py lobject.py \
 		mogrify.py myfirstrecipe.py notify.py simple.py somehackers.jpg \
 		threads.py typecast.py tz.py usercast.py whereareyou.jpg
 
-DOCS=		AUTHORS INSTALL README NEWS PKG-INFO
+PORTDOCS=	AUTHORS INSTALL README NEWS PKG-INFO
 
 post-install:
-.if !defined(NOPORTEXAMPLES)
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.for f in ${EXAMPLES}
-	@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
-.endfor
-.endif
-.if !defined(NOPORTDOCS)
+	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
+
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in ${DOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/databases/py-psycopg2/pkg-descr
==============================================================================
--- head/databases/py-psycopg2/pkg-descr	Sun Jan 26 23:31:22 2014	(r341307)
+++ head/databases/py-psycopg2/pkg-descr	Sun Jan 26 23:32:05 2014	(r341308)
@@ -11,4 +11,4 @@ be opened; instead one of the unused con
 makes psycopg very fast in typical client-server applications that create a
 servicing thread every time a client request arrives.
 
-WWW:	http://initd.org/psycopg
+WWW: http://initd.org/psycopg/



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