add for Gentoo support

This commit is contained in:
chxuan 2020-06-01 20:54:25 +08:00
parent 90b80e7cf5
commit fed48efa68
2 changed files with 8 additions and 6 deletions

View File

@ -59,6 +59,7 @@ An automatic configuration program for vim
<tr>
<td><a href="https://distrowatch.com/table.php?distribution=manjaro"><img src="https://distrowatch.com/images/yvzhuwbpy/manjaro.png"/></a><p align="center"></p></td>
<td><a href="https://distrowatch.com/table.php?distribution=opensuse"><img src="https://distrowatch.com/images/yvzhuwbpy/opensuse.png"/></a><p align="center"></p></td>
<td><a href="https://distrowatch.com/table.php?distribution=gentoo"><img src="https://distrowatch.com/images/yvzhuwbpy/gentoo.png"/></a><p align="center"></p></td>
</tr>
</table>
@ -311,10 +312,12 @@ An automatic configuration program for vim
<a href="https://github.com/happinesslijian" target="_blank" title="happinesslijian">
<img src="https://github.com/happinesslijian.png?size=64" width="64" height="64" alt="happinesslijian">
</a>
</a>
<a href="https://github.com/wangling12" target="_blank" title="wangling12">
<img src="https://github.com/wangling12.png?size=64" width="64" height="64" alt="wangling12">
</a>
<a href="https://github.com/ardinzh" target="_blank" title="ardinzh">
<img src="https://github.com/ardinzh.png?size=64" width="64" height="64" alt="ardinzh">
</a>
## 支持开源:heart:

View File

@ -323,11 +323,11 @@ function install_prepare_software_on_archlinux()
# 安装gentoo必备软件
function install_prepare_software_on_gentoo()
{
test_install_gentoo app-editors/vim dev-util/ctags sys-devel/automake sys-devel/gcc dev-util/cmake sys-apps/ack dev-vcs/git media-libs/fontconfig
install_software_on_gentoo app-editors/vim dev-util/ctags sys-devel/automake sys-devel/gcc dev-util/cmake sys-apps/ack dev-vcs/git media-libs/fontconfig
su - -c "ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5" -s /bin/bash
}
function test_install_gentoo()
function install_software_on_gentoo()
{
pkgs=$*
pkg_need_install=""
@ -336,17 +336,16 @@ function test_install_gentoo()
if qlist -I | grep -Eq $pkg; then
echo "$pkg is already installed."
else
pkg_need_install="$pkg_need_install $pkg"
pkg_need_install="$pkg_need_install $pkg"
fi
done
if sudo -l | grep -Eq "emerge"; then
sudo emerge -v $pkg_need_install
else
echo "Need Root password:"
echo "Need Root password:"
su - -c "emerge -v $pkg_need_install" -s /bin/bash
fi
}
# 安装opensuse必备软件