summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2010-03-14 15:27:40 -0200
committerJavier Villavicencio <the_paya@gentoo.org>2010-03-14 15:27:40 -0200
commit27edd4a9a946538fa7fc2d08be0d7a56621b99a4 (patch)
treec8ccab8e0f8c929fc58ae1832955b66758068b0a /profiles
parentlib: fix typo (Usr -> usr) (diff)
downloadgentoo-bsd-27edd4a9a946538fa7fc2d08be0d7a56621b99a4.tar.gz
gentoo-bsd-27edd4a9a946538fa7fc2d08be0d7a56621b99a4.tar.bz2
gentoo-bsd-27edd4a9a946538fa7fc2d08be0d7a56621b99a4.zip
Made profile.bashrc EAPI aware.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default/bsd/profile.bashrc15
1 files changed, 12 insertions, 3 deletions
diff --git a/profiles/default/bsd/profile.bashrc b/profiles/default/bsd/profile.bashrc
index 3de6d3b..70932e3 100644
--- a/profiles/default/bsd/profile.bashrc
+++ b/profiles/default/bsd/profile.bashrc
@@ -68,6 +68,15 @@ bsd-post_src_unpack() {
done
}
-profile-post_src_unpack() { bsd-post_src_unpack ; }
- post_src_unpack() { bsd-post_src_unpack ; }
-
+if [[ -n $EAPI ]] ; then
+ case "$EAPI" in
+ 0|1)
+ profile-post_src_unpack() { bsd-post_src_unpack ; }
+ post_src_unpack() { bsd-post_src_unpack ; }
+ ;;
+ *)
+ profile_post_src_prepare() { bsd-post_src_unpack ; }
+ post_src_prepare() { bsd-post_src_unpack ; }
+ ;;
+ esac
+fi