Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2000 12:47:18 +0800 (CST)
From:      frankch@waru.life.nthu.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16596: upgrade ports/chinese/rxvt to 2.7.2
Message-ID:  <200002090447.MAA90954@waru.life.nthu.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         16596
>Category:       ports
>Synopsis:       Upgrade ports/chinese/rxvt to 2.7.2
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  9 03:30:21 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chen Hsiung Chan
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
Department of Life Science, National Tsing Hua University, Hsinchu, Taiwan
>Environment:

	
	FreeBSD 3.3-STABLE

>Description:

	
	The old distfile for rxvt 2.6.0 is moved.
	change distfile line and upgrade to 2.7.2

>How-To-Repeat:

	

>Fix:
	
	
	Apply the following patch.

diff -ruN rxvt.orig/Makefile rxvt/Makefile
--- rxvt.orig/Makefile	Wed Feb  9 12:42:34 2000
+++ rxvt/Makefile	Tue Feb  8 14:07:38 2000
@@ -6,11 +6,10 @@
 # $FreeBSD: ports/chinese/rxvt/Makefile,v 1.14 1999/08/25 04:57:59 obrien Exp $
 #
 
-DISTNAME=	rxvt-2.6.0
-PKGNAME=	zh-rxvt-2.6.0
+DISTNAME=	rxvt-2.7.2
+PKGNAME=	zh-rxvt-2.7.2
 CATEGORIES=	chinese x11
-MASTER_SITES=	ftp://mason.primenet.com.au/pub/rxvt/ \
-		ftp://ftp.rxvt.org/pub/rxvt/devel/
+MASTER_SITES=	ftp://ftp.rxvt.org/pub/rxvt/
 
 MAINTAINER=	frankch@waru.life.nthu.edu.tw
 
@@ -23,6 +22,6 @@
 
 CONFIGURE_ARGS+=--enable-xpm-background --enable-transparency \
 		--enable-menubar --enable-graphics --enable-xim \
-		--enable-big5 --disable-backspace-key --disable-delete-key
+		--enable-languages --with-encoding=big5
 
 .include <bsd.port.mk>
diff -ruN rxvt.orig/files/md5 rxvt/files/md5
--- rxvt.orig/files/md5	Wed Feb  9 12:42:33 2000
+++ rxvt/files/md5	Tue Feb  8 13:46:57 2000
@@ -1 +1 @@
-MD5 (rxvt-2.6.0.tar.bz2) = 8f6d86c2b76d7f2945d121191ef25158
+MD5 (rxvt-2.7.2.tar.bz2) = cce181764763ceb7c1d12a8b05c3ce2e
diff -ruN rxvt.orig/patches/patch-aa rxvt/patches/patch-aa
--- rxvt.orig/patches/patch-aa	Wed Feb  9 12:42:33 2000
+++ rxvt/patches/patch-aa	Tue Feb  8 14:11:15 2000
@@ -1,52 +1,42 @@
---- Makefile.in.orig	Mon Mar 29 13:31:37 1999
-+++ Makefile.in	Tue Jun 22 11:20:32 1999
+--- Makefile.in.orig	Tue Dec 21 18:07:54 1999
++++ Makefile.in	Tue Feb  8 14:01:20 2000
 @@ -9,7 +9,7 @@
  first_rule: all
  dummy:
  
--subdirs = src doc rclock src/graphics
+-subdirs = src doc rclock src/graphics src/test
 +subdirs = src doc src/graphics
  
  DIST =	INSTALL README.configure configure Makefile Makefile.in ChangeLog
  
---- doc/Makefile.in.orig	Tue Jun  8 17:53:55 1999
-+++ doc/Makefile.in	Tue Jun 22 11:23:47 1999
-@@ -55,7 +55,7 @@
+--- doc/Makefile.in.orig	Tue Sep 28 15:04:39 1999
++++ doc/Makefile.in	Tue Feb  8 14:02:31 2000
+@@ -56,7 +56,7 @@
  
  tags allbin:
  
 -alldoc:	$(basedir)/$(VERNAME).lsm rxvt.1 rxvt.html rxvtRef.html rxvtRef.txt
 +alldoc:	rxvt.1
  
