Skip to content

Commit 3956f65

Browse files
author
Youssef Abou-Kewik
committed
Almost done packaging OSX for v3
1 parent a09885f commit 3956f65

5 files changed

Lines changed: 7 additions & 82 deletions

File tree

osx/Meld

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export XDG_DATA_DIRS="$bundle_data"
2626
export GTK_DATA_PREFIX="$bundle_res"
2727
export GTK_EXE_PREFIX="$bundle_res"
2828
export GTK_PATH="$bundle_res"
29-
<<<<<<< HEAD
3029
export GSETTINGS_SCHEMA_DIR="$bundle_res"/share/glib-2.0
31-
=======
32-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
3330

3431
export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
3532
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
@@ -80,8 +77,4 @@ if [ "x`echo "x$1" | sed -e "s/^x-psn_.*//"`" == "x" ]; then
8077
fi
8178

8279

83-
<<<<<<< HEAD
8480
$EXEC "$bundle_contents/MacOS/Meld-bin" "$@"
85-
=======
86-
$EXEC "$bundle_contents/MacOS/Meld-bin" "$@"
87-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b

osx/README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Meld for OS X #
22

3-
This README should help you build Meld for OS X.
3+
This README should help you build Meld for OS X.
44

55
*NOTE:* The latest OSX meld is still broken. You may want to switch to the 1.8 branch. I think I need a couple of nights to get this to work. The good new is: I can run it from within the dev environment. The bad news is: Packaging it is not a walk in the park...
66

@@ -10,16 +10,13 @@ This README should help you build Meld for OS X.
1010
JHBuild is the build system that we will be using to build Meld. This step should really be done once and further builds should not require updating the build environment unless there has been some updates to the libraries that you'd like to do.
1111

1212
---
13-
<<<<<<< HEAD
1413
#### Preparation ####
1514

1615
To ensure that we don't hit some issue with python not able to determine locales on OSX, let's do the following
1716
```
1817
export LC_ALL=en_US.UTF-8
1918
export LANG=en_US.UTF-8
2019
```
21-
=======
22-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
2320

2421
#### Initial Phase ####
2522

@@ -46,42 +43,30 @@ jhbuild build python
4643

4744
4. Prepare paths and build the bootstrap
4845
```
49-
<<<<<<< HEAD
5046
alias jhbuild="PATH=~/.local/bin:$PATH jhbuild"
51-
=======
52-
alias jhbuild="PATH=gtk-prefix/bin:$PATH jhbuild"
53-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
5447
jhbuild bootstrap
5548
```
5649

5750
5. Checkout meld and start the initial phase
5851
```
5952
git clone https://github.com/yousseb/meld.git
6053
cd meld
61-
<<<<<<< HEAD
6254
# if building the 1.8 version, run: git checkout meld-1-8
63-
=======
64-
git checkout meld-1-8
65-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
6655
cd osx/
6756
ln -sf $PWD/jhbuildrc-custom ~/.jhbuildrc-custom
6857
cd ..
6958
jhbuild
7059
```
7160

72-
<<<<<<< HEAD
7361
6- 1.8 branch only: Fix the gtksourceview issues
74-
=======
75-
6- Fix the gtksourceview issues
76-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
7762
```
7863
ln -sf ~/gtk/inst/lib/pkgconfig/gtk-mac-integration-gtk2.pc ~/gtk/inst/lib/pkgconfig/gtk-mac-integration.pc
7964
```
8065
```
8166
cp ~/Source/gtk/gtksourceview-2.10.5/tests/test-completion.c ~/Source/gtk/gtksourceview-2.10.5/tests/test-widget.c
8267
```
8368
Edit: ~/Source/gtk/gtksourceview-2.10.5/gtksourceview/gtksourceview-i18n.c
84-
Comment out:
69+
Comment out:
8570
```
8671
//if (quartz_application_get_bundle_id () != NULL)
8772
//{
@@ -98,19 +83,11 @@ jhbuild
9883
8. Build extra dependencies
9984
```
10085
jhbuild -m osx/meld.modules build meld-python-deps
101-
<<<<<<< HEAD
102-
jhbuild run easy_install py2app
103-
=======
10486
easy_install py2app
105-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
10687
```
10788

108-
9. You're now ready to build Meld.
89+
9. You're now ready to build Meld.
10990
```
110-
<<<<<<< HEAD
11191
chmod +x osx/build_app.sh
11292
jhbuild run osx/build_app.sh
113-
=======
114-
bash osx/build_app.sh
115-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
11693
```

osx/build_app.sh

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@
66
#easy_install pip
77
#pip install pygtksourceview
88

9-
<<<<<<< HEAD
109
jhbuild run python setup_py2app.py build
1110
jhbuild run python setup_py2app.py py2app
12-
=======
1311

1412
python setup_py2app.py build
1513
python setup_py2app.py py2app
16-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
1714

1815
APP="dist/Meld.app"
1916
MAIN="$APP/"
2017
RES="$MAIN/Contents/Resources/"
2118

2219
mkdir -p $RES/share/icons
2320
cp -R ~/gtk/inst/share/icons/Tango $RES/share/icons
24-
<<<<<<< HEAD
2521
mv $RES/share/icons/Tango $RES/share/icons/Adwaita
2622
cp -R data/icons/* $RES/share/icons
2723

@@ -35,41 +31,29 @@ cd $MAIN/Contents/MacOS
3531
ln -s ../Resources/share .
3632
popd
3733

38-
=======
3934
#cp -R ~/gtk/inst/share/icons/hicolor $RES/share/icons
4035
cp -R data/icons/* $RES/share/icons
41-
42-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
4336
mkdir -p $RES/share/themes
4437
cp -R ~/gtk/inst/share/themes/Clearlooks/ $RES/share/themes/Clearlooks
4538
cp -R ~/gtk/inst/share/themes/Mac/ $RES/share/themes/Mac
46-
47-
<<<<<<< HEAD
4839
cp -R ~/gtk/inst/share/gtksourceview-3.0 $RES/share
4940

5041
mkdir -p $RES/etc/gtk-3.0
5142
#mkdir -p $RES/etc/pango
5243
#mkdir -p $RES/etc/xdg
5344
cp -R osx/gtkrc $RES/etc/gtk-3.0
54-
=======
55-
cp -R ~/gtk/inst/share/gtksourceview-2.0 $RES/share
45+
cp -R ~/gtk/inst/share/gtksourceview-3.0 $RES/share
5646

57-
mkdir -p $RES/etc/gtk-2.0
47+
mkdir -p $RES/etc/gtk-3.0
5848
mkdir -p $RES/etc/pango
5949
mkdir -p $RES/etc/xdg
60-
cp -R osx/gtkrc $RES/etc/gtk-2.0
61-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
50+
cp -R osx/gtkrc $RES/etc/gtk-3.0
6251
cp -R osx/pangorc $RES/etc/pango
6352

6453
mkdir -p $RES/lib
65-
66-
<<<<<<< HEAD
6754
#cp -R ~/gtk/inst/lib/girepository-1.0 $RES/lib
6855
cp -R ~/gtk/inst/lib/gtk-3.0 $RES/lib
69-
=======
7056
cp -R ~/gtk/inst/lib/girepository-1.0 $RES/lib
71-
cp -R ~/gtk/inst/lib/gtk-2.0 $RES/lib
72-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
7357

7458
mv $MAIN/Contents/MacOS/Meld $MAIN/Contents/MacOS/Meld-bin
7559
cp -R osx/Meld $MAIN/Contents/MacOS

setup.cfg

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[py2app]
22
app = ['bin/meld']
3-
<<<<<<< HEAD
43
#arch = i386
54
iconfile = osx/meld.icns
65
site-packages = false
@@ -9,16 +8,4 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms
98
excludes = gtk-2.0
109
frameworks = CoreFoundation, Foundation, Python
1110
argv_emulation = True
12-
#resources = share/themes/Mac
13-
=======
14-
#arch = x86_64
15-
#arch = i386
16-
iconfile = osx/meld.icns
17-
site-packages = false
18-
#packages = gi, objc
19-
includes = Quartz, AppKit, Cocoa, glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
20-
gtkosx_application, gtk, gtksourceview2
21-
#resources = share/glib-2.0, share/icons
22-
#frameworks = CoreFoundation, Foundation, AppKit, libz.1.2.7.dylib
23-
argv_emulation = True
24-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
11+
#resources = share/themes/Mac

setup_py2app.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,10 @@
2424

2525
PLIST = {
2626
'CFBundleDocumentTypes': [
27-
<<<<<<< HEAD
2827
{
2928
'CFBundleTypeExtensions': ['scmdifftool'],
3029
'CFBundleTypeIconFile': 'DiffToolDocument',
3130
'CFBundleTypeName': 'Diff Tool',
32-
=======
33-
# Associate application with .xyz files
34-
{
35-
#'CFBundleTypeExtensions': ['xyz'],
36-
#'CFBundleTypeIconFile': 'xyz.icns',
37-
#'CFBundleTypeName': 'XYZ Project',
38-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
3931
'CFBundleTypeRole': 'Editor',
4032
'LSTypeIsPackage': True,
4133
},
@@ -45,11 +37,7 @@
4537
'CFBundleSignature': '???',
4638
'CFBundleVersion': VERSION_STRING,
4739
'LSPrefersPPC': FORCE_32_BIT,
48-
<<<<<<< HEAD
4940
'NSHumanReadableCopyright': u'Copyright © 205',
50-
=======
51-
'NSHumanReadableCopyright': u'Copyright © 2014',
52-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
5341
'CFBundleDisplayName': 'Meld',
5442
'CFBundleName': 'Meld',
5543
'NSHighResolutionCapable': True,
@@ -104,11 +92,7 @@
10492
['COPYING', 'NEWS']
10593
),
10694
('share/meld',
107-
<<<<<<< HEAD
10895
['data/gschemas.compiled']
109-
=======
110-
['data/gtkrc']
111-
>>>>>>> da87c5c4fffb10614d606301de670c7807f1f69b
11296
),
11397
('share/meld/icons',
11498
glob.glob("data/icons/*.png") +

0 commit comments

Comments
 (0)