Ticket #51449: portfile.diff

File portfile.diff, 2.6 KB (added by fredowski, 8 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        jralls gtk-mac-bundler 0.7.3 bundler-
    8 revision            2
     7github.setup        jralls gtk-mac-bundler 0.7.4 bundler-
    98categories          devel
    109license             GPL-2
    1110platforms           darwin
     
    1514
    1615description         Mac OS X application bundle utility
    1716long_description    A utility that aids in the creation of Mac OS X \
    18                     application bundles
     17                    application bundles. The gtk3-demo example is \
     18                    patched in macports to produce a the gtk3-demo \
     19                    without jhbuild environment. To test the demo run \
     20                    gtk-mac-bundler <prefix>/share/gtk-mac-bundler/examples/gtk3-demo.bundle \
     21                    This will create the GtkDemo bundle in ~/Desktop
    1922
    20 #---------
     23#-------
    2124# CHECKSUM
    2225#---------
    23 checksums           rmd160  d7773e2394ea46c70510e7481a390db19fca937e \
    24                     sha256  f35828c539879bab3d00d53f9c05bbad739756ba733afcfd61ee7e8e3b49d339
     26checksums           rmd160  aeff015024a918ffa4e190d14a65e711ab331014 \
     27                    sha256  6b67916e48e4e75e677732333060581996ed8759fa9e506a4684db2752d63eb7
    2528
    2629#---------
    2730# PATCHING
    2831#---------
    29 # Note: patch-0.73_2014.02.24.diff brings 0.7.3 to commit dated 2014.02.24, remove on next release version
    30 patchfiles          patch-0.7.3_2014.02.24.diff \
     32#Note: patch-0.7.4-to-24Feb2016.diff brings 0.7.4 to the commit dated 2016/02/24 - Remove after update
     33patchfiles          patch-0.7.4-to-24Feb2016.diff \
    3134                    patch-bundler_py.diff \
    32                     patch-launcher_sh.diff
     35                    patch-gtk3-demo-bundle.diff \
     36                    patch-gtk3-launcher.diff
    3337
    3438#---------------------------
    3539# CONFIGURATION AND BUILDING
     
    4448pre-destroot {
    4549    reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|g" ${worksrcpath}/gtk-mac-bundler.in
    4650    reinplace "s|@PATH@|${frameworks_dir}/Python.framework/Version/2.7/lib/site-packages|g" ${worksrcpath}/gtk-mac-bundler.in
     51    reinplace "s|\${env:JHBUILD_PREFIX}|${prefix}|g" ${worksrcpath}/examples/gtk3-demo.bundle
    4752    xinstall -m 755 -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7
    4853    copy ${worksrcpath}/bundler ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/
     54    file mkdir ${destroot}${prefix}/share/${name}
     55    copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
    4956}
    5057destroot.args       bindir=${destroot}${prefix}/bin