Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2012 12:46:02 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r301002 - head/textproc/py-sphinx
Message-ID:  <201207171246.q6HCk2uC054120@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nivit
Date: Tue Jul 17 12:46:02 2012
New Revision: 301002
URL: http://svn.freebsd.org/changeset/ports/301002

Log:
  - Bump PORTREVISION (changed pkg-plist)
  - Add code to generate the pickle file of sphinx/pycode/Grammar.txt,
    otherwise it can be generated indirectly by another port, which uses
    the command sphinx-build (analyzing Python code).
    See http://goo.gl/AIqn1
  
  Reported by:	pointyhat (via erwin)
  Approved by:	lwhsu (maintainer), via private email

Modified:
  head/textproc/py-sphinx/Makefile
  head/textproc/py-sphinx/pkg-plist

Modified: head/textproc/py-sphinx/Makefile
==============================================================================
--- head/textproc/py-sphinx/Makefile	Tue Jul 17 12:22:23 2012	(r301001)
+++ head/textproc/py-sphinx/Makefile	Tue Jul 17 12:46:02 2012	(r301002)
@@ -7,6 +7,7 @@
 
 PORTNAME=	sphinx
 PORTVERSION=	1.1.3
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -26,4 +27,10 @@ USE_PYTHON=	yes
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	Sphinx
 
+PLIST_SUB=	PYTHON_VER=${PYTHON_VER}
+
+post-install:
+	@${SETENV} PYTHONPATH=${PYTHONPREFIX_SITELIBDIR} \
+	${PYTHON_CMD} -m sphinx.pycode.pgen2.driver -c 'import load_grammar'
+
 .include <bsd.port.mk>

Modified: head/textproc/py-sphinx/pkg-plist
==============================================================================
--- head/textproc/py-sphinx/pkg-plist	Tue Jul 17 12:22:23 2012	(r301001)
+++ head/textproc/py-sphinx/pkg-plist	Tue Jul 17 12:46:02 2012	(r301002)
@@ -257,6 +257,7 @@ bin/sphinx-quickstart
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/pycode/Grammar.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/pycode/Grammar%%PYTHON_VER%%.pickle
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/pycode/__init__.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/pycode/__init__.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinx/pycode/__init__.pyo



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