Advertisement
richardgv

/etc/portage/bashrc

May 4th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bashrc_call_epatch_user() {
  2.     [ -d ${S} ] && cd "${S}"
  3.     if type epatch_user > /dev/null 2>&1 \
  4.             && type epatch > /dev/null 2>&1; then
  5.         epatch_user
  6.     else
  7.         . ${ROOT}etc/portage/env/epatch.sh
  8.         epatch_user
  9.         # To avoid issues when writing an ebuild
  10.         unset epatch
  11.         unset epatch_user
  12.     fi
  13. }
  14.  
  15. post_src_unpack() {
  16.     [ -z "$LATE_EPATCH_USER" ] && bashrc_call_epatch_user
  17. }
  18.  
  19. post_src_prepare() {
  20.     [ -n "$LATE_EPATCH_USER" ] && bashrc_call_epatch_user
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement