svn commit: r309640 - head/finance/gnucash
Jeremy Messenger
mezz at FreeBSD.org
Sat Dec 29 23:00:39 UTC 2012
Author: mezz
Date: Sat Dec 29 23:00:38 2012
New Revision: 309640
URL: http://svnweb.freebsd.org/changeset/ports/309640
Log:
Fix the generate of .pyc/pyo (Python bytecode), bump the PORTREVISION.
PR: ports/171381
Submitted by: "John W. O'Brien" <john at saltant.com>
Modified:
head/finance/gnucash/Makefile
Modified: head/finance/gnucash/Makefile
==============================================================================
--- head/finance/gnucash/Makefile Sat Dec 29 23:00:17 2012 (r309639)
+++ head/finance/gnucash/Makefile Sat Dec 29 23:00:38 2012 (r309640)
@@ -3,7 +3,7 @@
PORTNAME= gnucash
PORTVERSION= 2.4.11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= finance gnome
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION}
@@ -106,7 +106,7 @@ LIB_DEPENDS+= webkitgtk-1.0:${PORTSDIR}/
USE_GNOME+= gtkhtml3
.endif
-.if${PORT_OPTIONS:MPYTHON}
+.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+=--enable-python-bindings
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
@@ -115,6 +115,12 @@ PLIST_SUB+= PYTHON="@comment "
.endif
post-install:
+.if ${PORT_OPTIONS:MPYTHON}
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
+ ${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/${PORTNAME}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
+ ${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/${PORTNAME}
+.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list