Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2018 03:36:35 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r470257 - branches/2018Q2/databases/py-pyPgSQL
Message-ID:  <201805180336.w4I3aZLG065092@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Fri May 18 03:36:35 2018
New Revision: 470257
URL: https://svnweb.freebsd.org/changeset/ports/470257

Log:
  MFH: r469614 databases/py-pyPgSQL: Unmark BROKEN, Update MAINTAINER
  
  This port was marked BROKEN/DEPRECATED due to a corrupt patch file. Update the
  patch source to fix the issue.  Update MAINTAINER at submitters request.
  
  While here, level up ports / python port compliance:
  
  - Strip shared libraries
  - Use option helpers
  - Use python autoplist
  - Match upstream setup.py metadata (COMMENT)
  - Use explicit/canonical python package dependencies
  - Unmute INSTALL_* commands
  
  PR:		228119
  Submitted by:	Chris Hutchinson <portmaster bsdforge com>
  Approved by:	koobs (python, maintainer)
  
  Approved by:	ports-secteam (riggs)

Modified:
  branches/2018Q2/databases/py-pyPgSQL/Makefile
  branches/2018Q2/databases/py-pyPgSQL/distinfo
  branches/2018Q2/databases/py-pyPgSQL/pkg-plist
Directory Properties:
  branches/2018Q2/   (props changed)

Modified: branches/2018Q2/databases/py-pyPgSQL/Makefile
==============================================================================
--- branches/2018Q2/databases/py-pyPgSQL/Makefile	Fri May 18 01:39:41 2018	(r470256)
+++ branches/2018Q2/databases/py-pyPgSQL/Makefile	Fri May 18 03:36:35 2018	(r470257)
@@ -3,48 +3,45 @@
 
 PORTNAME=	pyPgSQL
 PORTVERSION=	2.5.1
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	databases python
 MASTER_SITES=	SF
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	python@FreeBSD.org
-COMMENT=	Python DB-API 2 compliant library for using PostgreSQL databases
+MAINTAINER=	portmaster@BSDforge.com
+COMMENT=	Python DB-API 2.0 compliant interface to PostgreSQL
 
-BROKEN=		Invalid checksum
+LICENSE=	BSD2CLAUSE
 
-RUN_DEPENDS=	${DATETIME_DEP}:lang/py-mx-base
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mx-base>0:lang/py-mx-base
 
-USES=	pgsql python:2.7
-USE_PYTHON=	distutils
+USES=		pgsql python:2.7
+USE_PYTHON=	distutils autoplist
 
 DOCS=		Announce ChangeLog README README.html
 EXAMPLES=	examples/*.py
 
-DATETIME_DEP=	${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
-
-OPTIONS_DEFINE=	BYTEA_CONN EXAMPLES DOCS
+OPTIONS_DEFINE=		BYTEA_CONN EXAMPLES DOCS
 OPTIONS_DEFAULT=	BYTEA_CONN
+
 BYTEA_CONN_DESC=	Apply Bytea connection patch
+BYTEA_CONN_VARS=	PATCH_SITES=	https://sourceforge.net/p/pypgsql/patches/_discuss/thread/c9fcb468/43b1/attachment/ \
+			PATCHFILES=	patch-byteaconn
 
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MBYTEA_CONN}
-PATCH_SITES=	http://sourceforge.net/tracker/download.php?group_id=16528&atid=316528&file_id=273956&aid=1939119/
-PATCHFILES=	pyPgSQL-patch_byteaconn
-.endif
-
 DOCSDIR=	${PREFIX}/share/doc/py-pyPgSQL
 EXAMPLESDIR=	${PREFIX}/share/examples/py-pyPgSQL
 
 post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyPgSQL/libpq/libpqmodule.so
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${DOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 .for f in ${EXAMPLES}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 
 .include <bsd.port.mk>

Modified: branches/2018Q2/databases/py-pyPgSQL/distinfo
==============================================================================
--- branches/2018Q2/databases/py-pyPgSQL/distinfo	Fri May 18 01:39:41 2018	(r470256)
+++ branches/2018Q2/databases/py-pyPgSQL/distinfo	Fri May 18 03:36:35 2018	(r470257)
@@ -1,4 +1,3 @@
+TIMESTAMP = 1526023581
 SHA256 (pyPgSQL-2.5.1.tar.gz) = 498486f066f11a68f5b02a54ba5a008d01d507038c873bfd901c14d3f5ca18af
 SIZE (pyPgSQL-2.5.1.tar.gz) = 152840
-SHA256 (pyPgSQL-patch_byteaconn) = 73a324808aef49382e736245023eb8c468e1ca0803052a2a45162465b0ad28d7
-SIZE (pyPgSQL-patch_byteaconn) = 4718

Modified: branches/2018Q2/databases/py-pyPgSQL/pkg-plist
==============================================================================
--- branches/2018Q2/databases/py-pyPgSQL/pkg-plist	Fri May 18 01:39:41 2018	(r470256)
+++ branches/2018Q2/databases/py-pyPgSQL/pkg-plist	Fri May 18 03:36:35 2018	(r470257)
@@ -1,13 +1,3 @@
-%%PYTHON_SITELIBDIR%%/pyPgSQL/__init__.py
-%%PYTHON_SITELIBDIR%%/pyPgSQL/__init__.pyc
-%%PYTHON_SITELIBDIR%%/pyPgSQL/__init__.pyo
-%%PYTHON_SITELIBDIR%%/pyPgSQL/PgSQL.py
-%%PYTHON_SITELIBDIR%%/pyPgSQL/PgSQL.pyc
-%%PYTHON_SITELIBDIR%%/pyPgSQL/PgSQL.pyo
-%%PYTHON_SITELIBDIR%%/pyPgSQL/libpq/__init__.py
-%%PYTHON_SITELIBDIR%%/pyPgSQL/libpq/__init__.pyc
-%%PYTHON_SITELIBDIR%%/pyPgSQL/libpq/__init__.pyo
-%%PYTHON_SITELIBDIR%%/pyPgSQL/libpq/libpqmodule.so
 %%PORTDOCS%%%%DOCSDIR%%/Announce
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/README



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