- yodl/versioninfo.yo: yodl/versioninfo.yo.in ../autoconf/Make.common.in
+ yodl/versioninfo.yo: yodl/versioninfo.yo.in ../src/version.h
  	$(SED) $(SEDREPLACE) < $(srcdir)/yodl/versioninfo.yo.in > $@
-@@ -66,8 +66,7 @@
- rxvt.tbl: yodl/rxvt.yo $(YODL_RXVT) yodl/versioninfo.yo yodl/masonyodl.yo
- 	yodl2man -orxvt.tbl yodl/rxvt.yo
- 
--rxvt.1: rxvt.tbl Makefile
--	@if test x$(TBL) = x; then : ; else echo "Making rxvt.1"; $(TBL) $(srcdir)/rxvt.tbl > rxvt.1 ; fi
-+rxvt.1: 
- 
- rxvt.html: yodl/rxvt.yo $(YODL_RXVT) yodl/versioninfo.yo yodl/masonyodl.yo
- 	yodl2html -o$@ yodl/rxvt.yo
-@@ -87,7 +86,7 @@
+@@ -85,7 +85,7 @@
  distclean:
  
- install: rxvt.1
+ install:
 -	$(INSTALL_DATA) rxvt.1 $(DESTDIR)$(mandir)/$(manprefix)rxvt.$(manext)
-+	$(INSTALL_DATA) rxvt.1 $(DESTDIR)$(mandir)/$(manprefix)crxvt.$(manext)
++	$(INSTALL_DATA) rxvt.1 $(PREFIX)/man/man1/crxvt.1
  
  uninstall:
  	-cd $(mandir); $(RMF) $(manprefix)rxvt.$(manext)
---- src/Makefile.in.orig	Tue Jun 22 11:21:05 1999
-+++ src/Makefile.in	Tue Jun 22 11:21:17 1999
-@@ -98,7 +98,7 @@
+--- src/Makefile.in.orig	Tue Feb  8 14:03:35 2000
++++ src/Makefile.in	Tue Feb  8 14:04:10 2000
+@@ -97,7 +97,7 @@
  	(cd $(srcdir); $(RMF) Makefile)
  
  install: allbin alldoc
 -	$(INSTALL_PROGRAM) rxvt $(DESTDIR)$(bindir)/$(binprefix)rxvt
-+	$(INSTALL_PROGRAM) rxvt $(DESTDIR)$(bindir)/$(binprefix)crxvt
++	$(INSTALL_PROGRAM) rxvt $(PREFIX)/bin/crxvt
  
  uninstall:
  	(cd $(bindir); $(RMF) $(binprefix)rxvt)
diff -ruN rxvt.orig/patches/patch-ab rxvt/patches/patch-ab
--- rxvt.orig/patches/patch-ab	Wed Feb  9 12:42:34 2000
+++ rxvt/patches/patch-ab	Wed Feb  9 12:28:25 2000
@@ -1,6 +1,6 @@
---- src/main.c.orig	Fri Mar  5 12:26:41 1999
-+++ src/main.c	Fri Mar  5 12:30:58 1999
-@@ -453,6 +453,16 @@
+--- src/main.c.orig	Wed Feb  9 11:57:04 2000
++++ src/main.c	Wed Feb  9 12:02:43 2000
+@@ -460,6 +460,16 @@
  			       GCForeground | GCBackground |
  			       GCFont | GCGraphicsExposures,
  			       &gcvalue);
@@ -9,15 +9,15 @@
 +#ifdef MULTICHAR_SET
 +	gcvalue.font = TermWin.mfont->fid;
 +	TermWin.mgc = XCreateGC(Xdisplay, TermWin.vt,
-+			GCForeground | GCBackground |
-+			GCFont | GCGraphicsExposures,
-+			&gcvalue);
++			       GCForeground | GCBackground |
++			       GCFont | GCGraphicsExposures,
++			       &gcvalue);
 +#endif
 +#endif
      }
  }
  /* window resizing - assuming the parent window is the correct size */
