Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390765 - add a EBUILD_PHASE_FUNC variable that contains the exact func name
Summary: add a EBUILD_PHASE_FUNC variable that contains the exact func name
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: PMS/EAPI
Whiteboard: in-eapi-5
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2011-11-16 23:14 UTC by SpanKY
Modified: 2012-09-23 06:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2011-11-16 23:14:21 UTC
EBUILD_PHASE being related to, but not exactly the same as, the active function name is annoying.  i'd like to be able to dynamically script/expand func names based on the active func which means i need a variable that contains it.

otherwise i have to add a stupid func like:
ebuild_phase_to_func() {
    case ${EBUILD_PHASE} in
    clean) echo pkg_clean;;
    setup) echo pkg_setup;;

i'd suggest EBUILD_PHASE_FUNC, but i don't particularly care what the name is
Comment 2 Ulrich Müller gentoo-dev 2012-09-23 06:37:44 UTC
(In reply to comment #1)
> PMS patch:
> h=76ddca560da42fd968c53a2a0c38a6ac840a7ad4

Commit in master:;a=commit;h=293018c0bc17aff55d231e897a8967aacdef212b