summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/nedit/files/nedit-5.3-gentoo.diff')
-rw-r--r--app-editors/nedit/files/nedit-5.3-gentoo.diff52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-editors/nedit/files/nedit-5.3-gentoo.diff b/app-editors/nedit/files/nedit-5.3-gentoo.diff
new file mode 100644
index 000000000000..f36e1e67b353
--- /dev/null
+++ b/app-editors/nedit/files/nedit-5.3-gentoo.diff
@@ -0,0 +1,52 @@
+diff -urN nedit-5.3.old/makefiles/Makefile.linux nedit-5.3/makefiles/Makefile.linux
+--- nedit-5.3.old/makefiles/Makefile.linux 2002-03-07 08:42:55.000000000 -0800
++++ nedit-5.3/makefiles/Makefile.linux 2003-01-19 17:45:32.000000000 -0800
+@@ -5,7 +5,7 @@
+ # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
+ # If using a Motif 2.1 compatible library (LessTif, OM) add
+ # a '-lXp' in front of the -lXext in LIBS. You also drop the
+-# -lXpm from that list.
++# from that list.
+ # Ensure that the Motif/LessTif headers and libs are found!
+ # e.g. you may have to add something like
+ # -I/usr/lesstif/include to CFLAGS and
+@@ -14,8 +14,8 @@
+ # To evaluate an alternative layout for the Replace/Find dialog, add
+ # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information.
+ #
+-CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
++CFLAGS=-O -I/usr/X11R6/include -D__LINUX__ -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
+ ARFLAGS=-urs
+-LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
++LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXext -lXt -lSM -lICE -lX11 -lm -lXmu
+
+ include Makefile.common
+diff -urN nedit-5.3.old/source/preferences.c nedit-5.3/source/preferences.c
+--- nedit-5.3.old/source/preferences.c 2002-05-16 00:53:09.000000000 -0700
++++ nedit-5.3/source/preferences.c 2003-01-19 17:44:57.000000000 -0800
+@@ -271,14 +271,14 @@
+ #ifndef VMS
+ #ifdef linux
+ {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
+- cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
++ cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
+ wc::w:ED:\nset wc=`wc`; echo $wc[1] \"lines,\" $wc[2] \"words,\" $wc[3] \"characters\"\n\
+ sort::o:EX:\nsort\nnumber lines::n:AW:\nnl -ba\nmake:Alt+Z:m:W:\nmake\n\
+ expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
+ &TempStringPrefs.shellCmds, NULL, True},
+ #elif __FreeBSD__
+ {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
+- cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
++ cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
+ wc::w:ED:\nset wc=`wc`; echo $wc[1] \"words,\" $wc[2] \"lines,\" $wc[3] \"characters\"\n\
+ sort::o:EX:\nsort\nnumber lines::n:AW:\npr -tn\nmake:Alt+Z:m:W:\nmake\n\
+ expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
+@@ -786,6 +786,8 @@
+ {"shell", "Shell", PREF_STRING,
+ #if defined(__MVS__) || defined(__EMX__)
+ "/bin/sh",
++#elif __LINUX__
++ "/bin/sh",
+ #else
+ "/bin/csh",
+ #endif