From owner-svn-ports-all@freebsd.org Sat Nov 28 10:34:33 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03910A3A497; Sat, 28 Nov 2015 10:34:33 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C92217FC; Sat, 28 Nov 2015 10:34:32 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tASAYVIE013632; Sat, 28 Nov 2015 10:34:31 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tASAYVPZ013630; Sat, 28 Nov 2015 10:34:31 GMT (envelope-from novel@FreeBSD.org) Message-Id: <201511281034.tASAYVPZ013630@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Sat, 28 Nov 2015 10:34:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r402527 - head/devel/spice-protocol X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2015 10:34:33 -0000 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 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