From owner-freebsd-ports@FreeBSD.ORG Mon Nov 8 15:15:46 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F4011065675; Mon, 8 Nov 2010 15:15:46 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 74FA28FC2D; Mon, 8 Nov 2010 15:15:45 +0000 (UTC) Received: by gya6 with SMTP id 6so3545595gya.13 for ; Mon, 08 Nov 2010 07:15:44 -0800 (PST) Received: by 10.42.223.132 with SMTP id ik4mr3284347icb.163.1289229344225; Mon, 08 Nov 2010 07:15:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.143.15 with HTTP; Mon, 8 Nov 2010 07:15:24 -0800 (PST) In-Reply-To: References: <4CD4602C.2080804@FreeBSD.org> <20101108084958.000042be@unknown> From: Eitan Adler Date: Mon, 8 Nov 2010 10:15:24 -0500 Message-ID: To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 Cc: Bruce Cran , freebsd ports , freebsd-sysinstall@freebsd.org, Randi Harper , Garrett Cooper Subject: Re: Proposed OPTIONS replacement X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 15:15:46 -0000 If there is interest in writing a BSDL libdialog I would be interested in working on such a project for the Google Summer of Code. I'm cross posting to -ports and -sysinstall because this part of the discussion started on -sysinstall. Please keep future discussion on -ports as that is what the focus of my proposal is. ... > With libdialog it is not possible to mix radio button and "normal" > button and for the options framework we need the be able to get the > following feature imho: > > simple options: check box My program has this > exclusive options: radio button My program has this > exclusive options if a simple option is check (for example option X11 > allow to choose between the following options QT3 QT4 GTK etc) My program does has this capability yet. I'm not exactly sure how to indicate this on the command line. Perhaps some kind of --requires-other option? > group options: a user can check choose between 0-N options (check box) > if a other options is activated example a port can be build with 2 or > more gui toolkit at the same time: avidemux for example > group options with at least one options checked (1-N). My program does not yet have this capability. Perhaps a --min and a --max option for radio options? This might be a pain to implement due to the way my program handles radio options. If there is a major need for this feature I'll spend the time adding the feature. > As far as I've looked into libdialog it is nearly impossible to handle > in a simple (I may be wrong and missed some part of libdialog) I don't know libdialog very well, but I know that with dialog(1) this is impossible. > Other choices will be : > 1/ create a ncurses tool dedicated for the ports as Eitan began to do > it (thanks for that :)) (this is my favorite choice) I'm still looking for a comprehensive code review. I really want to get my program as good as possible. -- Eitan Adler