Package-Name: rxvt-unicode
Gentoo-Package: x11-terms/rxvt-unicode
Rebuild-For: ncurses
Homepage: http://software.schmorp.de/pkg/rxvt-unicode.html
Source: http://dist.schmorp.de/rxvt-unicode//(rxvt-unicode-(\d+(\.\d+)+)\.tar\.bz2)/[\0-\377]*?rxvt-unicode-(\d+(.\d+)+).tar.bz2 $1
Repack:
	tar xjvfp "$(SOURCE)"
Compile:
	cp -pf COPYING Change* README* "$(PREFIX)/"
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--enable-unicode3 --disable-xft --disable-perl --disable-rxvt-scroll --disable-xterm-scroll --disable-next-scroll --disable-text-blink --disable-pointer-blank --disable-utmp --disable-iso14755"
	$(MAKE)
	$(MAKE) install
	mkdir -p "$(PREFIX)"/etc
	cp -pf doc/etc/rxvt-unicode.terminfo "$(PREFIX)"/etc/
Install:
	$(MAKE) instbin BIN="urxvt urxvtc urxvtd"
	$(MAKE) instman SECTION=1 MAN="urxvt urxvtc urxvtd"
	$(MAKE) instman SECTION=3 MAN=urxvtperl
	$(MAKE) instman SECTION=7 MAN=urxvt
	umask 022 && tic "$(PREFIX)"/etc/rxvt-unicode.terminfo
Patch: <<EOT
######## begin patch to force symbols in Japanese fonts to wcwidth 2
--- src/rxvt.h.old	2007-02-18 01:55:51 +0900
+++ src/rxvt.h	2007-02-28 02:39:30 +0900
@@ -677,7 +677,8 @@
 
 // for speed reasons, we assume that all codepoints 32 to 126 are
 // single-width.
-#define WCWIDTH(c)		(IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : wcwidth (c))
+// also fix symbols in Japanese fonts --AC
+#define WCWIDTH(c)		(IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : IN_RANGE_INC(c, 0x2000, 0x27FF) ? 2 : wcwidth (c))
 
 /* convert pixel dimensions to row/column values.  Everything as int32_t */
 #define Pixel2Col(x)            Pixel2Width((int32_t)(x))
######## end patch to force symbols in Japanese fonts to wcwidth 2
EOT
NoPatch: <<EOT
######## begin 64-bit option field patch
--- src/rxvt.h.old	2007-02-18 01:55:51 +0900
+++ src/rxvt.h	2007-02-26 17:36:26 +0900
@@ -1318,12 +1318,12 @@
     return base;
   }
 
-  bool option (uint32_t opt) const NOTHROW
+  bool option (uint64_t opt) const NOTHROW
   {
     return OPTION (opt);
   }
 
-  void set_option (uint32_t opt, bool set) NOTHROW
+  void set_option (uint64_t opt, bool set) NOTHROW
   {
     if (set)
       options |= opt;
--- src/rxvtlib.h.old	2007-02-26 16:41:48 +0900
+++ src/rxvtlib.h	2007-02-26 17:37:27 +0900
@@ -206,7 +206,7 @@
 
 /* rxvt_vars.options */
 enum {
-# define def(name,idx) Opt_ ## name = 1UL << (idx),
+# define def(name,idx) Opt_ ## name = 1ULL << (idx),
 # define nodef(name)   Opt_ ## name = 0,
 # include "optinc.h"
 # undef nodef
@@ -235,7 +235,7 @@
 
 struct rxvt_vars : TermWin_t {
   scrollBar_t     scrollBar;
-  uint32_t        options;
+  uint64_t        options;
   XSizeHints      szHint;
   rxvt_color     *pix_colors;
   rxvt_color     *pix_colors_focused;
--- src/xdefaults.C.old	2007-01-12 03:39:29 +0900
+++ src/xdefaults.C	2007-02-26 17:54:54 +0900
@@ -32,9 +32,9 @@
 #endif
 
 /* place holders used for parsing command-line options */
-#define Optflag_Reverse              0x40000000UL
-#define Optflag_Boolean              0x80000000UL
-#define Optflag_mask                 0x3fffffffUL
+#define Optflag_Reverse              0x4000000000000000ULL
+#define Optflag_Boolean              0x8000000000000000ULL
+#define Optflag_mask                 0x3fffffffffffffffULL
 
 /* monolithic option/resource structure: */
 /*
@@ -75,12 +75,12 @@
 
 static const struct
   {
-    const unsigned long flag;	/* Option flag */
-    const int       doff;	/* data offset */
-    const char     *kw;		/* keyword */
-    const char     *opt;	/* option */
-    const char     *arg;	/* argument */
-    const char     *desc;	/* description */
+    const unsigned long long flag;	/* Option flag */
+    const int       doff;		/* data offset */
+    const char     *kw;			/* keyword */
+    const char     *opt;		/* option */
+    const char     *arg;		/* argument */
+    const char     *desc;		/* description */
   }
 optList[] = {
               STRG (Rs_display_name, NULL, "d", NULL, NULL),	/* short form */
######## end 64-bit option field patch
EOT

/pkg/rxvt-unicode/
/usr/bin/urxvt
/usr/bin/urxvtc
/usr/bin/urxvtd
/usr/man/man1/urxvt.1.gz
/usr/man/man1/urxvtc.1.gz
/usr/man/man1/urxvtd.1.gz
/usr/man/man3/urxvtperl.3.gz
/usr/man/man7/urxvt.7.gz
