Date: Thursday, March 2, 2017 @ 11:46:32 Author: demize Revision: 214521
archrelease: copy trunk to community-any Added: python-sphinx_rtd_theme/repos/community-any/0001-Add-missing-SOURCELINK_SUFFIX.patch (from rev 214520, python-sphinx_rtd_theme/trunk/0001-Add-missing-SOURCELINK_SUFFIX.patch) python-sphinx_rtd_theme/repos/community-any/PKGBUILD (from rev 214520, python-sphinx_rtd_theme/trunk/PKGBUILD) Deleted: python-sphinx_rtd_theme/repos/community-any/0001-Add-missing-SOURCELINK_SUFFIX.patch python-sphinx_rtd_theme/repos/community-any/PKGBUILD ------------------------------------------+ 0001-Add-missing-SOURCELINK_SUFFIX.patch | 92 +++++++++++++-------------- PKGBUILD | 97 +++++++++++++---------------- 2 files changed, 91 insertions(+), 98 deletions(-) Deleted: 0001-Add-missing-SOURCELINK_SUFFIX.patch =================================================================== --- 0001-Add-missing-SOURCELINK_SUFFIX.patch 2017-03-02 11:46:26 UTC (rev 214520) +++ 0001-Add-missing-SOURCELINK_SUFFIX.patch 2017-03-02 11:46:32 UTC (rev 214521) @@ -1,46 +0,0 @@ -From 5b5c74bcfbe19a699ac5559551216a516c8e1aa2 Mon Sep 17 00:00:00 2001 -From: Mikkel Oscar Lyderik Larsen <m...@moscar.net> -Date: Thu, 8 Dec 2016 23:33:21 +0100 -Subject: [PATCH] Add missing SOURCELINK_SUFFIX - -Adds DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX which is expected by the -searchtools.js - -Related sphinx commit: -https://github.com/sphinx-doc/sphinx/commit/71dd8bfbf94417ad55b2444e1dbd219db266f335 ---- - sphinx_rtd_theme/layout.html | 3 ++- - sphinx_rtd_theme/layout_old.html | 3 ++- - 2 files changed, 4 insertions(+), 2 deletions(-) - -diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html -index 44978c9..ca63b80 100644 ---- a/sphinx_rtd_theme/layout.html -+++ b/sphinx_rtd_theme/layout.html -@@ -167,7 +167,8 @@ - VERSION:'{{ release|e }}', - COLLAPSE_INDEX:false, - FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}', -- HAS_SOURCE: {{ has_source|lower }} -+ HAS_SOURCE: {{ has_source|lower }}, -+ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}' - }; - </script> - {%- for scriptfile in script_files %} -diff --git a/sphinx_rtd_theme/layout_old.html b/sphinx_rtd_theme/layout_old.html -index deb8df2..f0dc2af 100644 ---- a/sphinx_rtd_theme/layout_old.html -+++ b/sphinx_rtd_theme/layout_old.html -@@ -91,7 +91,8 @@ - VERSION: '{{ release|e }}', - COLLAPSE_INDEX: false, - FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}', -- HAS_SOURCE: {{ has_source|lower }} -+ HAS_SOURCE: {{ has_source|lower }}, -+ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}' - }; - </script> - {%- for scriptfile in script_files %} --- -2.12.0 - Copied: python-sphinx_rtd_theme/repos/community-any/0001-Add-missing-SOURCELINK_SUFFIX.patch (from rev 214520, python-sphinx_rtd_theme/trunk/0001-Add-missing-SOURCELINK_SUFFIX.patch) =================================================================== --- 0001-Add-missing-SOURCELINK_SUFFIX.patch (rev 0) +++ 0001-Add-missing-SOURCELINK_SUFFIX.patch 2017-03-02 11:46:32 UTC (rev 214521) @@ -0,0 +1,46 @@ +From 5b5c74bcfbe19a699ac5559551216a516c8e1aa2 Mon Sep 17 00:00:00 2001 +From: Mikkel Oscar Lyderik Larsen <m...@moscar.net> +Date: Thu, 8 Dec 2016 23:33:21 +0100 +Subject: [PATCH] Add missing SOURCELINK_SUFFIX + +Adds DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX which is expected by the +searchtools.js + +Related sphinx commit: +https://github.com/sphinx-doc/sphinx/commit/71dd8bfbf94417ad55b2444e1dbd219db266f335 +--- + sphinx_rtd_theme/layout.html | 3 ++- + sphinx_rtd_theme/layout_old.html | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html +index 44978c9..ca63b80 100644 +--- a/sphinx_rtd_theme/layout.html ++++ b/sphinx_rtd_theme/layout.html +@@ -167,7 +167,8 @@ + VERSION:'{{ release|e }}', + COLLAPSE_INDEX:false, + FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}', +- HAS_SOURCE: {{ has_source|lower }} ++ HAS_SOURCE: {{ has_source|lower }}, ++ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}' + }; + </script> + {%- for scriptfile in script_files %} +diff --git a/sphinx_rtd_theme/layout_old.html b/sphinx_rtd_theme/layout_old.html +index deb8df2..f0dc2af 100644 +--- a/sphinx_rtd_theme/layout_old.html ++++ b/sphinx_rtd_theme/layout_old.html +@@ -91,7 +91,8 @@ + VERSION: '{{ release|e }}', + COLLAPSE_INDEX: false, + FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}', +- HAS_SOURCE: {{ has_source|lower }} ++ HAS_SOURCE: {{ has_source|lower }}, ++ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}' + }; + </script> + {%- for scriptfile in script_files %} +-- +2.12.0 + Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-03-02 11:46:26 UTC (rev 214520) +++ PKGBUILD 2017-03-02 11:46:32 UTC (rev 214521) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Johannes Löthberg <johan...@kyriasis.com> -# Contributor: eolianoe <eolianoe [at] gmail [DoT] com> -# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de> - -pkgbase=python-sphinx_rtd_theme -pkgname=('python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme') -pkgver=0.1.9 -pkgrel=3 - -pkgdesc="Python Sphinx Read The Docs Theme" -url='https://github.com/snide/sphinx_rtd_theme' -arch=('any') -license=('MIT') - -makedepends=('python-setuptools' 'python2-setuptools') - -source=("https://pypi.python.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz" - "0001-Add-missing-SOURCELINK_SUFFIX.patch") - -sha256sums=('273846f8aacac32bf9542365a593b495b68d8035c2e382c9ccedcac387c9a0a1' - '514e392a88d8123e65db21f151dee0b9b861b8828fe76209f8eec74277989c5e') - -prepare() { - cd sphinx_rtd_theme-$pkgver - patch -p1 <"$srcdir"/0001-Add-missing-SOURCELINK_SUFFIX.patch -} - -build() { - cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2 - - cd sphinx_rtd_theme-$pkgver - python setup.py build - - cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2 - python2 setup.py build -} - -package_python-sphinx_rtd_theme() { - cd sphinx_rtd_theme-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-sphinx_rtd_theme() { - cd sphinx_rtd_theme-${pkgver}-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - Copied: python-sphinx_rtd_theme/repos/community-any/PKGBUILD (from rev 214520, python-sphinx_rtd_theme/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-03-02 11:46:32 UTC (rev 214521) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: eolianoe <eolianoe [at] gmail [DoT] com> +# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de> + +pkgbase=python-sphinx_rtd_theme +pkgname=('python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme') +pkgver=0.2.0 +pkgrel=1 + +pkgdesc="Python Sphinx Read The Docs Theme" +url='https://github.com/snide/sphinx_rtd_theme' +arch=('any') +license=('MIT') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://pypi.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz") + +sha256sums=('ecdcb87cbed7c4cc3ff5fbf44a3afe2fb4cbc4eb8e4751cea3564832d225bd3b') + +build() { + cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2 + + cd sphinx_rtd_theme-$pkgver + python setup.py build + + cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2 + python2 setup.py build +} + +package_python-sphinx_rtd_theme() { + cd sphinx_rtd_theme-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-sphinx_rtd_theme() { + cd sphinx_rtd_theme-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +