Date: Sun, 03 Oct 2010 09:55:01 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: David DEMELIER <demelier.david@gmail.com> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: OPTIONS Message-ID: <4CA844E5.7060303@infracaninophile.co.uk> In-Reply-To: <AANLkTinkasFFQ8ssbTSdbYUS%2BJ-tYMc1U3w9rkUCk9Gd@mail.gmail.com> References: <4C93AA31.5080202@DataIX.net> <AANLkTik%2B1rvY4ZYgzHRjaX8PBfD1UqNCNeadHqg3KBfo@mail.gmail.com> <20100918223933.GB85995@dragon.NUXI.org> <AANLkTi=vPKpaPL9L=pQN9EdWdEN3sf1pos6uGtJU7ybV@mail.gmail.com> <20101002002605.GA8018@dragon.NUXI.org> <AANLkTinkasFFQ8ssbTSdbYUS%2BJ-tYMc1U3w9rkUCk9Gd@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig079054F18DBB9F95DF353C07 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/10/2010 09:22:46, David DEMELIER wrote: >> 3. OPTIONS are limited to only checkbox YES/NO settings. >> > Why can I not set PREFIX thru the OPTIONS framework and have it come= >> > from /var/db/ports/${PORTNAME}/options on the 2nd and later builds? >> > Even the boolean NOPORTDOCS isn't available thru OPTIONS. >> > Thus it is an inconsistent way to configure a port. >> > > I agree. As I said in 4, OPTIONS should follow the defined knob in > make.conf. But for not boolean knobs there is something we can also > do, spawn a little textbox to define an option with a string. Example > : >=20 > [X] WITH_X foo bar > [ ] WITH_Y foo bar baz > [fr_FR en_GB] LANGS to be build >=20 > Here pressing enter on LANGS would spawn a little textbox that can be > fulfilled by the user. The little problem is how to tell to OPTIONS > that it's not a boolean entry. >=20 And the rest? Pursuing this idea through to its logical conclusion, you'ld end up implementing radio buttons, text entry boxes, drop down lists -- all the normal bits used in html forms. In fact, you might just as well write a small HTML form, display it using lynx or w3c or some other text mode browser[*], and then have the form action feed into a CGI program that outputs a small Makefile with appropriate variable definitions in it. Hmmm... doesn't address David's point about options dialogs not showing pre-existing options settings, but it should be simple enough to have a 'Use default settings' check box. Cheers, Matthew [*] Or FF if you really must. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig079054F18DBB9F95DF353C07 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyoROwACgkQ8Mjk52CukIwJXgCfeNvj6XtdrwaDxK+0jA6DwfA8 3U4AnR+Q0tCxVSU+IIxYgB1dP5cJeKcU =NBgC -----END PGP SIGNATURE----- --------------enig079054F18DBB9F95DF353C07--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CA844E5.7060303>