# -*- 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
github.setup jralls gtk-mac-bundler 0.7.4 bundler-
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 <prefix>/share/gtk-mac-bundler/examples/gtk3-demo.bundle \
This will create the GtkDemo bundle in ~/Desktop
checksums rmd160 aeff015024a918ffa4e190d14a65e711ab331014 \
sha256 6b67916e48e4e75e677732333060581996ed8759fa9e506a4684db2752d63eb7
#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-gtk3-demo-bundle.diff \
#---------------------------
# CONFIGURATION AND BUILDING
#---------------------------
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