Ticket #22522: fix_gpodder.diff

File fix_gpodder.diff, 1.6 KB (added by neric27@…, 14 years ago)

patch against r60328

  • gpodder/Portfile

    old new  
    55
    66name                gpodder
    77version             2.0
     8revision            1
    89categories          gnome audio
    910license             GPLv3
    1011maintainers         neric27@wanadoo.fr openmaintainer
     
    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}