Date: Fri, 22 Jun 2018 13:43:05 +0000 (UTC) From: Martin Wilke <miwi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473041 - in head/textproc: . py-openstackdocstheme py-openstackdocstheme/files Message-ID: <201806221343.w5MDh5jo067113@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: miwi Date: Fri Jun 22 13:43:05 2018 New Revision: 473041 URL: https://svnweb.freebsd.org/changeset/ports/473041 Log: Theme and extension support for Sphinx documentation that is published to docs.openstack.org and developer.openstack.org. WWW: https://pypi.org/project/openstackdocstheme/ PR: 228681 Submitted by: freebsd_ports@k-worx.org Sponsored by: iXsystems Inc. Added: head/textproc/py-openstackdocstheme/ head/textproc/py-openstackdocstheme/Makefile (contents, props changed) head/textproc/py-openstackdocstheme/distinfo (contents, props changed) head/textproc/py-openstackdocstheme/files/ head/textproc/py-openstackdocstheme/files/patch-openstackdocstheme_ext.py (contents, props changed) head/textproc/py-openstackdocstheme/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Fri Jun 22 13:32:20 2018 (r473040) +++ head/textproc/Makefile Fri Jun 22 13:43:05 2018 (r473041) @@ -1328,6 +1328,7 @@ SUBDIR += py-nltk SUBDIR += py-numpydoc SUBDIR += py-openpyxl + SUBDIR += py-openstackdocstheme SUBDIR += py-orange3-text SUBDIR += py-pager SUBDIR += py-pandocfilters Added: head/textproc/py-openstackdocstheme/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-openstackdocstheme/Makefile Fri Jun 22 13:43:05 2018 (r473041) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= openstackdocstheme +DISTVERSION= 1.21.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= OpenStack Docs Theme + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/dulwich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils concurrent autoplist + +NO_ARCH= yes +PORTDOCS= * + +OPTIONS_DEFINE= DOCS +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/dulwich@${PY_FLAVOR} +DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc/build/html && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ + "! -name .buildinfo -and ! -name objects.inv") + +.include <bsd.port.mk> Added: head/textproc/py-openstackdocstheme/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-openstackdocstheme/distinfo Fri Jun 22 13:43:05 2018 (r473041) @@ -0,0 +1,3 @@ +TIMESTAMP = 1527880367 +SHA256 (openstackdocstheme-1.21.0.tar.gz) = 20df88482739f76c9007385c6314de7b787ad5c7bdcd23df5aa5c9c012f32d92 +SIZE (openstackdocstheme-1.21.0.tar.gz) = 1191580 Added: head/textproc/py-openstackdocstheme/files/patch-openstackdocstheme_ext.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-openstackdocstheme/files/patch-openstackdocstheme_ext.py Fri Jun 22 13:43:05 2018 (r473041) @@ -0,0 +1,23 @@ +--- openstackdocstheme/ext.py.orig 2018-03-29 20:08:16 UTC ++++ openstackdocstheme/ext.py +@@ -95,13 +95,13 @@ def _html_page_context(app, pagename, te + global _html_context_data + if _html_context_data is None: + _html_context_data = {} +- try: +- _html_context_data['gitsha'] = subprocess.check_output( +- ['git', 'rev-parse', 'HEAD'], +- ).decode('utf-8').strip() +- except Exception: +- logger.warning('Cannot get gitsha from git repository.') +- _html_context_data['gitsha'] = 'unknown' ++ #try: ++ # _html_context_data['gitsha'] = subprocess.check_output( ++ # ['git', 'rev-parse', 'HEAD'], ++ # ).decode('utf-8').strip() ++ #except Exception: ++ # logger.warning('Cannot get gitsha from git repository.') ++ _html_context_data['gitsha'] = 'unknown' + + doc_path = _get_doc_path(app) + repo_name = app.config.repository_name Added: head/textproc/py-openstackdocstheme/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-openstackdocstheme/pkg-descr Fri Jun 22 13:43:05 2018 (r473041) @@ -0,0 +1,4 @@ +Theme and extension support for Sphinx documentation that is published to +docs.openstack.org and developer.openstack.org. + +WWW: https://pypi.org/project/openstackdocstheme/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806221343.w5MDh5jo067113>