* various: installation fixes

svn: r3196
This commit is contained in:
Don Allingham 2004-05-28 04:04:04 +00:00
parent 4caf81273c
commit affda15461
11 changed files with 111 additions and 7 deletions

View File

@ -1,3 +1,6 @@
2004-05-27 Don Allingham <dallingham@users.sourceforge.net>
* various: installation fixes
2004-05-26 Don Allingham <dallingham@users.sourceforge.net>
* Makefiles: updated for installation
* src/data/gnome-mime-application-x-gramps.png: new icon

View File

@ -1,5 +1,5 @@
%define ver 1.1.0
%define rel 0.CVS20040525
%define rel 0.CVS20040526
%define prefix /usr
%define localstatedir /var/lib
# Ensure that internal RPM macros for configure & makeinstall

View File

@ -1,5 +1,5 @@
%define ver 1.1.0
%define rel 0.CVS20040525
%define rel 0.CVS20040526
%define prefix /usr
%define localstatedir /var/lib
# Ensure that internal RPM macros for configure & makeinstall

View File

@ -6,7 +6,10 @@ pkgdata_DATA = gedcom.xml \
papersize.xml \
tips.xml \
gnome-mime-application-x-gramps.png \
gramps.svg
gramps.applications \
gramps.svg \
gramps.keys \
gramps.mime
EXTRA_DIST = $(pkgdata_DATA)
@ -14,15 +17,22 @@ install-data-local:
$(INSTALL) -d $(DESTDIR)$(prefix)/share/pixmaps
$(INSTALL_DATA) gramps.png $(DESTDIR)$(prefix)/share/pixmaps
$(INSTALL) -d $(DESTDIR)$(prefix)/share/gnome/apps/Applications
$(INSTALL_DATA) gramps.desktop $(DESTDIR)$(prefix)/share/gnome/apps/Applications
$(INSTALL_DATA) gramps.desktop $(DESTDIR)$(prefix)/share/applications
$(INSTALL) -d $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
$(INSTALL_DATA) gnome-mime-application-x-gramps.png $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
$(INSTALL) -d $(DESTDIR)$(prefix)/share/application-registry
$(INSTALL_DATA) gramps.applications $(DESTDIR)$(prefix)/share/application-registry
$(INSTALL) -d $(DESTDIR)$(prefix)/share/mime/packages
$(INSTALL_DATA) gramps.xml $(DESTDIR)$(prefix)/share/mime/packages
update-mime-database $(DESTDIR)$(prefix)/share/mime
$(INSTALL) -d $(DESTDIR)$(prefix)/share/mime-info
$(INSTALL_DATA) gramps.keys gramps.mime $(DESTDIR)$(prefix)/share/mime-info
uninstall-local:
-rm $(DESTDIR)$(prefix)/share/pixmaps/gramps.png
-rm $(DESTDIR)$(prefix)/share/gnome/apps/Applications/gramps.desktop
-rm $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-gramps.png
-rm $(DESTDIR)$(prefix)/share/mime-info/gramps.keys
-rm $(DESTDIR)$(prefix)/share/mime-info/gramps.mime
-rm $(DESTDIR)$(prefix)/share/mime/packages/gramps.xml

View File

@ -141,6 +141,7 @@ pkgdata_DATA = gedcom.xml \
papersize.xml \
tips.xml \
gnome-mime-application-x-gramps.png \
gramps.applications\
gramps.svg
EXTRA_DIST = $(pkgdata_DATA)
@ -453,9 +454,11 @@ install-data-local:
$(INSTALL) -d $(DESTDIR)$(prefix)/share/pixmaps
$(INSTALL_DATA) gramps.png $(DESTDIR)$(prefix)/share/pixmaps
$(INSTALL) -d $(DESTDIR)$(prefix)/share/gnome/apps/Applications
$(INSTALL_DATA) gramps.desktop $(DESTDIR)$(prefix)/share/gnome/apps/Applications
$(INSTALL_DATA) gramps.desktop $(DESTDIR)$(prefix)/share/applications
$(INSTALL) -d $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
$(INSTALL_DATA) gnome-mime-application-x-gramps.png $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
$(INSTALL) -d $(DESTDIR)$(prefix)/share/application-registry
$(INSTALL_DATA) gramps.applications $(DESTDIR)$(prefix)/share/application-registry
$(INSTALL) -d $(DESTDIR)$(prefix)/share/mime/packages
$(INSTALL_DATA) gramps.xml $(DESTDIR)$(prefix)/share/mime/packages
update-mime-database $(DESTDIR)$(prefix)/share/mime

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,7 @@
gramps
command=gramps
name=GRAMPS
can_open_multiple_files=false
expects_uris=false
requires_terminal=false
mime_types=application/x-gramps,application/x-gedcom

View File

@ -0,0 +1,10 @@
application/x-gramps:
description=GRAMPS database
default_action_type=appliction
short_list_application_ids=gramps
short_list_application_ids_for_novice_user_level=gramps
short_list_application_ids_for_intermediate_user_level=gramps
short_list_application_ids_for_advanced_user_level=gramps
category=Documents/Genealogy
icon-filename=/usr/share/gramps/gramps.png
open=gramps %f

View File

@ -0,0 +1,3 @@
application/x-gramps
ext: grdb

View File

@ -31390,4 +31390,64 @@
</child>
</widget>
<widget class="GtkWindow" id="splash">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">True</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">False</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<child>
<widget class="GtkVBox" id="vbox79">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkImage" id="image2024">
<property name="visible">True</property>
<property name="pixbuf">splash.jpg</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label396">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;span size=&quot;larger&quot;&gt;Starting GRAMPS...&lt;/span&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

View File

@ -58,6 +58,7 @@ import FamilyView
import SourceView
import PeopleView
import GenericFilter
import GrampsMime
import DisplayTrace
import const
import Plugins
@ -135,12 +136,20 @@ class Gramps:
GrampsCfg.loadConfig(self.pref_callback)
self.RelClass = Plugins.relationship_class
self.relationship = self.RelClass(self.db)
self.gtop = gtk.glade.XML(const.gladeFile, "gramps", "gramps")
self.init_interface()
if GrampsCfg.usetips:
TipOfDay.TipOfDay()
if args:
if args and len(args)==1:
if GrampsMime.get_type(args[0]) == "application/x-gramps":
if self.auto_save_load(args[0]) == 0:
DbPrompter.DbPrompter(self,0,self.topWindow)
else:
import ArgHandler
ArgHandler.ArgHandler(self,args)
elif args:
import ArgHandler
ArgHandler.ArgHandler(self,args)
elif GrampsCfg.lastfile and GrampsCfg.autoload:
@ -163,7 +172,6 @@ class Gramps:
widgets that it will need.
"""
self.gtop = gtk.glade.XML(const.gladeFile, "gramps", "gramps")
self.topWindow = self.gtop.get_widget("gramps")
self.report_button = self.gtop.get_widget("reports")