# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup jralls gtk-mac-bundler 0.7.4 bundler- categories devel license GPL-2 platforms darwin maintainers nomaintainer supported_archs noarch description Mac OS X application bundle utility long_description A utility that aids in the creation of Mac OS X \ application bundles. The gtk3-demo example is \ patched in macports to produce a gtk3-demo \ without jhbuild environment. To test the demo run \ gtk-mac-bundler /share/gtk-mac-bundler/examples/gtk3-demo.bundle \ This will create the GtkDemo bundle in ~/Desktop #--------- # CHECKSUM #--------- checksums rmd160 aeff015024a918ffa4e190d14a65e711ab331014 \ sha256 6b67916e48e4e75e677732333060581996ed8759fa9e506a4684db2752d63eb7 #--------- # PATCHING #--------- #Note: patch-0.7.4-to-24Feb2016.diff brings 0.7.4 to the commit dated 2016/02/24 - Remove after update patchfiles patch-0.7.4-to-24Feb2016.diff \ patch-bundler_py.diff \ patch-gtk3-demo-bundle.diff \ patch-gtk3-launcher.diff #--------------------------- # CONFIGURATION AND BUILDING #--------------------------- use_configure no build {} #----------- # DEPLOYMENT #----------- pre-destroot { reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|g" ${worksrcpath}/gtk-mac-bundler.in reinplace "s|@PATH@|${frameworks_dir}/Python.framework/Version/2.7/lib/site-packages|g" ${worksrcpath}/gtk-mac-bundler.in reinplace "s|\${env:JHBUILD_PREFIX}|${prefix}|g" ${worksrcpath}/examples/gtk3-demo.bundle xinstall -m 755 -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7 copy ${worksrcpath}/bundler ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/ file mkdir ${destroot}${prefix}/share/${name} copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name} } destroot.args bindir=${destroot}${prefix}/bin