<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c2e51d49384932e2f0f373c20f0d1c45ebfcfbd6">https://github.com/macports/macports-ports/commit/c2e51d49384932e2f0f373c20f0d1c45ebfcfbd6</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c2e51d49384932e2f0f373c20f0d1c45ebfcfbd6
</span>Author: Allan Que <allan.que@gmail.com>
AuthorDate: Sun May 26 12:34:08 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> restic: add variant to build docs
</span>---
sysutils/restic/Portfile | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/restic/Portfile b/sysutils/restic/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 788e168..666003c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/restic/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/restic/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,12 +18,34 @@ checksums rmd160 7297c7dc01980c0ece228ad492bbc7d06fae6d37 \
</span> sha256 f818778b135d3b0ca9710992e13b7e06458fcde3aa914b60907aeca7ac84bb5e \
size 26934307
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set pyver 3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant docs description {Build the documentation} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pyver_nodot [string map {. {}} ${pyver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${pyver_nodot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver_nodot}-sphinx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver_nodot}-sphinx_rtd_theme
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> build.cmd go run build.go
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset docs]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath}/doc "s|sphinx-build|sphinx-build-${pyver}|g" Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/doc "make html"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
set docdir ${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} LICENSE README.rst ${destroot}${docdir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset docs]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/doc/_build/html ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
</pre><pre style='margin:0'>
</pre>