From owner-freebsd-ports@FreeBSD.ORG Sun Mar 17 15:08:20 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 85FCAA4E for ; Sun, 17 Mar 2013 15:08:20 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) by mx1.freebsd.org (Postfix) with ESMTP id 1CCEB691 for ; Sun, 17 Mar 2013 15:08:19 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id z7so2241829eaf.0 for ; Sun, 17 Mar 2013 08:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=PhHLc2wbcwfOzPxdu3dHjXgGbU+tiIJ7oaYuFw1wOgs=; b=UUDNZXyzv4T19ZtxybrqDDv5LEEp9uB/UbH7NRVC7j+hjzipqhLFCL9O2iF78uAVk2 mjw9MZra47bYeUz9Gd/pKE/XzSfV4QeLDa7Iob4S4gHe/ezblzUhY04DUNe/QH6mGw2U TMPTm+G3dPupNrvK2b3+UjgEi0fIOvAARckRPgzIHGAaTm7i5el1t78GJ/BEMavanM6E EL1JWOP9KUu8v2XnF6e7Trh6S7SjR35fdmEPMGw+iFQEyFlG6B+04IOhhgKIDy/lW/G4 2WxK+907PQOcurAV27NaVSC1fmUeaznFjFfiDLDVn89Jgh5mpoKyG9vKf+NjHBchKe+h ZxqA== X-Received: by 10.15.43.132 with SMTP id x4mr39418411eev.31.1363532899212; Sun, 17 Mar 2013 08:08:19 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id 3sm21864853eej.6.2013.03.17.08.08.17 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 Mar 2013 08:08:17 -0700 (PDT) Sender: Baptiste Daroussin Date: Sun, 17 Mar 2013 16:08:15 +0100 From: Baptiste Daroussin To: Marco Steinbach Subject: Re: [CFT] New dialog for ports Message-ID: <20130317150815.GC72627@ithaqua.etoilebsd.net> References: <20130314095529.GH53963@ithaqua.etoilebsd.net> <5145D096.1010403@executive-computing.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WplhKdTI2c8ulnbP" Content-Disposition: inline In-Reply-To: <5145D096.1010403@executive-computing.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 15:08:20 -0000 --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 17, 2013 at 03:17:58PM +0100, Marco Steinbach wrote: > Baptiste Daroussin wrote on 14.03.2013 10:55: > > Hi all, > >=20 > > Ilya A. Arkhipov wrote dialog4ports which has just been added into the = ports > > tree ports-mgmt/dialog4ports, this is intended to be a replacement for = dialog(1) > > designed specifically for the options, in particular for optionsng. > >=20 > > It uses libdialog (recent version) and extend it with a new widget able= to deal > > with both normal and radio options in the same window. >=20 > I very much like this from the few ports I tried it with for now. >=20 > Having UI elements in a config dialog behave like real radio groups is=20 > great, separating them from each other with horizontal lines adds=20 > greatly to readability and usabilty from where I sit. >=20 > Being able to specifiy a descriptive text to be displayed in the heading= =20 > of radio option groups is a very welcome feature, since that'll give me= =20 > a chance to be more concise about what the user will get from the group. >=20 > I think 'make showconfig' should learn to display these, also. >=20 > Albeit being a rather small change, I quite like the use of a small 'X'= =20 > letter for ticked options. >=20 > > dialog4ports will live forever in ports so that it can easily be update= d and get > > support for new features on all supported arches at the same time. > >=20 > > It bundles libdialog on FreeBSD versions that doesn't have a recent lib= dialog in > > base (read 8.x) > >=20 > > dialog4ports also support a new feature: it has a help dialog to be abl= e to > > print a human readable help text if possible. >=20 > That's also very useful. I thought about asking for having long lines=20 > being automatically reflowed to screen width, but this would probably=20 > open a small can of worms. Anyway, help is supposed to give hints, not= =20 > to replace documentation, and using fmt(1) on pkg-help before submission= =20 > is not exactly rocket science. >=20 > > Here is a patch to the ports tree that makes it use dialog4ports by def= ault. > > What it does is: > > When make config is requested and dialog4ports is not installed yet the= ports > > tree will install dialog4ports first. > >=20 > > New feature for maintainer, if a pkg-help file is found inside the port > > directory then dialog will show to the user a help file is available et= propose > > him to hint F1 or ^E to show the said help file > >=20 > > http://people.freebsd.org/~bapt/d4p.diff > >=20 > > Please test! >=20 > Nice work -- much appreciated :) >=20 > MfG CoCo > PS: There's a typo in the message asking for the dialog4ports=20 > installation. It reads '... installed to you want ...', but probably=20 > should read '... installed, do you want ...'. >=20 Thanks for tests and feedback, also thanks for the typo, I ll fix before committing. regards, Bapt --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFF3F8ACgkQ8kTtMUmk6EwirwCdHPLYHkPDhUlqI9HT9jnP8Bv/ YZEAoJP6HdkYX/L2/HSkCsuRUXXmAMIy =4NTp -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP--