mirror of
https://github.com/TrentSPalmer/gentoo-overlay-trent.git
synced 2024-11-24 18:51:29 -08:00
46 lines
973 B
Bash
46 lines
973 B
Bash
|
# Copyright 1999-2017 Gentoo Foundation
|
||
|
# 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-syntax-highlighting"
|
||
|
SRC_URI=""
|
||
|
EGIT_REPO_URI="${HOMEPAGE}"
|
||
|
EGIT_COMMIT="b07ada1255b74c25fbc96901f2b77dc4bd81de1a"
|
||
|
|
||
|
LICENSE="HPND"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE=""
|
||
|
|
||
|
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-syntax-highlighting.zsh'"
|
||
|
|
||
|
MAKE_ARGS=(
|
||
|
"SHARE_DIR=${ED}/usr/share/zsh/site-contrib/${PN}"
|
||
|
"DOC_DIR=${ED}/usr/share/doc/${PF}"
|
||
|
)
|
||
|
|
||
|
src_compile() {
|
||
|
emake "${MAKE_ARGS[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake "${MAKE_ARGS[@]}" install
|
||
|
readme.gentoo_create_doc
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
readme.gentoo_print_elog
|
||
|
elog "${DOC_CONTENTS}"
|
||
|
}
|