ports/134910: [patch] Add xterm colors (256 colors) knob to x11/rxvt-unicode
Pierre Guinoiseau
geekounet at poildetroll.net
Sun May 24 13:30:04 UTC 2009
>Number: 134910
>Category: ports
>Synopsis: [patch] Add xterm colors (256 colors) knob to x11/rxvt-unicode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 24 13:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Pierre Guinoiseau <geekounet at poildetroll.net>
>Release: FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD korriban.poildetroll.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r192671: Sun May 24 11:30:07 CEST 2009 root at korriban.poildetroll.net:/usr/obj/usr/src/sys/KORRIBAN amd64
>Description:
This patch add a WITH_XTERM_COLOR knob to x11/rxvt-unicode port, which enable xterm colors (256 colors) instead of rxvt's 88 colors.
This can be useful for some vim colorschemes, elinks, or any apps able to use 256 colors. :)
It's disabled by default, so it doesn't affect already installed rxvt-unicode packages, so I think it doesn't need a version bump.
Thanks!
>How-To-Repeat:
>Fix:
--- rxvt-unicode_xterm-colors.diff begins here ---
diff -ruN --exclude=CVS /usr/ports/x11/rxvt-unicode/Makefile /usr/ports/local/x11/rxvt-unicode/Makefile
--- /usr/ports/x11/rxvt-unicode/Makefile 2009-01-25 14:48:47.000000000 +0100
+++ /usr/ports/local/x11/rxvt-unicode/Makefile 2009-01-25 14:47:57.000000000 +0100
@@ -137,6 +137,11 @@
CONFIGURE_ENV+= LIBS="-lutil"
+# enable support for xterm 256 colors
+.if defined(WITH_XTERM_COLOR)
+CONFIGURE_ARGS+= --enable-xterm-colors=256
+.endif
+
.include <bsd.port.pre.mk>
# compile in support for additional codeset groups
@@ -179,6 +184,7 @@
@${ECHO_MSG} "WITHOUT_IMLOCALE_FIX disable imlocale encoding conversion fix"
@${ECHO_MSG} "WITHOUT_TERMINFO don't register urxvt in the terminfo database"
@${ECHO_MSG} "WITHOUT_AFTERIMAGE disable integration with libAfterImage for background images"
+ @${ECHO_MSG} "WITH_XTERM_COLOR enable support for xterm 256 colors"
@${ECHO_MSG}
.ifndef(WITH_ENCODING)
@${ECHO_MSG} "==> You can compile in support for additional codeset groups by setting the WITH_ENCODING variable"
@@ -192,11 +198,16 @@
@${ECHO_MSG}
.endif
-.if !defined(WITHOUT_IMLOCALE_FIX)
+.if !defined(WITHOUT_IMLOCALE_FIX) || defined(WITH_XTERM_COLOR)
post-patch:
+.if !defined(WITHOUT_IMLOCALE_FIX)
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-imlocale
@cd ${WRKSRC}/src && ./gentables
.endif
+.if defined(WITH_XTERM_COLOR)
+ @${PATCH} ${PATCH_ARGS} -p1 < ${WRKSRC}/doc/urxvt-8.2-256color.patch
+.endif
+.endif
pre-configure:
@${RM} ${WRKSRC}/src/perl/kuake.orig
--- rxvt-unicode_xterm-colors.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list