From owner-freebsd-ports@FreeBSD.ORG Wed Dec 5 21:22:38 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4C61FC9; Wed, 5 Dec 2012 21:22:38 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1827A8FC12; Wed, 5 Dec 2012 21:22:37 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id a14so2730946eaa.13 for ; Wed, 05 Dec 2012 13:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=EpUtk6uQHyUhFs/ArfWW1QFPH3R58WdYm3twnnvxKBI=; b=cvv+elxwo0tcJ1ArqBkOzFztdwiTRkz8wbS8DCMrPMLbMWhnYTjTu+H3eG2Fa6J+Dc NI9YjZaTIT4H6oBXecJWRz8FJjjDaW90ejPJek3ZBoHJlhKKuhrVsC5ssBatOLO7a4rh msJg5LvVaWmAYlCslcrOBQ0rpyRXW3t/XMpfn/k59kVEnyAT6mTY25GVbj7URcJXwLaG E5CQBVyv544oPU9ZQ0gDSoe5KZnceKeVe53X4gEYtkiBjElO4FhMnZ+Tq97yE6CV9oTQ T8yuQKa7QIYqqpMkbJn6BDdlHxTNrACEcsR1+PKLonnG2pxJR+AcTiW83L99kZ476wdH UH9Q== Received: by 10.14.220.71 with SMTP id n47mr63909416eep.39.1354742556752; Wed, 05 Dec 2012 13:22:36 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id 43sm11596183eed.10.2012.12.05.13.22.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 13:22:36 -0800 (PST) Sender: Baptiste Daroussin Date: Wed, 5 Dec 2012 22:22:34 +0100 From: Baptiste Daroussin To: ports@FreeBSD.org Subject: [CFT+Brainstorm] Extending the options framework Message-ID: <20121205212234.GB44419@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="24zk1gE8NUlDmwG9" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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: Wed, 05 Dec 2012 21:22:38 -0000 --24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, Most of people sems happy with the new framework options however it could be yet better, here is an attempt to improve it: http://people.freebsd.org/~bapt/options%2bradio%2bgroup.diff Among the complains people tends to find that OPTIONS_SINGLE aka 1 among N is nice but the 0 or 1 among N is not user friendly. So here is OPTIONS_RADIO which is natively 0 or 1 among N without the need of adding its name to OPTIONS_DEFINE. if everyone is happy with OPTIONS_RADIO, then the 0 or 1 feature from OPTIONS_SINGLE will be removed later once the ports needed that has been converted to OPTIONS_RADIO Another feature request I received was the ability to group options into a named group, to avoid some sort of sorting of option name (nginx is a good example in my mind that could benefit it. So OPTIONS_GROUP has been created OPTIONS_GROUP works exactly the same as OPTIONS_MULTI except that is accept 0 or N among M if you have better name to propose feel free :) Please test, send you remark etc. regards, Bapt --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlC/uxoACgkQ8kTtMUmk6Ey6iQCfbcIZuzkkGisNO9afwetjA4ur O8sAn19ya2TMKY1q6K+xLykkXy8Bh28+ =bU2P -----END PGP SIGNATURE----- --24zk1gE8NUlDmwG9--