Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 11:38:01 GMT
From:      Kalten <kalten@gmx.at>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181452: x11/xdialog: add radio knobs for GTK1/GTK2 (utf-8)
Message-ID:  <201308211138.r7LBc18p080338@oldred.freebsd.org>
Resent-Message-ID: <201308211140.r7LBe0Qg030763@freefall.freebsd.org>

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

>Number:         181452
>Category:       ports
>Synopsis:       x11/xdialog: add radio knobs for GTK1/GTK2 (utf-8)
>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:   Wed Aug 21 11:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Kalten
>Release:        9.1-RELEASE-p* amd64
>Organization:
>Environment:
FreeBSD freeHugin.Walhalla.Leben 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The program is capable of using GTK2 instead of GTK1. By this one can
use UTF-8 encoding. (Some problems might occur---see note to v2.2.0 at
http://xdialog.free.fr/doc/changelog.html).
>How-To-Repeat:
``Xdialog --inputbox "Österreich" 0 0 "Iß was!"''
that were ``&Ouml;sterreich'' and ``I&szlig; was!'' ;-)
>Fix:
Now there are radio knobs, defaulting to GTK1 (stable variant). (see attached patch file)

Patch attached with submission follows:

diff --git a/x11/xdialog/Makefile b/x11/xdialog/Makefile
index e6e6333..e3b1b0b 100644
--- a/x11/xdialog/Makefile
+++ b/x11/xdialog/Makefile
@@ -1,9 +1,9 @@
 # Created by: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
-# $FreeBSD: x11/xdialog/Makefile 317383 2013-05-04 22:25:56Z bapt $
+# $FreeBSD$
 
 PORTNAME=	xdialog
 PORTVERSION=	2.3.1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	x11
 MASTER_SITES=	http://xdialog.free.fr/
 DISTNAME=	${PORTNAME:S/x/X/}-${PORTVERSION}
@@ -12,7 +12,6 @@ MAINTAINER=	sylvio@FreeBSD.org
 COMMENT=	A drop in replacement for the "dialog" or "cdialog" programs
 
 USE_BZIP2=	yes
-USE_GNOME=	gtk12
 GNU_CONFIGURE=	yes
 
 MAN1=		Xdialog.1
@@ -24,8 +23,22 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 USE_GMAKE=	yes
 .endif
 
+OPTIONS_SINGLE=	GTK_VERSION
+OPTIONS_SINGLE_GTK_VERSION=	GTK1 GTK2
+GTK1_DESC=	GTK+ 1 GUI toolkit support (no  UTF-8 support)
+GTK2_DESC=	GTK+ 2 GUI toolkit support (add UTF-8 support. Alpha!)
+
+OPTIONS_DEFAULT=	GTK1
+
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MGTK2}
+CONFIGURE_ARGS+=	--with-gtk2
+USE_GNOME=	gtk20
+.else
+USE_GNOME=	gtk12
+.endif
+
 .if empty(PORT_OPTIONS:MNLS)
 CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
diff --git a/x11/xdialog/pkg-descr b/x11/xdialog/pkg-descr
index 0834d5a..363982c 100644
--- a/x11/xdialog/pkg-descr
+++ b/x11/xdialog/pkg-descr
@@ -3,5 +3,10 @@ Xdialog is designed to be a drop in replacement for the "dialog" or
 program with an X-windows interface. The dialogs are easier to see
 and use while adding even more functionalities.
 
+Beware! If you select the GTK2 knob, you can use UTF-8 encoding for in-
+and output, but output on non-UTF-8 systems leads to trouble. Further
+not everything of the GTK1 version is implemented in the GTK2 version!
+(see note to v2.2.0 at http://xdialog.free.fr/doc/changelog.html)
+
 Author: Thierry Godefroy <xdialog@free.fr>
 WWW: http://xdialog.free.fr/


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



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