Permalink
Browse files

gcc-switcher:add dir-oriented support

  • Loading branch information...
1 parent e564cf2 commit fa2d778b5eaca7bc0f80b6644dc557b91729f904 @megabaks megabaks committed Sep 30, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 app-portage/gcc-switcher/gcc-switcher-1.1.ebuild
@@ -27,13 +27,19 @@ src_install(){
if [ -f "${ROOT}/etc/portage/package.compilers" ];then
cp "${ROOT}/etc/portage/package.compilers" "${D}/etc/portage/package.compilers"
+ elif [ -d "${ROOT}/etc/portage/package.compilers" ];then
+ insinto /etc/portage/package.compilers
+ doins "${FILESDIR}/package.compilers"
else
insinto /etc/portage
doins "${FILESDIR}/package.compilers"
fi
if [ -f "${ROOT}/etc/portage/package.compilers-full" ];then
cp "${ROOT}/etc/portage/package.compilers-full" "${D}/etc/portage/package.compilers-full"
+ elif [ -d "${ROOT}/etc/portage/package.compilers-full" ];then
+ insinto /etc/portage/package.compilers-full
+ doins "${FILESDIR}/package.compilers-full"
else
insinto /etc/portage
doins "${FILESDIR}/package.compilers-full"

0 comments on commit fa2d778

Please sign in to comment.