2018-02-23 13:02:40 -08:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2018-02-19 14:35:31 -08:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit eutils git-r3 readme.gentoo-r1
|
|
|
|
|
2018-06-12 04:51:46 -07:00
|
|
|
DESCRIPTION="Fish shell-like syntax highlighting for Zsh"
|
2018-02-19 14:35:31 -08:00
|
|
|
HOMEPAGE="https://github.com/zsh-users/zsh-syntax-highlighting"
|
|
|
|
SRC_URI=""
|
|
|
|
EGIT_REPO_URI="${HOMEPAGE}"
|
|
|
|
EGIT_COMMIT="15e288a25ca0fbad5ad3aeddf134910ee2cf5e8a"
|
2018-02-23 13:02:40 -08:00
|
|
|
PROPERTIES="live"
|
2018-02-19 14:35:31 -08:00
|
|
|
|
|
|
|
LICENSE="HPND"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2018-02-23 13:02:40 -08:00
|
|
|
IUSE="+doc"
|
2018-02-19 14:35:31 -08:00
|
|
|
|
|
|
|
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
|
2018-02-23 13:02:40 -08:00
|
|
|
use doc && dodoc changelog.md COPYING.md HACKING.md INSTALL.md README.md release.md
|
|
|
|
use doc && readme.gentoo_create_doc
|
|
|
|
use doc || rm -rf "${D}/usr/share/doc"
|
2018-02-19 14:35:31 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2018-02-23 13:02:40 -08:00
|
|
|
use doc && readme.gentoo_print_elog
|
2018-02-19 14:35:31 -08:00
|
|
|
elog "${DOC_CONTENTS}"
|
|
|
|
}
|