summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-09-28 14:00:14 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-09-28 14:03:15 +0100
commit94828070ed293043eefcde0ad179145c803eb6ef (patch)
tree48e05dd3efe09dbb4b0577ab0956cb40b3b45b7f /pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch
parentf3b8d82ce683d38d11f29a6b82de11fc6259d3a0 (diff)
downloadnixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar.gz
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar.bz2
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar.lz
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar.xz
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.tar.zst
nixlib-94828070ed293043eefcde0ad179145c803eb6ef.zip
ProofGeneral: makes the dependency on TeXLive optional
And fixes the default value of $PGHOME
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch')
-rw-r--r--pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch b/pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch
new file mode 100644
index 000000000000..c733911118de
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/proofgeneral/pg.patch
@@ -0,0 +1,16 @@
+diff -r c7d8bfff4c0a bin/proofgeneral
+--- a/bin/proofgeneral	Sat Sep 27 02:25:15 2014 +0100
++++ b/bin/proofgeneral	Sat Sep 27 02:28:16 2014 +0100
+@@ -73,11 +73,7 @@
+ 
+ # Try to find Proof General directory
+ if [ -z "$PGHOME" ] || [ ! -d "$PGHOME" ]; then
+-    # default relative to this script, otherwise PGHOMEDEFAULT
+-    MYDIR="`readlink --canonicalize "$0" | sed -ne 's,/bin/proofgeneral$,,p'`"
+-    if [ -d "$MYDIR" ]; then
+-	PGHOME="$MYDIR"
+-    elif [ -d "$PGHOMEDEFAULT" ]; then
++    if [ -d "$PGHOMEDEFAULT" ]; then
+ 	PGHOME="$PGHOMEDEFAULT"
+     else
+ 	echo "Cannot find the Proof General lisp files: Set PGHOME or use --pghome."