Date: Sat, 28 Mar 2015 21:14:45 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382555 - head/devel/renpy Message-ID: <201503282114.t2SLEjEV063421@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Sat Mar 28 21:14:44 2015 New Revision: 382555 URL: https://svnweb.freebsd.org/changeset/ports/382555 QAT: https://qat.redports.org/buildarchive/r382555/ Log: Install pre-built Ren'Py bytecode Modified: head/devel/renpy/Makefile Modified: head/devel/renpy/Makefile ============================================================================== --- head/devel/renpy/Makefile Sat Mar 28 20:49:32 2015 (r382554) +++ head/devel/renpy/Makefile Sat Mar 28 21:14:44 2015 (r382555) @@ -3,7 +3,7 @@ PORTNAME= renpy PORTVERSION= 6.18.3 DISTVERSIONSUFFIX=-source -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel games MASTER_SITES= http://www.renpy.org/dl/${PORTVERSION}/ \ GENTOO/distfiles @@ -38,6 +38,7 @@ python_CMD= ${PYTHON_CMD} BUILD_WRKSRC= ${WRKSRC}/module INSTALL_WRKSRC= ${BUILD_WRKSRC} MAKE_ENV+= RENPY_DEPS_INSTALL="${LOCALBASE}" +PYDISTUTILS_BUILDPATH=${BUILD_WRKSRC}/build/lib.${OPSYS:tl}-${UNAMER}-${ARCH}-${PYTHON_VER} PORTDATA= launcher renpy renpy.py templates PORTDOCS= * PLIST_FILES= bin/${PORTNAME} @@ -70,6 +71,12 @@ post-patch: post-build: @${PYTHON_CMD} -m compileall -d ${DATADIR} ${WRKSRC} @${PYTHON_CMD} -O -m compileall -d ${DATADIR} ${WRKSRC} +# XXX Replace WRKSRC with DATADIR in bytecode + @(cd ${WRKSRC} && for d in */game templates/*; do \ + ${SETENV} HOME=${WRKDIR} \ + PYTHONPATH="${PYTHONPATH}:${PYDISTUTILS_BUILDPATH}" \ + ${PYTHON_CMD} ${WRKSRC}/renpy.py $$d compile; \ + done) post-install: ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name \*.so \ @@ -78,7 +85,7 @@ post-install: ${STAGEDIR}${PREFIX}/bin/${PORTNAME} (cd ${WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDATA}" ${STAGEDIR}${DATADIR} \ - "! -name *.orig ! -name *.bak") + "! -name *.orig ! -name *.bak ! -name saves") ${CHMOD} +x ${STAGEDIR}${DATADIR}/renpy.py ${CHMOD} -R u+w ${STAGEDIR}${DATADIR}/templates .if ${PORT_OPTIONS:MDOCS}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503282114.t2SLEjEV063421>