diff options
author | Javier Villavicencio <the_paya@gentoo.org> | 2010-03-14 15:27:40 -0200 |
---|---|---|
committer | Javier Villavicencio <the_paya@gentoo.org> | 2010-03-14 15:27:40 -0200 |
commit | 27edd4a9a946538fa7fc2d08be0d7a56621b99a4 (patch) | |
tree | c8ccab8e0f8c929fc58ae1832955b66758068b0a /profiles | |
parent | lib: fix typo (Usr -> usr) (diff) | |
download | gentoo-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.bashrc | 15 |
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 |