# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name pyOpenSSL set _n [string index ${_name} 0] name py-openssl version 16.0.0 categories-append devel security license Apache-2 maintainers mcalhoun openmaintainer platforms darwin freebsd description python wrapper around the OpenSSL library long_description \ This python module is a rather thin wrapper around (a subset of) the \ OpenSSL library. With thin wrapper a lot of the object methods do \ nothing more than calling a corresponding function in the OpenSSL library. homepage https://github.com/pyca/pyopenssl distname ${_name}-${version} master_sites pypi:${_n}/${_name}/ checksums md5 9587d813dcf656e9f2760e41a3682dc3 \ rmd160 5743ac77e6accd99ce645adbfff559ba379f94b7 \ sha256 363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d python.versions 27 34 35 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools depends_lib-append path:lib/libssl.dylib:openssl \ port:py${python.version}-cryptography \ port:py${python.version}-six post-patch { reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/examples/proxy.py } post-destroot { xinstall -m 644 -W ${worksrcpath} \ CHANGELOG.rst \ CODE_OF_CONDUCT.rst \ CONTRIBUTING.rst \ INSTALL.rst \ README.rst \ LICENSE \ ${destroot}${prefix}/share/doc/${subport} file delete ${destroot}${prefix}/share/doc/${subport}/examples copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport} } variant doc description {build html documentation} { depends_build-append port:py${python.version}-sphinx #depends_build-append port:latex2html post-patch { # Ensure that the correct sphinx-build is used. reinplace "s|sphinx-build|sphinx-build-${python.branch}|" ${worksrcpath}/doc/Makefile } post-build { system "cd ${worksrcpath}/doc && /usr/bin/make html" } post-destroot { copy ${worksrcpath}/doc/_build/html ${destroot}${prefix}/share/doc/${subport} } } livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" }