Ticket #32058: patch-ipe-tools.diff

File patch-ipe-tools.diff, 2.7 KB (added by dbevans (David B. Evans), 13 years ago)

Proposed patch for Portfile

  • Portfile

     
    55
    66name                    ipe-tools
    77version                 20110916
     8revision                1
    89categories              graphics
    910maintainers             jacobs-university.de:m.thon
    1011description             Tools for the Ipe extensible drawing editor
     
    4344                            rmd160  44c22367e3ef3cb4607310d15af51f527b006be0
    4445
    4546worksrcdir              .
    46 patchfiles              patch-pdftoipe-${pdftoipe-vers}-src-xmloutputdev.cpp.diff
     47patchfiles              patch-pdftoipe-${pdftoipe-vers}-src-xmloutputdev.cpp.diff \
     48                        patch-svgtoipe-python_path.diff
    4749
    4850depends_build           port:pkgconfig
    4951depends_lib             port:poppler
     
    7274        xinstall -m 755 ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe ${destroot}${prefix}/bin
    7375}
    7476
    75 variant python24 conflicts python25 python26 python27 description {Use PIL from Python 2.4} {
     77variant python24 conflicts python25 python26 python27 description {Use PIL from MacPorts Python 2.4} {
    7678    depends_lib-append port:py24-pil
     79    post-patch {
     80        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.4|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
     81    }
    7782}
    7883
    79 variant python25 conflicts python24 python26 python27 description {Use PIL from Python 2.5} {
     84variant python25 conflicts python24 python26 python27 description {Use PIL from MacPorts Python 2.5} {
    8085    depends_lib-append port:py25-pil
     86    post-patch {
     87        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.5|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
     88    }
    8189}
    8290
    83 variant python26 conflicts python24 python25 python27 description {Use PIL from Python 2.6} {
     91variant python26 conflicts python24 python25 python27 description {Use PIL from MacPorts Python 2.6} {
    8492    depends_lib-append port:py26-pil
     93    post-patch {
     94        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.6|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
     95    }
    8596}
    8697
    87 variant python27 conflicts python24 python25 python26 description {Use PIL from Python 2.7} {
     98variant python27 conflicts python24 python25 python26 description {Use PIL from MacPorts Python 2.7} {
    8899    depends_lib-append port:py27-pil
     100    post-patch {
     101        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
     102    }
    89103}
    90104
    91105if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
    92106    default_variants +python27
    93107}
     108
     109livecheck.type  regex
     110livecheck.url   http://sourceforge.net/projects/ipe7/files/tools/
     111livecheck.regex "to(?:ipe|xml)-(\[0-9\]*)"