Ticket #43240: patch-py-m2crypto-Portfile.diff

File patch-py-m2crypto-Portfile.diff, 1.7 KB (added by jul_bsd@…, 10 years ago)
  • python/py-m2crypto/Portfile

    old new  
    1 # $Id: Portfile 120181 2014-05-18 16:38:29Z ram@macports.org $
     1# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $
    22
    33PortSystem         1.0
    44PortGroup          python 1.0
     
    2323checksums          rmd160 3ba7498308949f4c40c7eb8b649d575afd665a55 \
    2424                   sha256 6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72
    2525
     26## fix some leaks: https://code.google.com/p/grr/wiki/M2CryptoFromSource
     27## maybe review more: https://github.com/martinpaljak/M2Crypto/pulls
     28##      https://bugzilla.osafoundation.org/show_bug.cgi?id=13005
     29##      need to remove _lib.h part if > 0.21.1
     30#patchfiles         patch-m2crypto-fixes.diff
     31
    2632if {${name} ne ${subport}} {
    2733  depends_build      port:py${python.version}-setuptools
    2834  depends_lib-append port:swig-python \
     
    3339    reinplace "s|self.openssl = '/usr'|self.openssl = '${prefix}'|g" \
    3440      ${worksrcpath}/setup.py
    3541  }
     42
     43}
     44
     45# FIXME! python subgroup doesn't seem to handle well subport or else
     46subport py27-m2crypto-devel {
     47    python.versions    27
     48    fetch.type git
     49    version    0.22.3-20140507
     50    git.url    https://github.com/martinpaljak/M2Crypto.git
     51    git.branch 9abed178ed257d1bd2efbb16f7512e964f85d006
     52#    version    0.22.3-20140502
     53#    git.url    https://github.com/M2Crypto/M2Crypto
     54#    git.branch 3df7f1607b22a376c7e139062b6068466ccd9d64
     55
     56    conflicts  ${name}
    3657}
    3758
    38 if {${name} eq ${subport}} {
     59f {${name} eq ${subport}} {
    3960  livecheck.type     regex
    4061  livecheck.url      ${homepage}
    4162  livecheck.regex    M2Crypto-(\[0-9\\.\]+)\.tar\.gz