Ticket #23768: gramps_python26.patch

File gramps_python26.patch, 1.5 KB (added by lkraider (Paul Eipper), 14 years ago)
  • Portfile

    old new  
    3636                                --disable-scrollkeeper
    3737                               
    3838
    39 configure.env                   PYTHON=${prefix}/bin/python2.5 \
    40                                 GMSGFMT=${prefix}/bin/msgfmt
     39configure.env   GMSGFMT=${prefix}/bin/msgfmt
    4140
    42 depends_lib                     bin:update-mime-database:shared-mime-info \
    43                                 port:py25-gtk \
    44                                 port:py25-gnome \
    45                                 port:gtkspell2 \
    46                                 port:aspell-dict-en \
    47                                 port:gnome-python-extras
     41depends_lib     bin:update-mime-database:shared-mime-info \
     42                port:gtk2 \
     43                port:librsvg \
     44                port:libsoup
    4845
     46variant spell {
     47    depends_lib-append  port:gtkspell2 \
     48                        port:aspell-dict-en
     49}
     50
     51variant graphviz {
     52    depends_run-append  port:graphviz
     53}
     54
     55variant python25 conflicts python26 description {Use Python 2.5} {
     56    depends_lib-append  port:py25-gtk \
     57                        port:py25-gnome \
     58                        port:gnome-python-extras
     59    configure.python    ${prefix}/bin/python2.5
     60}
     61
     62variant python26 conflicts python25 description {Use Python 2.6} {
     63    depends_lib-append  port:py26-gtk \
     64                        port:py26-gnome \
     65                        port:gnome-python26-extras
     66    configure.python    ${prefix}/bin/python2.6
     67}
    4968
     69if {![variant_isset python25]} {
     70    default_variants +python26
     71}
     72               
    5073post-activate {
    5174        system "update-mime-database ${prefix}/share/mime"
    5275        system "scrollkeeper-update"