[140158] trunk/dports/python/py-openssl/Portfile

petr at macports.org petr at macports.org
Thu Sep 10 15:10:48 PDT 2015


Revision: 140158
          https://trac.macports.org/changeset/140158
Author:   petr at macports.org
Date:     2015-09-10 15:10:48 -0700 (Thu, 10 Sep 2015)
Log Message:
-----------
py-openssl: fix +doc variant, closes #47856, maintainer timeout

Modified Paths:
--------------
    trunk/dports/python/py-openssl/Portfile

Modified: trunk/dports/python/py-openssl/Portfile
===================================================================
--- trunk/dports/python/py-openssl/Portfile	2015-09-10 21:17:58 UTC (rev 140157)
+++ trunk/dports/python/py-openssl/Portfile	2015-09-10 22:10:48 UTC (rev 140158)
@@ -51,22 +51,16 @@
                 ${destroot}${prefix}/share/doc/${subport}
 
         file delete ${destroot}${prefix}/share/doc/${subport}/examples
-        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+        copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
     }
 
     variant doc description {build html documentation} {
-        depends_build-append port:latex2html
+        depends_build-append    port:py${python.version}-sphinx
+        #depends_build-append port:latex2html
 
         post-patch {
-            # Ensure that the correct binaries are used.
-            # Some are not actually invoked because only the html documentation is created.
-            foreach bin {bibtex dvips latex latex2html lynx makeindex pdflatex perl python} {
-                reinplace "s| = \"${bin}\"| = \"${prefix}/bin/${bin}\"|" ${worksrcpath}/doc/tools/mkhowto
-            }
-
-            # Ensure that the correct python is used.
-            reinplace "s|${prefix}/bin/python|${python.bin}|" ${worksrcpath}/doc/tools/mkhowto
-            reinplace "s| python | ${python.bin} |" ${worksrcpath}/doc/Makefile
+            # Ensure that the correct sphinx-build is used.
+            reinplace "s|sphinx-build|sphinx-build-${python.branch}|" ${worksrcpath}/doc/Makefile
         }
 
         post-build {
@@ -74,7 +68,7 @@
         }
 
         post-destroot {
-            file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${subport}
+            copy ${worksrcpath}/doc/_build/html ${destroot}${prefix}/share/doc/${subport}
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150910/f8f18042/attachment.html>


More information about the macports-changes mailing list