svn commit: r402527 - head/devel/spice-protocol

Roman Bogorodskiy novel at FreeBSD.org
Sat Nov 28 10:34:33 UTC 2015


Author: novel
Date: Sat Nov 28 10:34:31 2015
New Revision: 402527
URL: https://svnweb.freebsd.org/changeset/ports/402527

Log:
  devel/spice-protocol: fix codegen scripts
  
  Fix two issues with the bundled Python codegen scripts:
  
   - Add runtime dependency on py-six
   - Generate *.pyc files for them so users of these scripts do
     not poison filesystem

Modified:
  head/devel/spice-protocol/Makefile
  head/devel/spice-protocol/pkg-plist

Modified: head/devel/spice-protocol/Makefile
==============================================================================
--- head/devel/spice-protocol/Makefile	Sat Nov 28 09:40:44 2015	(r402526)
+++ head/devel/spice-protocol/Makefile	Sat Nov 28 10:34:31 2015	(r402527)
@@ -3,6 +3,7 @@
 
 PORTNAME=	spice-protocol
 PORTVERSION=	0.12.10
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://www.spice-space.org/download/releases/
 
@@ -11,11 +12,16 @@ COMMENT=	Simple Protocol for Independent
 
 LICENSE=	BSD3CLAUSE
 
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+
 GNU_CONFIGURE=	yes
-USES=	gmake pathfix pkgconfig tar:bzip2
+USES=		gmake pathfix pkgconfig python tar:bzip2
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|(libdir)/spice-protocol|(datadir)/spice-protocol/|' \
 		${WRKSRC}/Makefile.in ${WRKSRC}/python_modules/Makefile.in
 
+post-install:
+	@${PYTHON_CMD} -m compileall -d ${DATADIR} ${STAGEDIR}${DATADIR}
+
 .include <bsd.port.mk>

Modified: head/devel/spice-protocol/pkg-plist
==============================================================================
--- head/devel/spice-protocol/pkg-plist	Sat Nov 28 09:40:44 2015	(r402526)
+++ head/devel/spice-protocol/pkg-plist	Sat Nov 28 10:34:31 2015	(r402527)
@@ -15,12 +15,19 @@ include/spice-1/spice/types.h
 include/spice-1/spice/vd_agent.h
 include/spice-1/spice/vdi_dev.h
 %%DATADIR%%/python_modules/__init__.py
+%%DATADIR%%/python_modules/__init__.pyc
 %%DATADIR%%/python_modules/codegen.py
+%%DATADIR%%/python_modules/codegen.pyc
 %%DATADIR%%/python_modules/demarshal.py
+%%DATADIR%%/python_modules/demarshal.pyc
 %%DATADIR%%/python_modules/marshal.py
+%%DATADIR%%/python_modules/marshal.pyc
 %%DATADIR%%/python_modules/ptypes.py
+%%DATADIR%%/python_modules/ptypes.pyc
 %%DATADIR%%/python_modules/spice_parser.py
+%%DATADIR%%/python_modules/spice_parser.pyc
 %%DATADIR%%/spice.proto
 %%DATADIR%%/spice1.proto
 %%DATADIR%%/spice_codegen.py
+%%DATADIR%%/spice_codegen.pyc
 libdata/pkgconfig/spice-protocol.pc


More information about the svn-ports-all mailing list