Difference between revisions of "Mac OS X:Build from source:fink:local"

From Gramps
Jump to: navigation, search
m (make the introduction the introduction)
m (moved Mac OS X fink local to Mac OS X:Build from source:fink:local: Structure the Mac OS pages)
(No difference)

Latest revision as of 13:10, 24 February 2012

These instructions are for installing GRAMPS 3.0.1 on Mac OS X 10.5 (Leopard) using the "local/main" fink tree rather than "stable" or "unstable".

Do not use these instructions. Please install the latest version of gramps using the unstable tree of fink.


Installation Instructions

Install X11

Install Xcode

Install fink from source

Configure fink

[[email protected] ~]$ cat /sw/etc/fink.conf
# Fink configuration, initially created by bootstrap
Basepath: /sw
RootMethod: sudo
Trees: local/main stable/main stable/crypto unstable/main
Distribution: 10.5
SelfUpdateTrees: 10.4
ConfFileCompatVersion: 1
Mirror-apache: http://www.apache.org/dist
Mirror-apt: http://msn.wi.us.finkmirrors.net/mirrors/fink/finkbindist/bindist
Mirror-cpan: ftp://ftp.cpan.org/pub/CPAN
Mirror-ctan: ftp://tug.ctan.org/tex-archive
Mirror-debian: ftp://ftp.debian.org/debian
Mirror-freebsd: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles
Mirror-gimp: ftp://ftp.gimp.org/pub/gimp
Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME
Mirror-gnu: ftp://ftp.gnu.org/gnu
Mirror-kde: ftp://ftp.kde.org/pub/kde
Mirror-master: http://distfiles.msn.wi.us.finkmirrors.net/mirrors/fink/distfiles/
Mirror-rsync: rsync://msn.wi.us.finkmirrors.net/finkinfo/
Mirror-sourceforge: http://west.dl.sourceforge.net/sourceforge/
MirrorContinent: nam
MirrorCountry: nam-us
MirrorOrder: MasterFirst
ProxyPassiveFTP: true
UseBinaryDist: false
Verbose: 1
SelfUpdateMethod: rsync
[[email protected] ~]$

Create local gramps.info file

[[email protected] ~]$ cat /sw/fink/dists/local/main/finkinfo/gramps.info 
Package: gramps
Version: 3.0.1
Revision: 1
Distribution: 10.3, 10.4, 10.5
Source: mirror:sourceforge:%n/%n-%v.tar.gz  
Source-MD5: 95109ffa408bd16870885b4627f357ae
Patch: gramps.patch
BuildDepends: pkgconfig (>= 0.15.0-2), imlib2, orbit2-dev, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, scrollkeeper,  pygobject2-py25-dev, pygtk2-gtk-py25-dev, dbus-dev (>= 0.60-1), libhowl-dev, gnome-vfs2-unified-dev, glib2-dev (>= 2.12.0-1), libbonobo2-dev, gnome-python2-py25-dev
Depends: python25, gnome-python2-py25, pygobject2-py25, pygtk2-gtk-py25, imlib2-shlibs, reportlab-py25, pil-py25, libbonobo2-shlibs, glib2-shlibs (>= 2.12.0-1), gnome-vfs2-unified-shlibs, orbit2
ConfigureParams: --libdir='%p/lib'  --bindir='%p/bin' --mandir=%p/share/man
CompileScript: <<
export PYTHON='%p/bin/python2.5'; ./configure %c
PostInstScript: scrollkeeper-rebuilddb
License: GPL
Description: Genealogy software for GNOME/GTK 2
DescDetail: <<
Current Features
* GEDCOM import and export
* Merge capability
* Display filters
* Web page generation using a built-in template or a user defined template
* Unlimited bookmarks
* Soundex generator
* Relationship calculator
Uses reportlab and pil for generating reports.
Maintainer: Ben Hines <[email protected]>
Homepage: http://gramps.sf.net/
[[email protected] ~]$

Create local gramps.patch file

[[email protected] ~]$ cat /sw/fink/dists/local/main/finkinfo/gramps.patch 
diff -Naur gramps-3.0.1-old/configure gramps-3.0.1/configure
--- gramps-3.0.1-old/configure	2008-05-17 16:33:13.000000000 -0400
+++ gramps-3.0.1/configure	2008-06-11 14:47:02.000000000 -0400
@@ -6565,7 +6565,7 @@
     # Do not import gnome.ui, this can kill python if the
     # display cannot be opened.  Just search it.
     import imp
-    imp.find_module('gnome/ui')
+    imp.find_module('ui',gnome.__path__)
 except ImportError:
@@ -6592,7 +6592,7 @@
     # Do not import gtk.glade, this can raise a RuntimeError if the
     # display cannot be opened.  Just search it.
     import imp
-    imp.find_module('gtk/glade')
+    imp.find_module('glade',[imp.find_module('gtk')[1]])
 except ImportError:
[[email protected] ~]$

Install GRAMPS

[[email protected] ~]$ fink selfupdate
[[email protected] ~]$ fink -b install gramps
[[email protected] ~]$ fink -b install gnome-doc-utils
[[email protected] ~]$ fink -b install gramps
[[email protected] ~]$


[[email protected] ~]$ gramps

Launch GRAMPS from Terminal and it will open in X11.