pkg_setup

函数 pkg_setup
目的 构建前环境配置和检查
沙箱 禁用
权限 root
调用方 ebuild, binary

默认 pkg_setup

pkg_setup() {
	return
}

示例 pkg_setup

pkg_setup() {
	# We need to know which GUI we're building in several
	# different places, so work it out here.
	if use gtk ; then
		if use gtk2 ; then
			export mypkg_gui="gtk2"
		else
			export mypkg_gui="gtk1"
		fi
	elif use motif then
		export mypkg_gui="motif"
	else
		export mypkg_gui="athena"
	fi
}