Ticket #34805: patch-sparkle.diff

File patch-sparkle.diff, 2.1 KB (added by mojca (Mojca Miklavec), 12 years ago)

Sparkle-related patch for Poedit 1.5.2

  • src/osx_helpers.h

     
    3333extern "C" {
    3434#endif
    3535
     36#ifdef USE_SPARKLE
    3637// Sparkle helpers
    3738void Sparkle_Initialize();
    3839void Sparkle_AddMenuItem(const char *title);
    3940void Sparkle_Cleanup();
     41#endif // USE_SPARKLE
    4042
    4143// Spell checking
    4244int SpellChecker_SetLang(const char *lang);
  • src/osx_helpers.m

     
    3333#import <AppKit/NSButton.h>
    3434#import <AppKit/NSSpellChecker.h>
    3535
     36#ifdef USE_SPARKLE
    3637#import <Sparkle/Sparkle.h>
    3738
    3839// --------------------------------------------------------------------------------
    void Sparkle_Cleanup() 
    7576    [[NSUserDefaults standardUserDefaults] synchronize];
    7677    [pool release];
    7778}
    78 
     79#endif // USE_SPARKLE
    7980
    8081// --------------------------------------------------------------------------------
    8182// Spell checking
  • macosx/make-bundle

    for i in $top_srcdir/locales/*.mo ; do 
    8585    cp $i $bundle/Contents/Resources/locale/$lang/LC_MESSAGES/poedit.mo
    8686done
    8787
    88 if [ -n "$WX_ROOT" ] ; then
    89     (cd $WX_ROOT/share ; tar -c locale) | \
    90         (cd $bundle/Contents/Resources ; tar -x)
    91 else
    92     echo "WARNING: not copying wxWidgets message catalogs, point WX_ROOT" >&2
    93     echo "         environment variable to a directory with installed wx" >&2
    94 fi
     88# TODO: there is no <lang>/LC_MESSAGES/wxstd.mo in wxWidgets-devel
     89#
     90#if [ -n "$WX_ROOT" ] ; then
     91#    (cd $WX_ROOT/share ; tar -c locale) | \
     92#        (cd $bundle/Contents/Resources ; tar -x)
     93#else
     94#    echo "WARNING: not copying wxWidgets message catalogs, point WX_ROOT" >&2
     95#    echo "         environment variable to a directory with installed wx" >&2
     96#fi
    9597
    9698# 3rd party frameworks:
     99if [ "x$SPARKLE_FRAMEWORK" != "xno" ] ; then
    97100if [ -n "$SPARKLE_FRAMEWORK" ] ; then
    98101    mkdir -p $bundle/Contents/Frameworks
    99102    cp -R $SPARKLE_FRAMEWORK $bundle/Contents/Frameworks
    else 
    101104    echo "WARNING: not copying Sparkle framework, point SPARKLE_FRAMEWORK" >&2
    102105    echo "         environment variable to it" >&2
    103106fi
     107fi
    104108
    105109echo "Installed message catalogs:"
    106110find $bundle/Contents/Resources/locale -type f