summaryrefslogtreecommitdiff
path: root/app-misc/gramps/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/gramps/files')
-rw-r--r--app-misc/gramps/files/gramps-4.2.4-resourcepath.patch11
-rw-r--r--app-misc/gramps/files/gramps-4.2.4-versioned_doc_dir.patch15
2 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/gramps/files/gramps-4.2.4-resourcepath.patch b/app-misc/gramps/files/gramps-4.2.4-resourcepath.patch
new file mode 100644
index 00000000000..4c1f6920cbb
--- /dev/null
+++ b/app-misc/gramps/files/gramps-4.2.4-resourcepath.patch
@@ -0,0 +1,11 @@
+--- a/setup.py 2016-09-04 14:44:02.000000000 +0000
++++ b/setup.py 2016-09-22 12:21:52.496968618 +0000
+@@ -278,7 +278,7 @@
+ if packaging:
+ path = resource_path
+ else:
+- path = os.path.abspath(os.path.join(self.install_data, 'share'))
++ path = '/usr/share'
+ fp.write(path)
+
+ _install.run(self)
diff --git a/app-misc/gramps/files/gramps-4.2.4-versioned_doc_dir.patch b/app-misc/gramps/files/gramps-4.2.4-versioned_doc_dir.patch
new file mode 100644
index 00000000000..3d1ea8cb87c
--- /dev/null
+++ b/app-misc/gramps/files/gramps-4.2.4-versioned_doc_dir.patch
@@ -0,0 +1,15 @@
+--- a/setup.py 2016-09-04 14:44:02.000000000 +0000
++++ b/setup.py 2016-09-22 13:08:33.188167127 +0000
+@@ -436,9 +436,9 @@
+ CSS_FILES = glob.glob(os.path.join('data', 'css', '*.css'))
+ SWANKY_PURSE = glob.glob(os.path.join('data', 'css', 'swanky-purse', '*.css'))
+ SWANKY_IMG = glob.glob(os.path.join('data', 'css', 'swanky-purse', 'images', '*.png'))
+-data_files_core.append(('share/doc/gramps', DOC_FILES))
+-data_files_core.append(('share/doc/gramps/example/gedcom', GEDCOM_FILES))
+-data_files_core.append(('share/doc/gramps/example/gramps', GRAMPS_FILES))
++data_files_core.append(('share/doc/gramps-' + VERSION, DOC_FILES))
++data_files_core.append(('share/doc/gramps-' + VERSION + '/example/gedcom', GEDCOM_FILES))
++data_files_core.append(('share/doc/gramps-' + VERSION + '/example/gramps', GRAMPS_FILES))
+ data_files_core.append(('share/gramps/images/webstuff', IMAGE_WEB))
+ data_files_core.append(('share/gramps/css', CSS_FILES))
+ data_files_core.append(('share/gramps/css/swanky-purse', SWANKY_PURSE))