[101635] trunk/dports/python
jmr at macports.org
jmr at macports.org
Tue Jan 15 14:24:59 PST 2013
Revision: 101635
https://trac.macports.org/changeset/101635
Author: jmr at macports.org
Date: 2013-01-15 14:24:59 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
py*-openssl: unify
Modified Paths:
--------------
trunk/dports/python/py-openssl/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-openssl/
trunk/dports/python/py26-openssl/
trunk/dports/python/py27-openssl/
Modified: trunk/dports/python/py-openssl/Portfile
===================================================================
--- trunk/dports/python/py-openssl/Portfile 2013-01-15 21:29:22 UTC (rev 101634)
+++ trunk/dports/python/py-openssl/Portfile 2013-01-15 22:24:59 UTC (rev 101635)
@@ -1,14 +1,13 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-openssl
-version 0.9
-revision 1
-license LGPL-2.1
+version 0.13
categories python devel security
-maintainers nomaintainer
+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 \
@@ -16,21 +15,57 @@
object methods do nothing more than calling a corresponding \
function in the OpenSSL library.
-homepage http://pyopenssl.sourceforge.net/
-master_sites sourceforge:pyopenssl
+homepage http://launchpad.net/pyopenssl
+master_sites http://pypi.python.org/packages/source/p/pyOpenSSL/
distname pyOpenSSL-${version}
-checksums md5 5bf282b2d6a03af921920c34079580f2 \
- sha1 d39eeb26c73e4b96804e1e403e2136062910b6c2 \
- rmd160 fec72e02a922ffb37a9c66ed809c573b778138db
+checksums md5 767bca18a71178ca353dff9e10941929 \
+ sha1 b4de25c5e4e9d9bc375c419071efc45fa96d5597 \
+ rmd160 85d6a8a5ca43ee12c4054f8f483db20e13dd6551
-depends_lib-append port:openssl
+python.versions 24 25 26 27
-patch {
- reinplace "s|/sw/|${prefix}/|g" ${worksrcpath}/setup.py
-}
+if {$subport != $name} {
+ depends_lib-append port:openssl
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog INSTALL README \
- TODO ${destroot}${prefix}/share/doc/${name}
+ post-patch {
+ reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/examples/proxy.py
+ }
+
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} ChangeLog INSTALL LICENSE README \
+ TODO ${destroot}${prefix}/share/doc/${subport}
+ file delete ${destroot}${prefix}/share/doc/${subport}/examples
+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+ }
+
+ variant doc description {build html documentation} {
+ 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
+ }
+
+ post-build {
+ system "cd ${worksrcpath}/doc && /usr/bin/make html"
+ }
+
+ post-destroot {
+ file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${subport}
+ }
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${master_sites}
+ livecheck.regex "pyOpenSSL-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/82ff7780/attachment-0001.html>
More information about the macports-changes
mailing list