[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] autotools-utils & cmake-utils: use common BUILD_DIR var
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2012-11-29 13:40:54
Message-ID: 1354196458-17485-1-git-send-email-mgorny () gentoo ! org
[Download RAW message or body]

Currently, each of the mentioned eclasses has its own *_BUILD_DIR.
Therefore, if someone needs to provide a custom BUILD_DIR, he needs to
set it explicitly for the eclass. This is fine for ebuilds but not
really neat for eclasses.

The idea is simple: use a common BUILD_DIR instead. For compatibility,
export AUTOTOOLS_ & CMAKE_BUILD_DIR as well but prefer the former one.
For most of the ebuilds this won't make a difference.

I'm attaching an example conversion of pygobject where this would
benefit. The idea is quite simple; ebuild calls

	python_foreach_impl autotools-utils_src_...

python_foreach_impl() sets BUILD_DIR for each implementation,
autotools-utils phases use that and everything simply works!


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic