Ticket #56917: Portfile.diff

File Portfile.diff, 1.7 KB (added by jmroot (Joshua Root), 6 years ago)
  • python/py-gnureadline/Portfile

    diff --git a/python/py-gnureadline/Portfile b/python/py-gnureadline/Portfile
    index f03455f729..793d077ac2 100644
    a b  
    22
    33PortSystem          1.0
    44PortGroup           python 1.0
    5 PortGroup           github 1.0
    65
    7 github.setup        ludwigschwardt python-gnureadline 38f917de65ff089a22d551775f41a7300eb13010
    86name                py-gnureadline
    9 version             6.3.3-20151013
     7version             6.3.8
    108platforms           darwin
    119license             GPL-3+ PSF
    1210
    description Python readline extension. 
    1816long_description    ${description}
    1917
    2018homepage            https://github.com/ludwigschwardt/python-gnureadline
    21 #master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
     19master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
    2220
    23 #distname            ${python.rootname}-${version}
     21distname            ${python.rootname}-${version}
    2422
    25 checksums           rmd160  e3b7deebaffdea0a35720bf3b49c1c94f73d13bf \
    26                     sha256  2853f006fca2532ea48a9fadf594590b7b3bc43f494ad5c4d53652961eb38519
     23checksums           rmd160 ac18527b4dd2de0abc12e5744459370133edbb87 \
     24                    sha256 58e208ed34a53456ecf58bc11eacbe332c50d322b329457e2c645bd15192b035
    2725
    2826if {${name} ne ${subport}} {
    2927    depends_build-append \
    if {${name} ne ${subport}} { 
    3331    patchfiles          build.sh.patch \
    3432                        setup.py.patch
    3533
     34    post-patch {
     35        reinplace "s|__OPTFLAGS__|${configure.optflags}|" ${worksrcpath}/rl/build.sh
     36    }
     37
    3638    post-destroot {
    3739        copy -force ${filespath}/readline.pth ${filespath}/readline_path.py \
    3840            ${destroot}${python.pkgd}