2018-02-23 11:08:56 -08:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2018-02-22 18:20:12 -08:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit eutils git-r3 readme.gentoo-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Fish shell like fast/unobtrusive autosuggestions for zsh"
|
|
|
|
HOMEPAGE="https://github.com/zsh-users/zsh-autosuggestions"
|
|
|
|
EGIT_COMMIT="c7d4a85031c101ef9bce0018096622087894dd09"
|
|
|
|
SRC_URI=""
|
|
|
|
EGIT_REPO_URI="${HOMEPAGE}"
|
|
|
|
|
2018-02-23 13:07:11 -08:00
|
|
|
PROPERTIES="live"
|
2018-02-22 18:20:12 -08:00
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2018-08-14 11:21:12 -07:00
|
|
|
KEYWORDS="~amd64 ~arm"
|
2018-02-22 18:20:12 -08:00
|
|
|
IUSE="+doc"
|
|
|
|
|
|
|
|
DEPEND="app-shells/zsh"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
ZSH_DEST="/usr/share/zsh/site-contrib/${PN}"
|
|
|
|
DISABLE_AUTOFORMATTING="true"
|
|
|
|
|
|
|
|
DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add to your ~/.zshrc
|
|
|
|
source '${ZSH_DEST}/zsh-autosuggestions.zsh'"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
make -B zsh-autosuggestions.zsh
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
install -d "${D}${ZSH_DEST}"
|
|
|
|
cp -a --no-preserve=ownership "zsh-autosuggestions.zsh" "${D}${ZSH_DEST}/"
|
|
|
|
use doc && dodoc CHANGELOG.md DESCRIPTION README.md LICENSE VERSION
|
|
|
|
use doc && readme.gentoo_create_doc
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
use doc && readme.gentoo_print_elog
|
|
|
|
elog "${DOC_CONTENTS}"
|
|
|
|
}
|