From 422edd8812090ee34d537c9b4ebe32f525949edc Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 1 Aug 2014 04:03:54 -0400 Subject: [PATCH] osx: Create bundles using homebrew Just easier to maintain than jhbuild. See https://github.com/TingPing/homebrew-gnome for deps. --- configure.ac | 2 +- osx/hexchat.bundle | 25 +++++-------------------- osx/launcher.sh | 4 ---- osx/makebundle.sh | 17 +---------------- 4 files changed, 7 insertions(+), 41 deletions(-) diff --git a/configure.ac b/configure.ac index 8de5d1fe..a3a0d323 100644 --- a/configure.ac +++ b/configure.ac @@ -216,7 +216,7 @@ dnl ********************************************************************* _gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0` if test "x$_gdk_tgt" = xquartz; then - PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration, [ + PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration-gtk2, [ GUI_LIBS="$GUI_LIBS $GTK_MAC_LIBS" GUI_CFLAGS="$GUI_CFLAGS $GTK_MAC_CFLAGS" AC_DEFINE(HAVE_GTK_MAC) diff --git a/osx/hexchat.bundle b/osx/hexchat.bundle index 01ef77db..b1d11c5e 100644 --- a/osx/hexchat.bundle +++ b/osx/hexchat.bundle @@ -2,7 +2,8 @@ - ${env:JHBUILD_PREFIX} + /usr/local + /usr/local/opt/enchant-applespell ${project} @@ -21,25 +22,12 @@ - ${prefix}/lib/libenchant.dylib + ${prefix:enchant}/lib/libenchant.dylib - ${prefix}/lib/enchant/libenchant_applespell.so + ${prefix:enchant}/lib/enchant/libenchant_applespell.so - - ${prefix}/bin/python - - - ${prefix}/lib/libpython2.7.dylib - - - ${prefix}/lib/python2.7/ - - - ${prefix}/include/python2.7/pyconfig.h - - ${prefix}/lib/${gtkdir}/modules/*.so @@ -59,7 +47,7 @@ ${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/ - ${prefix}/share/themes/Mac/ + ${prefix}/share/themes/Mac/gtk-2.0-key/gtkrc @@ -77,7 +65,4 @@ ${project}/hexchat.icns - - diff --git a/osx/launcher.sh b/osx/launcher.sh index 4c21e561..e6d78b47 100755 --- a/osx/launcher.sh +++ b/osx/launcher.sh @@ -36,10 +36,6 @@ export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders" export PANGO_LIBDIR="$bundle_lib" export PANGO_SYSCONFDIR="$bundle_etc" -export PYTHON="$bundle_contents/MacOS/python" -export PYTHONHOME="$bundle_res" -export PYTHONPATH="$bundle_lib/python2.7:$bundle_lib/python2.7/site-packages" - export OPENSSL_CONF="/System/Library/OpenSSL/openssl.cnf" export HEXCHAT_LIBDIR="$bundle_lib/hexchat/plugins" diff --git a/osx/makebundle.sh b/osx/makebundle.sh index 930e72aa..e1af0586 100755 --- a/osx/makebundle.sh +++ b/osx/makebundle.sh @@ -1,24 +1,9 @@ #!/bin/sh -if [ -z "$JHBUILD_PREFIX" ]; then - echo "You must run this within a jhbuild shell." - exit 1 -fi - -if [ ! -f $JHBUILD_PREFIX/bin/python ]; then - echo "You must install python with jhbuild." - exit 1 -fi - rm -rf HexChat.app rm -f *.app.zip -$JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle - -# These take up a lot of space in the bundle -echo "Cleaning up python files" -find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyc" -delete -find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyo" -delete +python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle echo "Compressing bundle" #hdiutil create -format UDBZ -srcdir HexChat.app -quiet HexChat-2.9.6.1-$(git rev-parse --short master).dmg