https://www.gramps-project.org/wiki/api.php?action=feedcontributions&user=Haugen+Haus&feedformat=atomGramps - User contributions [en]2024-03-28T17:24:55ZUser contributionsMediaWiki 1.31.3https://www.gramps-project.org/wiki/index.php?title=File:Gramps.zip&diff=1740File:Gramps.zip2007-03-28T12:24:44Z<p>Haugen Haus: </p>
<hr />
<div>An OS X style bundle (.app) for a double clickable native application.</div>Haugen Haushttps://www.gramps-project.org/wiki/index.php?title=Mac_OS_X:Build_from_source:Native_OS_X&diff=1739Mac OS X:Build from source:Native OS X2007-03-28T12:19:46Z<p>Haugen Haus: </p>
<hr />
<div>[[Category:Developers/Packaging]]<br />
== 2.2.x series (Native PPC only) ==<br />
<br />
Gramps on OSX native does just about work. It is not as functional as the X11 version (see ) but it does require less dependencies.<br />
<br />
=== Caveats ===<br />
<br />
* As far as I know I am the only person ever to have got this to work (let me know if you know different: rjt-gramps (at) thegrindstone.me.uk)<br />
* If you loose your database don't blame me.<br />
* This is in no way a supported port.<br />
<br />
'''Note: there is no compiling or any scary geekery necessary to make this work!'''<br />
<br />
<br />
<br />
=== Installing dependencies ===<br />
<br />
You will need gtk and pygtk and these in turn require Python 2.4.4. The only packaged builds of pygtk/gtk that I know of are at: [http://sourceforge.net/project/showfiles.php?group_id=175176 http://sourceforge.net/project/showfiles.php?group_id=175176] , these are only for PPC. If you know of any other packaged builds please let me know. The lack of a universal binary package is the only reason why these instructions will not work on Intel Macs.<br />
<br />
* install MacPython 2.4.4 from: [http://www.python.org/download/releases/2.4.4/ http://www.python.org/download/releases/2.4.4/]<br />
* install "1.1 (with Glade) for python2.4" from [http://sourceforge.net/project/showfiles.php?group_id=175176 http://sourceforge.net/project/showfiles.php?group_id=175176] <br />
<br />
<br />
=== Patching gramps ===<br />
<br />
Once you unpack gramps you need to make one small change. The pygtk build has a broken cairo so you need to turn off the cairo support in the Pedigree view, otherwise bad things happen.<br />
<br />
cd src/DataViews<br />
<br />
edit _PedigreeView.py, remove the following lines:<br />
<br />
try:<br />
import cairo<br />
cairo_available = True<br />
except:<br />
cairo_available = False<br />
<br />
replace them with:<br />
<br />
cairo_available = False<br />
<br />
<br />
=== Running ===<br />
<br />
To run GRAMPS from the terminal you need to do the following:<br />
<br />
cd src/<br />
python gramps.py<br />
<br />
If you would rather have an OS X style bundle (.app) you may follow these steps:<br />
<br />
* Using Script Editor save the following AppleScript as an application bundle<br />
<br />
<pre>tell application "Terminal"<br/><br />
do script "Python /Applications/Gramps.app/Contents/Resources/src/gramps.py"<br/><br />
end tell<br/><br />
tell application "System Events"<br/><br />
set visible of process "Terminal" to false<br/><br />
end tell</pre><br />
<br />
Or, you may download this readymade bundle - [[Media:Gramps.zip|Gramps.app]].<br />
<br />
* Then, copy the "src" directory from the GRAMPS source code to the Resources directory of Gramps.app.<br />
<br />
That is it. This can be used like any other application. However, unless you change the path in the script the bundle must reside in /Applications.<br />
<br />
=== Issues ===<br />
<br />
I had to export my database from my existing fink based install into gramps XML format and then import it into the native version. I doubt that the two versions will coexist very nicely.<br />
Many things don't work. I know that drag and drop does not work, there are issues with mouse click on menus going missing and anything that calls an external programme will not work e.g. help etc.</div>Haugen Haushttps://www.gramps-project.org/wiki/index.php?title=Mac_OS_X:Build_from_source:Native_OS_X&diff=1738Mac OS X:Build from source:Native OS X2007-03-28T12:13:51Z<p>Haugen Haus: /* Running */</p>
<hr />
<div>[[Category:Developers/Packaging]]<br />
== 2.2.x series (Native PPC only) ==<br />
<br />
Gramps on OSX native does just about work. It is not as functional as the X11 version (see ) but it does require less dependencies.<br />
<br />
=== Caveats ===<br />
<br />
* As far as I know I am the only person ever to have got this to work (let me know if you know different: rjt-gramps (at) thegrindstone.me.uk)<br />
* If you loose your database don't blame me.<br />
* This is in no way a supported port. <br />
<br />
<br />
=== Installing dependencies ===<br />
<br />
You will need gtk and pygtk and these in turn require Python 2.4.4. The only packaged builds of pygtk/gtk that I know of are at: [http://sourceforge.net/project/showfiles.php?group_id=175176 http://sourceforge.net/project/showfiles.php?group_id=175176] , these are only for PPC. If you know of any other packaged builds please let me know. The lack of a universal binary package is the only reason why these instructions will not work on Intel Macs.<br />
<br />
* install MacPython 2.4.4 from: [http://www.python.org/download/releases/2.4.4/ http://www.python.org/download/releases/2.4.4/]<br />
* install "1.1 (with Glade) for python2.4" from [http://sourceforge.net/project/showfiles.php?group_id=175176 http://sourceforge.net/project/showfiles.php?group_id=175176] <br />
<br />
<br />
=== Patching gramps ===<br />
<br />
Once you unpack gramps you need to make one small change. The pygtk build has a broken cairo so you need to turn off the cairo support in the Pedigree view, otherwise bad things happen.<br />
<br />
cd src/DataViews<br />
<br />
edit _PedigreeView.py, remove the following lines:<br />
<br />
try:<br />
import cairo<br />
cairo_available = True<br />
except:<br />
cairo_available = False<br />
<br />
replace them with:<br />
<br />
cairo_available = False<br />
<br />
<br />
=== Running ===<br />
<br />
To run GRAMPS from the terminal you need to do the following:<br />
<br />
cd src/<br />
python gramps.py<br />
<br />
If you would rather have an OS X style bundle (.app) you may follow these steps:<br />
<br />
'''•''' Using Script Editor save the following AppleScript as an application bundle<br />
<br />
<pre>tell application "Terminal"<br/><br />
do script "Python /Applications/Gramps.app/Contents/Resources/src/gramps.py"<br/><br />
end tell<br/><br />
tell application "System Events"<br/><br />
set visible of process "Terminal" to false<br/><br />
end tell</pre><br />
<br />
Or, you may download this readymade bundle - [[Media:Gramps.zip|Gramps.app]].<br />
<br />
'''•''' Then, copy the "src" directory from the GRAMPS source code to the Resources directory of Gramps.app.<br />
<br />
That is it. This can be used like any other application. However, unless you change the path in the script the bundle must reside in /Applications.<br />
<br />
'''Note: there is no compiling or anything scary or geeky necessary to make this work!'''<br />
<br />
=== Issues ===<br />
<br />
I had to export my database from my existing fink based install into gramps XML format and then import it into the native version. I doubt that the two versions will coexist very nicely.<br />
Many things don't work. I know that drag and drop does not work, there are issues with mouse click on menus going missing and anything that calls an external programme will not work e.g. help etc.</div>Haugen Haushttps://www.gramps-project.org/wiki/index.php?title=File:Gramps.zip&diff=1737File:Gramps.zip2007-03-28T11:48:01Z<p>Haugen Haus: An Apple style bundle (.app) for a double clickable native application.</p>
<hr />
<div>An Apple style bundle (.app) for a double clickable native application.</div>Haugen Haus