# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.11 2006/11/22 11:21:37 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.12 2007/04/07 08:52:46 vapier Exp $
#
# Diego Pettenò <flameeyes@gentoo.org>
local kind=$1
shift
- INSDESTTREE="/etc/periodic/${kind}"
- INSOPTIONS="-m 0755" \
- doins "$@"
+ ( # dont want to pollute calling env
+ insinto /etc/periodic/${kind}
+ insopts -m 0755
+ doins "$@"
+ )
}
freebsd_get_bmake() {
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.120 2007/03/27 01:48:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.121 2007/04/07 08:52:46 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
}
gameswrapper() {
- local oldtree=${DESTTREE}
- into "${GAMES_PREFIX}"
- local cmd=$1; shift
- ${cmd} "$@"
- local ret=$?
- into "${oldtree}"
- return ${ret}
+ # dont want to pollute calling env
+ (
+ into "${GAMES_PREFIX}"
+ cmd=$1
+ shift
+ ${cmd} "$@"
+ )
}
dogamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.68 2007/03/25 10:02:09 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.69 2007/04/07 08:52:46 vapier Exp $
# -----------------------------------------------------------------------------
local dest=/usr/share/doc/${PF}/examples
if [[ ${#} = 1 && -d ${1} ]]; then
- INSDESTTREE="${dest}" doins -r ${1}/* || die "Installing examples failed"
+ ( # dont want to pollute calling env
+ insinto "${dest}"
+ doins -r ${1}/*
+ ) || die "Installing examples failed"
else
- INSDESTTREE="${dest}" doins -r "${@}" || die "Installing examples failed"
+ ( # dont want to pollute calling env
+ insinto "${dest}"
+ doins -r "$@"
+ ) || die "Installing examples failed"
fi
}
# Copyright 2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Diego Pettenò <flameeyes@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.10 2005/11/03 21:27:02 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.11 2007/04/07 08:52:46 vapier Exp $
#
# This eclass contains functions to install pamd configuration files and
# pam modules.
return 0;
fi
- INSDESTTREE=/etc/pam.d \
- INSOPTIONS="-m 0644" \
- doins "$@" || die "failed to install $@"
+ ( # dont want to pollute calling env
+ insinto /etc/pam.d
+ insopts -m 0644
+ doins "$@"
+ ) || die "failed to install $@"
cleanpamd "$@"
}
return 0;
fi
- INSDESTTREE=/etc/pam.d \
- INSOPTIONS="-m 0644" \
- newins "$1" "$2" || die "failed to install $1 as $2"
+ ( # dont want to pollute calling env
+ insinto /etc/pam.d
+ insopts -m 0644
+ newins "$1" "$2"
+ ) || die "failed to install $1 as $2"
cleanpamd $2
}
[[ $# -lt 2 ]] && die "dopamsecurity requires at least two arguments"
if hasq pam ${IUSE} && ! use pam; then
- return 0;
+ return 0
fi
- INSDESTTREE=/etc/security/$1 \
- INSOPTIONS="-m 0644" \
- doins "${@:2}" || die "failed to install ${@:2}"
+ ( # dont want to pollute calling env
+ insinto /etc/security/$1
+ insopts -m 0644
+ doins "${@:2}"
+ ) || die "failed to install ${@:2}"
}
# newpamsecurity <section> <old name> <new name>
return 0;
fi
- INSDESTTREE=/etc/security/$1 \
- INSOPTIONS="-m 0644" \
- newins "$2" "$3" || die "failed to install $2 as $3"
+ ( # dont want to pollute calling env
+ insinto /etc/security/$1
+ insopts -m 0644
+ newins "$2" "$3"
+ ) || die "failed to install $2 as $3"
}
# getpam_mod_dir
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.63 2007/03/10 10:27:45 rbrown Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.64 2007/04/07 08:52:46 vapier Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
}
ruby_src_compile() {
-
# You can pass configure options via RUBY_ECONF
ruby_econf || die
ruby_emake "$@" || die
}
doruby() {
- INSDESTTREE="$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')" \
- INSOPTIONS="-m 0644" \
- doins "$@" || die "failed to install $@"
+ ( # dont want to pollute calling env
+ insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
+ insopts -m 0644
+ doins "$@"
+ ) || die "failed to install $@"
}
ruby_einstall() {