From owner-svn-ports-head@freebsd.org Fri Jun 22 13:43:07 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00AAC101C26D; Fri, 22 Jun 2018 13:43:07 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99A2370EC8; Fri, 22 Jun 2018 13:43:06 +0000 (UTC) (envelope-from miwi@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 78CD32174C; Fri, 22 Jun 2018 13:43:06 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5MDh6kA067118; Fri, 22 Jun 2018 13:43:06 GMT (envelope-from miwi@FreeBSD.org) Received: (from miwi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5MDh5jo067113; Fri, 22 Jun 2018 13:43:05 GMT (envelope-from miwi@FreeBSD.org) Message-Id: <201806221343.w5MDh5jo067113@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: miwi set sender to miwi@FreeBSD.org using -f From: Martin Wilke Date: Fri, 22 Jun 2018 13:43:05 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: miwi X-SVN-Commit-Paths: in head/textproc: . py-openstackdocstheme py-openstackdocstheme/files X-SVN-Commit-Revision: 473041 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2018 13:43:07 -0000 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 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/