public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
[parent not found: <b9uwZ-6YY-23@gated-at.bofh.it>]
[parent not found: <b9JFB-1eE-13@gated-at.bofh.it>]
* [gentoo-dev] [RFC] Ability to pass arguments to src_configure/src_compile
@ 2008-09-06 17:36 Thomas Anderson
  2008-09-06 19:00 ` Alec Warner
  0 siblings, 1 reply; 21+ messages in thread
From: Thomas Anderson @ 2008-09-06 17:36 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

Hi,
	Currently we have a lot of:
		src_configure() {
			econf $(use_enable dvdr) \
				$(use_with ipv6 ssl) \
				--with-system-zlib
		}
	
	Introducing(Idea shamelessly taken from Exherbo):
		DEFAULT_SRC_CONFIGURE_USE_{WITHS,ENABLES}
		DEFAULT_SRc_CONFIGURE_EXTRA_PARAMS

	The code from above could be rewritten like so:

	DEFAULT_SRC_CONFIGURE_USE_ENABLES=( 'dvdr' )
	DEFAULT_SRC_CONFIGURE_USE_WITHS=( 'ipv6 ssl' )
	DEFAULT_SRC_CONFIGURE_EXTRA_PARAMS=( '--with-system-zlib' )

	That's much simpler. 

	Also taken from Exherbo, DEFAULT_SRC_COMPILE_PARAMS could be used to 
	append parameters to emake like so:

		src_compile() {
			emake buildtarget
		}

	which would be replaced by:
		DEFAULT_SRC_COMPILE_PARAMS=( 'buildtarget' )

	This was originally proposed in bug #230725[1]

Regards,
Thomas

[1] https://bugs.gentoo.org/show_bug.cgi?id=230725

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-09-12 17:36 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b99LY-5lh-39@gated-at.bofh.it>
     [not found] ` <b9bkA-7sM-7@gated-at.bofh.it>
     [not found]   ` <b9cqk-nW-9@gated-at.bofh.it>
2008-09-07 15:31     ` [gentoo-dev] [RFC] Ability to pass arguments to src_configure/src_compile Vaeth
2008-09-07 15:40       ` Ciaran McCreesh
2008-09-07 16:46         ` Marcus D. Hanwell
2008-09-07 16:50           ` Ciaran McCreesh
2008-09-07 17:11             ` Santiago M. Mola
2008-09-08 19:05             ` Luca Barbato
2008-09-08 21:33           ` Donnie Berkholz
2008-09-08 22:13             ` Ciaran McCreesh
2008-09-08 23:03               ` Donnie Berkholz
2008-09-08 23:31                 ` Alec Warner
2008-09-08 23:20               ` [gentoo-dev] " Duncan
2008-09-08 23:38                 ` Ciaran McCreesh
2008-09-09  0:58                   ` Duncan
2008-09-09  1:06                     ` Ciaran McCreesh
2008-09-09  2:27                       ` Duncan
2008-09-10  1:05                         ` Steve Long
2008-09-12 17:36             ` [gentoo-dev] " Arun Raghavan
     [not found] <b9uwZ-6YY-23@gated-at.bofh.it>
     [not found] ` <b9uwZ-6YY-25@gated-at.bofh.it>
     [not found]   ` <b9ux0-6YY-27@gated-at.bofh.it>
     [not found]     ` <b9uwZ-6YY-21@gated-at.bofh.it>
     [not found]       ` <b9uGz-79d-7@gated-at.bofh.it>
     [not found]         ` <b9vCE-8mw-21@gated-at.bofh.it>
     [not found]           ` <b9WCQ-1oi-9@gated-at.bofh.it>
     [not found]             ` <b9XfF-2h7-35@gated-at.bofh.it>
     [not found]               ` <b9Yll-3Ca-5@gated-at.bofh.it>
     [not found]                 ` <b9YuZ-3L0-9@gated-at.bofh.it>
     [not found]                   ` <b9ZKv-5ez-7@gated-at.bofh.it>
     [not found]                     ` <b9ZU8-5EO-19@gated-at.bofh.it>
2008-09-09  7:41                       ` [gentoo-dev] " Vaeth
2008-09-09 12:17                         ` Bernd Steinhauser
     [not found] <b9JFB-1eE-13@gated-at.bofh.it>
     [not found] ` <b9JFB-1eE-15@gated-at.bofh.it>
     [not found]   ` <b9JFB-1eE-17@gated-at.bofh.it>
     [not found]     ` <b9JFC-1eE-19@gated-at.bofh.it>
     [not found]       ` <b9JFC-1eE-21@gated-at.bofh.it>
     [not found]         ` <b9JYY-1P6-19@gated-at.bofh.it>
     [not found]           ` <b9JYY-1P6-21@gated-at.bofh.it>
     [not found]             ` <b9JYY-1P6-23@gated-at.bofh.it>
     [not found]               ` <b9JYX-1P6-17@gated-at.bofh.it>
     [not found]                 ` <b9KBK-2uE-31@gated-at.bofh.it>
2008-09-08 12:46                   ` [gentoo-dev] " Vaeth
2008-09-08 22:38                     ` [gentoo-dev] " Steve Long
2008-09-06 17:36 [gentoo-dev] " Thomas Anderson
2008-09-06 19:00 ` Alec Warner
2008-09-06 20:10   ` Ben de Groot
2008-09-08 21:57     ` [gentoo-dev] " Steve Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox