# Copyright 2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 RESTRICT="mirror" inherit eutils S=${WORKDIR} DESCRIPTION="A plugin manager for zsh, inspired by oh-my-zsh and vundle." HOMEPAGE="https://github.com/zsh-users/antigen" SRC_URI="https://github.com/zsh-users/antigen/releases/download/v${PV}/v${PV}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="" RDEPEND="app-shells/zsh" src_unpack() { unpack ${A} cd "${S}" mv ${PN}-${PV} ${PN} || die #cp ${DISTDIR}/${PN}.zsh ${S} } pkg_postinst() { einfo "To use antigen, include the following line in your .zshrc:" einfo "source /usr/share/zsh/scripts/antigen/antigen.zsh " } src_install() { dodir /usr/share/zsh/scripts/ insinto /usr/share/zsh/scripts/ doins -r ${S}/* }