pkg_pretend
| Function | pkg_pretend | 
  
|---|---|
| Purpose | run sanity checks for a package during dependency calculation time | 
| Sandbox | ? | 
| Privilege | root | 
| Called for | ebuild, binary | 
| EAPI | 4 | 
Sample pkg_pretend
pkg_pretend() {
	if use kernel_linux ; then
		if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then
			if kernel_is lt 2 6 30 ; then
				CONFIG_CHECK="FUSE_FS"
				ERROR_FUSE_FS="this is an unrealistic testcase..."
				check_extra_config
			fi
		fi
	fi
}
Notes on pkg_pretend
The pkg_pretend phase can be used to do sanity checks
before the main phase function sequence is run (meaning this phase is
executed after the package manager has calculated the dependencies
and before installing them).
This phase typically checks for a kernel configuration and may
eerror and die when needed.
Important:
	There is no guarantee that the ebuild's dependencies are installed
	when this phase is called.
Important:
	As 
pkg_pretend is not called in the main phase function
	sequence, environment saving is not guaranteed.