From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 24 13:30:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 712FF106567D for ; Sun, 24 May 2009 13:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4C1B38FC2B for ; Sun, 24 May 2009 13:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4ODU4eU076906 for ; Sun, 24 May 2009 13:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4ODU4Qd076903; Sun, 24 May 2009 13:30:04 GMT (envelope-from gnats) Resent-Date: Sun, 24 May 2009 13:30:04 GMT Resent-Message-Id: <200905241330.n4ODU4Qd076903@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pierre Guinoiseau Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A202106566C for ; Sun, 24 May 2009 13:24:35 +0000 (UTC) (envelope-from geekounet@poildetroll.net) Received: from tritus.poildetroll.net (tritus.poildetroll.net [81.93.245.19]) by mx1.freebsd.org (Postfix) with ESMTP id 244928FC1C for ; Sun, 24 May 2009 13:24:35 +0000 (UTC) (envelope-from geekounet@poildetroll.net) Received: from kyleck.poildetroll.net (kyleck.poildetroll.net [81.93.245.30]) by tritus.poildetroll.net (Postfix) with SMTP id C177872A for ; Sun, 24 May 2009 15:06:15 +0200 (CEST) Received: by kyleck.poildetroll.net (sSMTP sendmail emulation); Sun, 24 May 2009 15:06:15 +0200 Message-Id: <20090524130615.C177872A@tritus.poildetroll.net> Date: Sun, 24 May 2009 15:06:15 +0200 From: "Pierre Guinoiseau" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/134910: [patch] Add xterm colors (256 colors) knob to x11/rxvt-unicode X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pierre Guinoiseau List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2009 13:30:04 -0000 >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 >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@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 # 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: