summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-25 09:12:46 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-25 09:12:46 +0000
commita511ef98dbe75892f137f9047b0a6f25387e4d93 (patch)
tree0d67b1c7a9a3b7a1db2d0a68e979d4d8de960fe8 /bin/ebuild.sh
parentbfd1864fb27875057c4bdf6c6271a7744ce877c4 (diff)
downloadportage-a511ef98dbe75892f137f9047b0a6f25387e4d93.tar.gz
portage-a511ef98dbe75892f137f9047b0a6f25387e4d93.tar.bz2
portage-a511ef98dbe75892f137f9047b0a6f25387e4d93.zip
Remove the empty default pkg_setup, src_install, pkg_preinst,
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
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh30
1 files changed, 1 insertions, 29 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b4c6dcc53..d7cfe3b9b 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -535,10 +535,6 @@ einstall() {
fi
}
-pkg_setup() {
- return
-}
-
pkg_nofetch() {
[ -z "${SRC_URI}" ] && return
@@ -582,30 +578,6 @@ src_test() {
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
@@ -1735,7 +1707,7 @@ if [ -n "${EBUILD_SH_ARGS}" ] ; then
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