Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 10:25:46 +0000 (UTC)
From:      Ruslan Mahmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305964 - in head/devel/py-pyro: . files
Message-ID:  <201210161025.q9GAPkoP018811@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Tue Oct 16 10:25:45 2012
New Revision: 305964
URL: http://svn.freebsd.org/changeset/ports/305964

Log:
  - update to 4.15
  - trim Makefile header
  - fix packing list with python > 3.2
  - convert to optionsng
  - tab -> space change in pkg-descr:WWW
  
  Feature safe:	yes

Added:
  head/devel/py-pyro/files/
  head/devel/py-pyro/files/py3k-fix-pkg-plist.inc   (contents, props changed)
Modified:
  head/devel/py-pyro/Makefile
  head/devel/py-pyro/distinfo
  head/devel/py-pyro/pkg-descr

Modified: head/devel/py-pyro/Makefile
==============================================================================
--- head/devel/py-pyro/Makefile	Tue Oct 16 10:05:39 2012	(r305963)
+++ head/devel/py-pyro/Makefile	Tue Oct 16 10:25:45 2012	(r305964)
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	py-pyro
-# Date created:		2008-12-30
-# Whom:			Wen Heping <wenheping@gmail.com>
-#
+# Created by: Wen Heping <wenheping@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	pyro
-PORTVERSION=	4.14
+PORTVERSION=	4.15
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -24,13 +20,18 @@ USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	Pyro4
 
 .include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 320
+.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
+.endif
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
 .endif
 
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
 .endif

Modified: head/devel/py-pyro/distinfo
==============================================================================
--- head/devel/py-pyro/distinfo	Tue Oct 16 10:05:39 2012	(r305963)
+++ head/devel/py-pyro/distinfo	Tue Oct 16 10:25:45 2012	(r305964)
@@ -1,2 +1,2 @@
-SHA256 (Pyro4-4.14.tar.gz) = 90c4f84ae9932d66825c61af9cd67b0b2877b477c967812a5d6953d67f3b003d
-SIZE (Pyro4-4.14.tar.gz) = 269055
+SHA256 (Pyro4-4.15.tar.gz) = 7b9dc43d6be79e4e542b8520715cb3ab7f9095afccc93bce9cacc271c665bf7d
+SIZE (Pyro4-4.15.tar.gz) = 272102

Added: head/devel/py-pyro/files/py3k-fix-pkg-plist.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pyro/files/py3k-fix-pkg-plist.inc	Tue Oct 16 10:25:45 2012	(r305964)
@@ -0,0 +1,14 @@
+# When Python version is 3.2+ we rewrite all the filenames
+# of TMPPLIST that end with .py[co], so that they conform
+# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/)
+PYMAGICTAG=	${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
+add-plist-post:
+	@${AWK} '\
+		/\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/,  "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
+		/^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
+		{print} \
+		END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
+		' \
+		pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
+		${TMPPLIST} > ${TMPPLIST}.pyc_tmp
+	@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}

Modified: head/devel/py-pyro/pkg-descr
==============================================================================
--- head/devel/py-pyro/pkg-descr	Tue Oct 16 10:05:39 2012	(r305963)
+++ head/devel/py-pyro/pkg-descr	Tue Oct 16 10:25:45 2012	(r305964)
@@ -15,4 +15,4 @@ similar to CORBA - which is a system- an
 Distributed Object Technology and has much more to offer than Pyro or
 RMI. But Pyro is small, simple and free!
 
-WWW:	http://packages.python.org/Pyro4/
+WWW: http://packages.python.org/Pyro4/



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