Ticket #22897: Portfile.diff

File Portfile.diff, 2.2 KB (added by neric27@…, 14 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                gpodder
    7 version             2.0
     7version             2.1
     8revision            0
    89categories          gnome audio
    910license             GPLv3
    1011maintainers         neric27@wanadoo.fr openmaintainer
     
    1920homepage            http://gpodder.org
    2021master_sites        http://download.berlios.de/gpodder/
    2122
    22 checksums           md5     288641768cdef679ed2e7976562b200e \
    23                     sha1    47841ff1832dd222b7c63f765660b3d9716cbe95 \
    24                     rmd160  f637599125f6b2de9d803187039d920fea49876b
     23checksums           md5     57ed679e3722b7c214956b8d4e13141a \
     24                    sha1    3528e0925654373deef54a6c4e7929c0d31b9c3a \
     25                    rmd160  62cbb236f3327e685c5d8b63da8fe4b817e71ac6
    2526
    2627depends_build       port:help2man\
    2728                    port:intltool
     
    3738    patch {
    3839        reinplace s|python|${prefix}/bin/python2.5|g ${worksrcpath}/Makefile
    3940    }
     41
     42    destroot.args PREFIX=${prefix}
    4043}
    4144
     45
     46set my_python "${frameworks_dir}/Python.framework/Versions/2.6"
     47
    4248variant python26 conflicts python25 description {Use Python 2.6} {
    4349    depends_lib-append  port:py26-feedparser\
    4450                        port:py26-pil\
    4551                        port:dbus-python26\
    4652                        port:gnome-python26-extras
     53   
    4754    patch {
    48         reinplace s|python|${prefix}/bin/python2.6|g ${worksrcpath}/Makefile
     55        reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
     56    }
     57   
     58    # install in python 2.6 prefix, see bug #22522
     59    destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.6
     60   
     61    # Install the 2.6 apps in the standard path :
     62    # the 2 variants can't be active simultaneously.
     63    post-destroot {
     64        foreach {app} {gpodder gpo gpodder-backup} {
     65                ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app}
     66        }
    4967    }
    5068}
    5169
     
    5775
    5876build {}
    5977
    60 destroot.args PREFIX=${prefix}
    6178
    6279livecheck.type      regex
    6380livecheck.url       ${master_sites}