Mods for Gtk3, Gramps 4.0.0

svn: r20827
This commit is contained in:
John Ralls 2012-12-23 02:17:31 +00:00
parent 0a17eab461
commit 5526f64e1f
4 changed files with 82 additions and 51 deletions

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>Gramps</string> <string>Gramps</string>
<key>CFBundleGetInfoString</key> <key>CFBundleGetInfoString</key>
<string>Trunk, (C) 1997-2012 The Gramps Team http://www.gramps-project.org</string> <string>4.0.0-alpha1, (C) 1997-2012 The Gramps Team http://www.gramps-project.org</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>gramps.icns</string> <string>gramps.icns</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
@ -15,13 +15,13 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>4.0.0-alpha1</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>Trunk</string> <string>Trunk</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>Trunk</string> <string>4.0.0-alpha1</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Copyright 1997 - 2012 The Gramps Team, GNU General Public License.</string> <string>Copyright 1997 - 2012 The Gramps Team, GNU General Public License.</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>

View File

@ -6,6 +6,9 @@
<destination overwrite="yes">${env:HOME}/Desktop</destination> <destination overwrite="yes">${env:HOME}/Desktop</destination>
<run-install-name-tool/> <run-install-name-tool/>
<launcher-script>${project}/gramps.launcher</launcher-script > <launcher-script>${project}/gramps.launcher</launcher-script >
<!-- Indicate the active gtk version to use. This is needed only
for gtk+-3.0 projects. -->
<gtk>gtk+-3.0</gtk>
</meta> </meta>
<plist>${project}/Info.plist</plist> <plist>${project}/Info.plist</plist>
@ -27,23 +30,18 @@
<binary> <binary>
${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/ ${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/
</binary> </binary>
<!-- Copy in the theme engines. --> <!-- Copy in the input methods. Dunno if they actually work with OSX. -->
<binary> <binary>
${prefix}/lib/gtk-2.0/${pkg:gtk+-2.0:gtk_binary_version}/engines/*.so ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
</binary> </binary>
<!-- And the print backends --> <!-- And the print backends -->
<binary> <binary>
${prefix}/lib/gtk-2.0/${pkg:gtk+-2.0:gtk_binary_version}/printbackends/*.so ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
</binary> </binary>
<binary> <binary>
${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/pango-basic-fc.so ${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/*.so
</binary>
<!-- Copy in libpyglib, which will pull in other dependencies we need -->
<binary>
${prefix}/lib/libpyglib-2.0-python.0.dylib
</binary> </binary>
<binary recurse="True"> <binary recurse="True">
@ -59,15 +57,7 @@
</binary--> </binary-->
<binary> <binary>
${prefix}/lib/libgoocanvas.3.dylib ${prefix}/lib/libgtkmacintegration.2.dylib
</binary>
<binary>
${prefix}/lib/libgtkmacintegration.0.dylib
</binary>
<binary>
${prefix}/lib/libart_lgpl_2.2.dylib
</binary> </binary>
<binary> <binary>
@ -87,7 +77,7 @@
</binary> </binary>
<binary> <binary>
${prefix}/lib/libosmgpsmap.2.dylib ${prefix}/lib/libosmgpsmap.3.dylib
</binary> </binary>
<binary> <binary>
@ -110,7 +100,27 @@
want to copy in to the bundle. The "dest" attribute is want to copy in to the bundle. The "dest" attribute is
optional, as usual. Bundler will find all translations of that optional, as usual. Bundler will find all translations of that
library/program under the indicated directory and copy them.--> library/program under the indicated directory and copy them.-->
<translations name="gtk20"> <translations name="gtk30">
${prefix}/share/locale
</translations>
<translations name="gtk30-properties">
${prefix}/share/locale
</translations>
<translations name="glib20">
${prefix}/share/locale
</translations>
<translations name="gdk-pixbuf">
${prefix}/share/locale
</translations>
<translations name="atk10">
${prefix}/share/locale
</translations>
<translations name="gtkspell3">
${prefix}/share/locale ${prefix}/share/locale
</translations> </translations>
@ -121,6 +131,10 @@
<!-- We have to pull in the python modules, which are mixed python <!-- We have to pull in the python modules, which are mixed python
and loadable modules. --> and loadable modules. -->
<data>
${prefix}/share/glib-2.0/schemas
</data>
<data recurse="True"> <data recurse="True">
${prefix}/lib/python2.7/*.py ${prefix}/lib/python2.7/*.py
</data> </data>
@ -133,10 +147,6 @@
${prefix}/include/python2.7/pyconfig.h ${prefix}/include/python2.7/pyconfig.h
</data> </data>
<data>
${prefix}/share/gramps/
</data>
<!--data> <!--data>
${prefix}/share/webkit-1.0/ ${prefix}/share/webkit-1.0/
</data--> </data-->
@ -149,6 +159,18 @@
${prefix}/share/mime/ ${prefix}/share/mime/
</data> </data>
<data recurse="True">
${prefix}/lib/python2.7/site-packages/gramps/*.glade
</data>
<data>
${prefix}/lib/python2.7/site-packages/gramps/data/
</data>
<data recurse="True">
${prefix}/lib/python2.7/site-packages/gramps/images/*.png
</data>
<data> <data>
${prefix}/share/mime-info/ ${prefix}/share/mime-info/
</data> </data>
@ -171,15 +193,7 @@
${project}/gramps.icns ${project}/gramps.icns
</data> </data>
<!-- This is where theme commands go. You can copy them in from your <data dest="${bundle}/Contents/Resources/lib/python2.7/site-packages/gramps/data/gramps.accel">
theme of choice if they provide and example, or you can just
change the source path. -->
<data dest="${bundle}/Contents/Resources/etc/gtk-2.0/gtkrc">
${project}/gtkrc
</data>
<data dest="${bundle}/Contents/Resources/share/gramps/data/gramps.accel">
${project}/gramps.accel ${project}/gramps.accel
</data> </data>

View File

@ -21,9 +21,8 @@ export GTK_EXE_PREFIX="$bundle_res"
export GTK_PATH="$bundle_res" export GTK_PATH="$bundle_res"
export PANGO_RC_FILE="$bundle_etc/pango/pangorc" export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders" export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-3.0/gdk-pixbuf.loaders"
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules" export GTK_IM_MODULE_FILE="$bundle_etc/gtk-3.0/gtk.immodules"
export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
export GVBINDIR="$bundle_lib/graphviz" export GVBINDIR="$bundle_lib/graphviz"
@ -31,10 +30,8 @@ export GVBINDIR="$bundle_lib/graphviz"
PYVER=2.7 PYVER=2.7
export PYTHON="$bundle_contents/MacOS/python" export PYTHON="$bundle_contents/MacOS/python"
export PYTHONHOME="$bundle_res" export PYTHONHOME="$bundle_res"
PYTHONPATH="$bundle_lib/python$PYVER/site-packages/pyenchant-1.6.1-py$PYVER.egg:$PYTHONPATH"
export PYTHONPATH="$bundle_lib/python$PYVER/site-packages/gtk-2.0:$PYTHONPATH"
export GRAMPSDIR="$bundle_data"/gramps export GRAMPSDIR="$bundle_lib/python$PYVER/site-packages/gramps"
export GRAMPSI18N="$bundle_data"/locale export GRAMPSI18N="$bundle_data"/locale
export GRAMPSHOME="$HOME/Library/Application Support" export GRAMPSHOME="$HOME/Library/Application Support"
@ -42,5 +39,5 @@ export GRAMPSHOME="$HOME/Library/Application Support"
if /bin/expr "x$1" : '^x-psn_' > /dev/null; then if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
shift 1 shift 1
fi fi
exec "$PYTHON" -O "$GRAMPSDIR/gramps.py" "$@" exec "$PYTHON" -O "$bundle_contents/MacOS/Gramps-bin" "$@"

View File

@ -59,8 +59,8 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
<include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/> <!--include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/-->
<!--include href="/Users/john/Development/GTK-OSX/gtk-osx-build/modulesets-stable/gtk-osx.modules"/--> <include href="/Users/john/GTK-OSX/gtk-osx-build/modulesets-stable/gtk-osx.modules"/>
@ -81,6 +81,24 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
</after> </after>
</distutils> </distutils>
<distutils id="gramps-40">
<branch module="gramps/gramps-4.0.0-alpha1.tar.gz" version="4.0.0-alpha1"
repo="sourceforge"/>
<dependencies>
<dep package="meta-gtk-osx-python-gtk3"/>
<dep package="librsvg"/>
<dep package="shared-mime-info"/>
<dep package="hunspell"/>
<dep package="gtkspell3"/>
<dep package="osmgpsmap"/>
<dep package="graphviz"/>
<dep package="pil"/>
</dependencies>
<after>
<dep package="pyexiv2"/>
</after>
</distutils>
<distutils id="gramps-addons-svn"> <distutils id="gramps-addons-svn">
<branch module="gramps-addons/trunk/contrib" <branch module="gramps-addons/trunk/contrib"
repo="gramps-addons"/> repo="gramps-addons"/>
@ -127,17 +145,19 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
version="0.7.3"/> version="0.7.3"/>
<dependencies> <dependencies>
<dep package="osmgpsmap"/> <dep package="osmgpsmap"/>
<dep package="pygtk"/>
<dep package="pycairo-python2.6"/>
<dep package="pygobject"/>
</dependencies> </dependencies>
<after>
<dep package="pygtk"/>
<dep package="pygobject"/>
<dep package="pygobject3"/>
<dep package="pycairo-python2.6"/>
<dep package="pycairo-python3"/>
</after>
</distutils> </distutils>
<autotools id="graphviz" autogenargs="--disable-sharp --disable-guile --disable-java --disable-lua --disable-ocaml --disable-perl --disable-php --disable-r --disable-ruby --disable-tcl --with-pangocairo=yes --with-freetype2=no --with-fontconfig=no --with-included-ltdl=yes"> <autotools id="graphviz" autogenargs="--disable-sharp --disable-guile --disable-java --disable-lua --disable-ocaml --disable-perl --disable-php --disable-r --disable-ruby --disable-tcl --with-pangocairo=no --with-freetype2=no --with-fontconfig=no --with-included-ltdl=yes">
<branch module="graphviz-2.28.0.tar.gz" version="2.28.0" repo="graphviz"/> <branch module="graphviz-2.28.0.tar.gz" version="2.28.0" repo="graphviz"/>
<dependencies> <dependencies>
<dep package="meta-gtk-osx-freetype"/>
<dep package="pango"/>
<dep package="zlib"/> <dep package="zlib"/>
</dependencies> </dependencies>
</autotools> </autotools>