EAPI 2
Helpers
doman
Recognition of Language Codes in File Names
Language codes in file names are now used for path translation.
Man Page Path Translation
Source
Destination
foo.1
/usr/share/man/man1/foo.1
foo.lang.1
/usr/share/man/lang/man1/foo.1
Phases
New src_prepare Phase Function
A new src_prepare function is called after the src_unpack
function, with cwd initially set to $S.
Execution Order of Phase Functions
Execution Order of Phase Functions
Phase Function Name
pkg_setup
src_unpack
src_prepare
src_configure
src_compile
src_test
src_install
pkg_preinst
pkg_postinst
pkg_prerm
pkg_postrm
Default Phase Functions
The default pkg_nofetch and src_* phase functions are now
accessible via a function having a name
that begins with default_ and
ends with the respective phase function name. For example,
a call to a function with the name default_src_compile is
equivalent to a call to the default src_compile
implementation.
Default Phase Functions
Function Name
default_pkg_nofetch
default_src_unpack
default_src_prepare
default_src_configure
default_src_compile
default_src_test
Default Phase Function Alias
A function named "default" is redefined for each phase so that it
will call the default_* function corresponding to the current phase.
For example, a call to the function named "default" during the
src_compile phase is equivalent to a call to the function named
default_src_compile.