pkg_postinst, pkg_prerm, pkg_postrm, and pkg_config functions
since they do nothing more than clutter the environment.
(trunk r8655)
svn path=/main/branches/2.1.2/; revision=8658
fi
}
-pkg_setup() {
- return
-}
-
pkg_nofetch() {
[ -z "${SRC_URI}" ] && return
fi
}
-src_install() {
- return
-}
-
-pkg_preinst() {
- return
-}
-
-pkg_postinst() {
- return
-}
-
-pkg_prerm() {
- return
-}
-
-pkg_postrm() {
- return
-}
-
-pkg_config() {
- eerror "This ebuild does not have a config function."
-}
-
# Used to generate the /lib/cpp and /usr/bin/cc wrappers
gen_wrapper() {
cat > "$1" <<-EOF
exit 1
;;
prerm|postrm|postinst|config|info)
- if [ "${EBUILD_SH_ARGS}" == "info" ] && \
+ if hasq ${EBUILD_SH_ARGS} config info && \
[ "$(type -t pkg_${EBUILD_SH_ARGS})" != "function" ]; then
ewarn "pkg_${EBUILD_SH_ARGS}() is not defined: '${EBUILD##*/}'"
exit 0