Commit graph

19 commits

Author SHA1 Message Date
Baptiste Daroussin
34d5249610 Extend the options framework providing 2 new macros:
OPTIONS_RADIO: a more user friendly way to allow selecting only 0 or 1 options
               among a list of options
OPTIONS_GROUP: this macros should be used to group options by theme allowing the
               user to select 0 or N options among a list of options

With hat:	portmgr
Reviewed by:	beat
2012-12-10 10:14:05 +00:00
Baptiste Daroussin
8640477bd2 We are in 2012, it is time to activate IPV6 options by default everywhere 2012-10-10 08:48:47 +00:00
Baptiste Daroussin
9a79d8476e Options can now be overridden from command line using
WITH/WITHOUT.

Name has been proprosed by gahr during brainstorming on ports@

PR:		ports/170180
Submitted by:	ohauer
2012-10-05 13:43:45 +00:00
Baptiste Daroussin
45b04c6514 compare options loading from /var/db/port/options and make.conf against the
complete list of options.
COMPLETE_OPTIONS_LIST being OPTIONS_DEFINE + all the OPTIONS_SINGLE_* + all the
OPTIONS_MULTI_*
2012-07-16 22:36:44 +00:00
Baptiste Daroussin
2bf8210563 - Document new options framework in bsd.options.mk
- new OPTIONS_DEFINE_${ARCH} and OPTIONS_DEFAULT_${ARCH} to define and activate
  options per arches.
- No more append to PORT_OPTIONS options that are not in OPTIONS_DEFINE, (in the
  expection of DOCS, NLS, EXAMPLES for compatibility)
2012-07-16 11:38:36 +00:00
Baptiste Daroussin
abb421178b Add new OPTIONS_EXCLUSE_${ARCH} to be able to exclude an option on the given arch
Fix xorg-server on sparc64 by excluing the HAL option on sparc64 has it used to
be before convertion to new options framework [1]

Reported by:	marius@
Tested by:	marius@
Approved by:	kwm [1]
2012-07-13 10:23:57 +00:00
Baptiste Daroussin
5b14163eb5 Do not search for upper case uniquename what setting per ports options 2012-06-06 11:47:29 +00:00
Baptiste Daroussin
8408ccfbc3 Activate NO_OPTIONS_SORT by default when the ports still use the old framework,
that case user still get the exact same out as prior optionsng, for converter
ports NO_OPTIONS_SORT remains per port so that by default options are sorted but
maintainer can decided to unsort them.
2012-06-05 06:56:36 +00:00
Baptiste Daroussin
ed18e382be Allow NO_OPTIONS_SORT to work with old OPTIONS
Requested by:	dougb@
2012-06-05 06:03:36 +00:00
Baptiste Daroussin
f05cecf6f0 Remove crufts committed by mistake
Reported by:	matthew@
2012-06-04 11:43:53 +00:00
Baptiste Daroussin
ad17fa0e98 Fix loading of old options
Tested by:	flo@, gelraen (via IRC)
2012-06-04 10:23:42 +00:00
Baptiste Daroussin
b4f11dd17c Remove the double quotes while converting from old options framework to new one.
This fix the too long options breaking the UI

Reported by:	Oliver Pinter <oliver.pntr@gmail.com> (via private mail)
2012-06-02 09:13:13 +00:00
Baptiste Daroussin
a16cae4f92 by default optionsng sort the options before prompting to them.
add a new KNOB for maintainers: NO_OPTIONS_SORT to prevent from sorting the options.

Requested by:	osa@
2012-06-01 09:06:15 +00:00
Baptiste Daroussin
4faa7223f8 if user set OPTIONS_UNSET EXAMPLES they create NOPORTEXAMPLES variable for
compatibility

With hat:	portmgr
2012-05-29 15:35:30 +00:00
Martin Wilke
fe616488ea - Do not activate EXAMPLES by default if NOPORTEXAMPELS is set
- Add shared EXAMPES descriptions

With hat:	portmgr
2012-05-29 15:19:59 +00:00
Baptiste Daroussin
97bac7723f Do not activate DOCS by default if NOPORTDOCS is set 2012-05-29 14:46:38 +00:00
Baptiste Daroussin
4ab2fee309 Fix python's make config [1]
Better backward compatibility [2]

Reported by:	ketas (on #bsdports) [1], flo@ [2]
Tested by:	flo@ [2]
2012-05-29 13:30:56 +00:00
Baptiste Daroussin
465b262cef recreate the WITH_/WITHOUT_ options for compatibility 2012-05-29 11:49:10 +00:00
Baptiste Daroussin
c263127442 New options framework for the ports
for maintainers:
it introduces 3 different types of options: simple, multi and single:
- simple options are the same as the current options (i.e. on or off.)
- multi options are options where at least one must be set (1-N).
- single options are options where one and only one must be set (exclusive
  options).

for users:
- OPTIONS_SET: globally enable some options
- OPTIONS_UNSET: globally disable some options
- ${UNIQUENAME}_SET: enable per-port choice of options
- ${UNIQUENAME}_UNSET: disable per-port choice of options

For compatibility the old OPTIONS framework is now working on top of the new one
The options previously set with old OPTIONS are imported and converted
transparently.

A new knob NO_DIALOG if defined in the the config-conditional target is ignored
(prevent the dialog(1) ui to show up.

Thanks to all people involved:
beat@, crees@, Bryan Drewery, linimon@, novel@ and others, for testing, comments, patches
2012-05-29 09:54:27 +00:00