File qemacs.patch of Package qemacs

diff -Nru qemacs-0.3.1.orig/Makefile qemacs-0.3.1/Makefile
--- qemacs-0.3.1.orig/Makefile	2003-04-30 18:20:44.000000000 +0200
+++ qemacs-0.3.1/Makefile	2003-04-30 21:22:47.000000000 +0200
@@ -190,15 +190,18 @@
 	rm -f config.h config.mak
 
 install: qe qe.1 kmaps ligatures html2png
-	install -m 755 qe $(prefix)/bin/qemacs
-	ln -sf qemacs $(prefix)/bin/qe
+	mkdir -p $(DESTDIR)/$(prefix)/bin
+	install -m 755 qe $(DESTDIR)/$(prefix)/bin/qemacs
+	ln -sf qemacs $(DESTDIR)/$(prefix)/bin/qe
 ifdef CONFIG_FFMPEG
-	ln -sf qemacs $(prefix)/bin/ffplay
+	ln -sf qemacs $(DESTDIR)/$(prefix)/bin/ffplay
 endif
-	mkdir -p $(prefix)/share/qe
-	install kmaps ligatures $(prefix)/share/qe
-	install qe.1 $(prefix)/man/man1
-	install -m 755 -s html2png $(prefix)/bin
+	mkdir -p $(DESTDIR)/$(prefix)/share/qe
+	install kmaps ligatures $(DESTDIR)/$(prefix)/share/qe
+	mkdir -p $(DESTDIR)/$(prefix)/share/man/man1
+	install qe.1 $(DESTDIR)/$(prefix)/share/man/man1
+	install qemacs.1 $(DESTDIR)/$(prefix)/share/man/man1
+	install -m 755 html2png $(DESTDIR)/$(prefix)/bin
 
 TAGS: force
 	etags *.[ch]
diff -Nru qemacs-0.3.1.orig/configure qemacs-0.3.1/configure
--- qemacs-0.3.1.orig/configure	2003-04-30 18:20:45.000000000 +0200
+++ qemacs-0.3.1/configure	2003-04-30 21:22:07.000000000 +0200
@@ -311,7 +311,7 @@
 head $source_path/VERSION >>config.mak
 echo "" >>config.mak
 echo -n "#define QE_VERSION \"" >> $TMPH
-head $source_path/VERSION >> $TMPH
+head $source_path/VERSION | tr --delete '\n' >> $TMPH
 echo "\"" >> $TMPH
 if test "$network" = "yes" ; then
   echo "#define CONFIG_NETWORK 1" >> $TMPH
diff -Nru qemacs-0.3.1.orig/qemacs.1 qemacs-0.3.1/qemacs.1
--- qemacs-0.3.1.orig/qemacs.1	1970-01-01 01:00:00.000000000 +0100
+++ qemacs-0.3.1/qemacs.1	2003-04-30 21:22:27.000000000 +0200
@@ -0,0 +1 @@
+.so man1/qe.1
--- qemacs-0.3.1.orig/qe.c 2003-04-22 00:01:42.000000000 +0200
+++ qemacs-0.3.1/qe.c	2003-05-02 16:05:14.000000000 +0200
@@ -3574,6 +3574,11 @@
     QEFont *font;
     CSSRect rect;
 
+    if ((width * height) == 0) {
+	    printf("%s\n", str);
+	    return;
+    }
+    
     len = utf8_to_unicode(ubuf, sizeof(ubuf) / sizeof(ubuf[0]), str);
     get_style(NULL, &style, style_index);
 
@@ -6391,10 +6397,10 @@
 
     qe_event_init();
 
-    put_status(s, "QEmacs %s - Press F1 for help", QE_VERSION);
-
     do_refresh(s);
 
+    put_status(s, "QEmacs %s - Press F1 for help", QE_VERSION);
+
     /* load file(s) */
     for(i=optind;i<argc;i++) {
         do_load(s, argv[i]);
openSUSE Build Service is sponsored by