-@@ -976,7 +986,11 @@
+@@ -969,7 +979,11 @@
  
  /* alter existing GC */
      if (!init) {
@@ -28,11 +28,11 @@
 +#endif
  	menubar_expose();
      }
- /* set the sizes */
---- src/rxvt.h.orig	Fri Mar  5 12:31:15 1999
-+++ src/rxvt.h	Fri Mar  5 12:42:25 1999
-@@ -8,6 +8,8 @@
- #include "../config.h"
+ 
+--- src/rxvt.h.orig	Wed Feb  9 12:01:07 2000
++++ src/rxvt.h	Wed Feb  9 12:04:17 2000
+@@ -7,6 +7,8 @@
+ 
  #include "feature.h"
  
 +#define FIX_ALIGNMENT
@@ -40,14 +40,15 @@
  /*
   *****************************************************************************
   * SYSTEM HACKS
-@@ -170,11 +172,18 @@
+@@ -170,12 +172,19 @@
+     Window          parent[KNOW_PARENTS], /* parent[0] is our window        */
  		    vt;		/* vt100 window                             */
      GC              gc;		/* GC for drawing text                      */
-     XFontStruct    *font;	/* main font structure                      */
 +#ifdef FIX_ALIGNMENT
 +    GC              ngc;
 +    int             vascent;
 +#endif
+     XFontStruct    *font;	/* main font structure                      */
  #ifndef NO_BOLDFONT
      XFontStruct    *boldFont;	/* bold font                                */
  #endif
@@ -57,11 +58,11 @@
 +#ifdef FIX_ALIGNMENT
 +    GC              mgc;
  #endif
-     XFontSet       fontset;
+     XFontSet        fontset;
  #ifdef XPM_BACKGROUND
---- src/screen.c.orig	Fri Mar  5 12:32:53 1999
-+++ src/screen.c	Fri Mar  5 12:40:43 1999
-@@ -2134,7 +2134,12 @@
+--- src/screen.c.orig	Wed Feb  9 12:04:29 2000
++++ src/screen.c	Wed Feb  9 12:23:07 2000
+@@ -2169,7 +2169,12 @@
   * always go back to the base font - it's much safer
   */
      wbyte = 0;
@@ -73,48 +74,48 @@
 +#endif
      draw_string = XDrawString;
      draw_image_string = XDrawImageString;
-     boldlast = 0;
-@@ -2318,7 +2323,11 @@
- 
+     clearfirst = clearlast = 0;
+@@ -2378,7 +2383,11 @@
  	    len = 0;
  	    buffer[len++] = stp[col];
+ 	    ypixelc = Row2Pixel(row);
 +#ifdef FIX_ALIGNMENT
-+	    ypixel = TermWin.vascent + Row2Pixel(row);
++	    ypixel = ypixelc + TermWin.vascent;
 +#else
- 	    ypixel = TermWin.font->ascent + Row2Pixel(row);
+ 	    ypixel = ypixelc + TermWin.font->ascent;
 +#endif
  	    xpixel = Col2Pixel(col);
+ 	    fontdiff = 0;
  	    wlen = 1;
- 
-@@ -2332,7 +2341,13 @@
- 		    && ((srp[col + 1]) & RS_multiMask) == RS_multi2) {
- 		    if (!wbyte) {
- 			wbyte = 1;
-+#ifdef FIX_ALIGNMENT
-+			TermWin.gc = TermWin.mgc;
-+			ypixel += TermWin.mfont->ascent - TermWin.vascent;
-+			TermWin.vascent = TermWin.mfont->ascent;
-+#else
- 			XSetFont(Xdisplay, TermWin.gc, TermWin.mfont->fid);
-+#endif
- 			draw_string = XDrawString16;
- 			draw_image_string = XDrawImageString16;
- 		    }
-@@ -2370,7 +2385,13 @@
- 		    }
- 		    if (wbyte) {
- 			wbyte = 0;
-+#ifdef FIX_ALIGNMENT
-+			TermWin.gc = TermWin.ngc;
-+			ypixel += TermWin.font->ascent - TermWin.vascent;
-+			TermWin.vascent = TermWin.font->ascent;
-+#else
- 			XSetFont(Xdisplay, TermWin.gc, TermWin.font->fid);
-+#endif
- 			draw_string = XDrawString;
- 			draw_image_string = XDrawImageString;
- 		    }
-@@ -2466,7 +2487,11 @@
+@@ -2399,7 +2408,13 @@
+ 		fprop = TermWin.mprop;
+ 		if (!wbyte && TermWin.mfont) {
+ 		    wbyte = 1;
++#ifdef FIX_ALIGNMENT
++		    TermWin.gc = TermWin.mgc;
++		    ypixel += TermWin.mfont->ascent - TermWin.vascent;
++		    TermWin.vascent = TermWin.mfont->ascent;
++#else
+ 		    XSetFont(Xdisplay, TermWin.gc, TermWin.mfont->fid);
++#endif
+ 		    fontdiff = TermWin.mprop;
+ 		    draw_string = XDrawString16;
+ 		    draw_image_string = XDrawImageString16;
+@@ -2446,7 +2461,13 @@
+ 		}
+ 		if (wbyte) {
+ 		    wbyte = 0;
++#ifdef FIX_ALIGNMENT
++		    TermWin.gc = TermWin.ngc;
++		    ypixel += TermWin.font->ascent - TermWin.vascent;
++		    TermWin.vascent = TermWin.font->ascent;
++#else
+ 		    XSetFont(Xdisplay, TermWin.gc, TermWin.font->fid);
++#endif
+ 		    draw_string = XDrawString;
+ 		    draw_image_string = XDrawImageString;
+ 		}
+@@ -2544,7 +2565,11 @@
  		rend &= ~RS_Bold;	/* we've taken care of it */
  	    } else if (bfont) {
  		bfont = 0;
@@ -126,40 +127,7 @@
  	    }
  #endif
  /*
-@@ -2478,12 +2503,20 @@
- 		    gcmask |= (GCForeground | GCBackground);
- 		    XChangeGC(Xdisplay, TermWin.gc, gcmask, &gcvalue);
- 		    XFillRectangle(Xdisplay, drawBuffer, TermWin.gc,
-+#ifdef FIX_ALIGNMENT
-+				   xpixel, ypixel - TermWin.vascent,
-+#else
- 				   xpixel, ypixel - TermWin.font->ascent,
-+#endif
- 				   Width2Pixel(1), Height2Pixel(1));
- 		    SWAP_IT(gcvalue.foreground, gcvalue.background, ltmp);
- 		    XChangeGC(Xdisplay, TermWin.gc, gcmask, &gcvalue);
- 		} else
-+#ifdef FIX_ALIGNMENT
-+		    CLEAR_CHARS(xpixel, ypixel - TermWin.vascent, 1);
-+#else
- 		    CLEAR_CHARS(xpixel, ypixel - TermWin.font->ascent, 1);
-+#endif
- 		DRAW_STRING(draw_string, xpixel, ypixel, buffer, 1);
- #ifndef NO_BOLDOVERSTRIKE
- 		if (MONO_BOLD(rend))
-@@ -2498,7 +2531,11 @@
- #endif
- #ifdef XPM_BACKGROUND
- 	    if (TermWin.pixmap != None && back == Color_bg) {
-+#ifdef FIX_ALIGNMENT
-+		CLEAR_CHARS(xpixel, ypixel - TermWin.vascent, len);
-+#else
- 		CLEAR_CHARS(xpixel, ypixel - TermWin.font->ascent, len);
-+#endif
- 		DRAW_STRING(draw_string, xpixel, ypixel, buffer, wlen);
- 	    } else
- #endif
-@@ -2612,6 +2649,9 @@
+@@ -2679,6 +2704,9 @@
      end_row = TermWin.saveLines - TermWin.view_start;
      if (selection.op && current_screen == selection.screen) {
  	i = selection.beg.row + TermWin.saveLines;


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002090447.MAA90954>