summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch')
-rw-r--r--sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch b/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch
new file mode 100644
index 000000000000..c04da305c144
--- /dev/null
+++ b/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch
@@ -0,0 +1,20 @@
+--- viewmol-2.4.1.orig/source/install 2004-10-09 08:38:31.000000000 -0700
++++ viewmol-2.4.1/source/install 2005-12-02 11:34:35.000000000 -0800
+@@ -71,7 +71,7 @@
+ find $ROOT/lib/viewmol -type d -exec chmod a+rx {} \;
+ sed 's/\/source//g' viewmolrc > $ROOT/lib/viewmol/viewmolrc
+ chmod -R 644 $ROOT/lib/viewmol/viewmolrc
+-if [ -d /usr/X11R6/lib/X11/app-defaults ]
++if [ -d $ROOT/X11R6/lib/X11/app-defaults ]
+ then
+ locale=`echo $LANG | cut -c1-2`
+ if [ "$locale" = "en" ]
+@@ -82,6 +82,6 @@
+ # The C locale is defined by default for rpm builds, overwrite it
+ locale="en_US"
+ fi
+- cp locale/${locale}/Viewmol /usr/X11R6/lib/X11/app-defaults
+- chmod a+r /usr/X11R6/lib/X11/app-defaults/Viewmol
++ cp locale/${locale}/Viewmol $ROOT/X11R6/lib/X11/app-defaults
++ chmod a+r $ROOT/X11R6/lib/X11/app-defaults/Viewmol
+ fi