Skip to content

Commit

Permalink
add for Gentoo support
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 1, 2020
1 parent 90b80e7 commit fed48ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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:
Expand Down
9 changes: 4 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand All @@ -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必备软件
Expand Down

0 comments on commit fed48ef

Please sign in to comment.