forked from GNOME/meld
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
478 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/bin/sh | ||
|
||
EXEC="exec" | ||
|
||
name="`basename $0`" | ||
if [[ "$0" == `pwd`* ]] || [[ "$0" == "//"* ]]; then | ||
full_path="$0" | ||
else | ||
full_path="`pwd`/$0" | ||
fi | ||
tmp=`dirname "$full_path"` | ||
tmp=`dirname "$tmp"` | ||
bundle=`dirname "$tmp"` | ||
bundle_contents="$bundle"/Contents | ||
bundle_macos="$bundle_contents"/MacOS | ||
bundle_res="$bundle_contents"/Resources | ||
bundle_lib="$bundle_res"/lib:"$bundle_contents"/Frameworks | ||
bundle_bin="$bundle_res"/bin | ||
bundle_data="$bundle_res"/share | ||
bundle_etc="$bundle_res"/etc | ||
|
||
echo $bundle_lib | ||
export DYLD_LIBRARY_PATH="$bundle_lib" | ||
export XDG_CONFIG_DIRS="$bundle_etc"/xdg | ||
export XDG_DATA_DIRS="$bundle_data" | ||
export GTK_DATA_PREFIX="$bundle_res" | ||
export GTK_EXE_PREFIX="$bundle_res" | ||
export GTK_PATH="$bundle_res" | ||
|
||
export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc" | ||
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules" | ||
export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders" | ||
export PANGO_RC_FILE="$bundle_etc/pango/pangorc" | ||
export PANGO_LIBDIR="$bundle_lib" | ||
export PANGO_SYSCONFDIR="$bundle_etc" | ||
|
||
#Set $PYTHON to point inside the bundle | ||
export PYTHON="$bundle_macos/python" | ||
export PYTHONHOME="$bundle_res" | ||
#Add the bundle's python modules | ||
PYTHONPATH="$bundle_lib:$PYTHONPATH" | ||
PYTHONPATH="$bundle_lib/python/lib-dynload/:$PYTHONPATH" | ||
PYTHONPATH="$bundle_lib/python/:$PYTHONPATH" | ||
PYTHONPATH="$bundle_lib/pygtk/2.0:$PYTHONPATH" | ||
export PYTHONPATH | ||
|
||
# We need a UTF-8 locale. | ||
lang=`defaults read .GlobalPreferences AppleLocale 2>/dev/null` | ||
if test "$?" != "0"; then | ||
lang=`defaults read .GlobalPreferences AppleCollationOrder 2>/dev/null | sed 's/_.*//'` | ||
fi | ||
LANG="" | ||
if test "$lang" != ""; then | ||
LANG="`grep \"\`echo $lang\`_\" /usr/share/locale/locale.alias | \ | ||
tail -n1 | sed 's/\./ /' | awk '{print $2}'`" | ||
fi | ||
if test "$LANG" == ""; then | ||
export LANG="C" | ||
else | ||
export LANG="$LANG.utf8" | ||
fi | ||
|
||
if test -f "$bundle_lib/charset.alias"; then | ||
export CHARSETALIASDIR="$bundle_lib" | ||
fi | ||
|
||
# Extra arguments can be added in environment.sh. | ||
EXTRA_ARGS= | ||
if test -f "$bundle_res/environment.sh"; then | ||
source "$bundle_res/environment.sh" | ||
fi | ||
|
||
# Strip out the argument added by the OS. | ||
if [ "x`echo "x$1" | sed -e "s/^x-psn_.*//"`" == "x" ]; then | ||
shift 1 | ||
fi | ||
|
||
|
||
$EXEC "$bundle_contents/MacOS/Meld-bin" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
curl -O https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh | ||
|
||
sh gtk-osx-build-setup.sh | ||
|
||
ln -sf $PWD/jhbuildrc-custom ~/.jhbuildrc-custom | ||
jhbuild bootstrap && jhbuild | ||
|
||
curl --continue-at - -L http://ftp.cc.uoc.gr/mirrors/linux/lfs/LFS/conglomeration/cups/cups-1.2.12-source.tar.bz2 -o /Users/yousseb/gtk/source/pkgs/cups-1.2.12-source.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/sh | ||
|
||
#jhbuild bootstrap ; jhbuild; jhbuild build gtk-mac-integration; jhbuild | ||
#jhbuild -m osx/meld.modules build meld-python-deps | ||
#jhbuild shell | ||
#easy_install pip | ||
#pip install pygtksourceview | ||
|
||
|
||
python setup_py2app.py build | ||
python setup_py2app.py py2app | ||
|
||
APP="dist/Meld.app" | ||
MAIN="$APP/" | ||
RES="$MAIN/Contents/Resources/" | ||
|
||
mkdir -p $RES/share/icons | ||
cp -R ~/gtk/inst/share/icons/Tango $RES/share/icons | ||
#cp -R ~/gtk/inst/share/icons/hicolor $RES/share/icons | ||
cp -R data/icons/* $RES/share/icons | ||
|
||
mkdir -p $RES/share/themes | ||
cp -R ~/gtk/inst/share/themes/Clearlooks/ $RES/share/themes/Clearlooks | ||
cp -R ~/gtk/inst/share/themes/Mac/ $RES/share/themes/Mac | ||
|
||
cp -R ~/gtk/inst/share/gtksourceview-2.0 $RES/share | ||
|
||
mkdir -p $RES/etc/gtk-2.0 | ||
mkdir -p $RES/etc/pango | ||
mkdir -p $RES/etc/xdg | ||
cp -R osx/gtkrc $RES/etc/gtk-2.0 | ||
cp -R osx/pangorc $RES/etc/pango | ||
|
||
mkdir -p $RES/lib | ||
|
||
cp -R ~/gtk/inst/lib/girepository-1.0 $RES/lib | ||
cp -R ~/gtk/inst/lib/gtk-2.0 $RES/lib | ||
|
||
mv $MAIN/Contents/MacOS/Meld $MAIN/Contents/MacOS/Meld-bin | ||
cp -R osx/Meld $MAIN/Contents/MacOS | ||
chmod +x $MAIN/Contents/MacOS/Meld | ||
#cp -R ~/gtk/inst/lib/pango $RES/lib | ||
|
||
hdiutil create -size 250m -fs HFS+ -volname "Meld Merge" myimg.dmg | ||
hdiutil attach myimg.dmg | ||
DEVS=$(hdiutil attach myimg.dmg | cut -f 1) | ||
DEV=$(echo $DEVS | cut -f 1 -d ' ') | ||
rsync -avzh $APP /Volumes/Meld\ Merge/ | ||
pushd . | ||
cd /Volumes/Meld\ Merge/ | ||
ln -sf /Applications "Drag Meld Here" | ||
popd | ||
cp osx/DS_Store /Volumes/Meld\ Merge/.DS_Store | ||
hdiutil detach $DEV | ||
hdiutil convert myimg.dmg -format UDZO -o meldmerge.dmg | ||
|
||
|
||
|
||
|
||
|
||
#http://mirror.pnl.gov/macports/release/ports/net/deluge/files/patch-remove-osx-native-menus.diff | ||
#and gtk.gdk.WINDOWING == "quartz": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
gtk-icon-theme-name = "Tango" | ||
#gtk-font-name = "DejaVa Sans 9" | ||
gtk-theme-name = "ClearLooks" | ||
gtk-enable-mnemonics = 0 | ||
gtk-toolbar-style = GTK_TOOLBAR_ICONS | ||
|
||
|
||
style "meld-color-scheme" | ||
{ | ||
color["insert-bg"] = "DarkSeaGreen1" | ||
color["insert-outline"] = shade(0.8, @insert-bg) | ||
color["insert-text"] = "#008800" | ||
|
||
color["delete-bg"] = "White" | ||
color["delete-outline"] = shade(0.8, @delete-bg) | ||
color["delete-text"] = "#880000" | ||
|
||
color["replace-bg"] = "#ddeeff" | ||
color["replace-outline"] = shade(0.8, @replace-bg) | ||
color["replace-text"] = "#0044dd" | ||
|
||
color["conflict-bg"] = "Pink" | ||
color["conflict-outline"] = shade(0.8, @conflict-bg) | ||
color["conflict-text"] = "#ff0000" | ||
|
||
color["error-bg"] = "#fce94f" | ||
color["error-outline"] = shade(0.8, @error-bg) | ||
color["error-text"] = "#faad3d" | ||
|
||
color["inline-bg"] = "LightSteelBlue2" | ||
color["inline-fg"] = "Red" | ||
|
||
color["unknown-text"] = "#888888" | ||
|
||
color["current-line-highlight"] = "#ffff00" | ||
|
||
color["syncpoint-outline"] = "#555555" | ||
|
||
color["current-chunk-highlight"] = "#ffffff" | ||
} | ||
widget "meldapp.*" style : lowest "meld-color-scheme" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- mode: python -*- | ||
|
||
#prefix = "/opt/gtk" | ||
checkoutroot = os.path.expanduser("~/Source/gtk") | ||
|
||
setup_sdk(target="10.7", sdk_version="10.10", architectures=["x86_64"]) | ||
#setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"]) | ||
|
||
_gtk_osx_use_jhbuild_python = True | ||
|
||
skip.append("libiconv") # Lion issues | ||
skip.append("cups") | ||
|
||
modules = [ | ||
"python", | ||
"meta-gtk-osx-bootstrap", | ||
"meta-gtk-osx-core", | ||
"gtk-mac-integration", | ||
"librsvg", "libglade", | ||
"meta-gtk-osx-python", | ||
"meta-gtk-osx-themes", | ||
"gtksourceview" | ||
] | ||
|
||
autogenargs='--disable-static --disable-gtk-doc --disable-documentation ' + \ | ||
'--disable-docs --enable-introspection' | ||
|
||
module_autogenargs['cmake'] = ''# + autogenargs | ||
module_autogenargs['zlib'] = ''# + autogenargs | ||
module_autogenargs['gdk-pixbuf'] = '--with-included-loaders ' + autogenargs | ||
module_autogenargs['pygobject'] = '--disable-introspection --disable-docs --enable-cairo ' | ||
module_autogenargs['gtk-quartz-engine'] = 'CFLAGS=-Wuninitialized ' + autogenargs | ||
module_autogenargs['openssl'] = ''# + autogenargs | ||
module_autogenargs['pango'] = "--with-included-modules " + autogenargs | ||
#module_autogenargs['gtk+'] = '--with-included-immodules ' + autogenargs | ||
module_autogenargs['gtk+'] = ' --disable-papi --disable-cups ' + autogenargs | ||
module_autogenargs['gtk-engines'] = "--disable-all --enable-clearlooks --enable-animation " + autogenargs | ||
module_autogenargs['gtksourceview'] = '' #--disable-nls ' + autogenargs | ||
module_autogenargs['gtk-mac-integration'] = '' #'CFLAGS="$CFLAGS -mmacosx-version-min=10.7" ' + autogenargs | ||
|
||
|
||
#`pkg-config gtk+-quartz-2.0 --libs` -L"../Frameworks" | ||
|
||
#module_autogenargs['gtk+-3.0'] = '--with-included-immodules ' + autogenargs | ||
|
||
|
||
# Can be usefull when tweaking modulesets to avoid jhbuild overwriting: | ||
#nonetwork=True | ||
|
Binary file not shown.
Oops, something went wrong.
90a8ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No comments, just wanted to say thank you to @yousseb for adding this build for Mac. Much easier than the alternative install methods.
90a8ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for the installation process to check if git is installed, so that it will add itself to the difftool and mergetool list?
90a8ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mechiris Thank you for the nice words. :)
90a8ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@babycaseny I don't have much experience on that part. Do you have any pointers that I can use to do so?