summaryrefslogtreecommitdiff
blob: 030cd99d78def70d0228c6b55c992228364429b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header $

EAPI="4"
EGIT_REPO_URI="git://github.com/zsh-users/zsh-syntax-highlighting.git"
[ -n "${EVCS_OFFLINE}" ] || EGIT_REPACK=true
inherit base git-2

DESCRIPTION="Fish shell like syntax highlighting for zsh"
HOMEPAGE="https://github.com/zsh-users/zsh-syntax-highlighting"

LICENSE="as-is"
SLOT="0"
# Since this is a live ebuild, we require ACCEPT_KEYWORDS='**'
#KEYWORDS="~amd64 ~x86"
KEYWORDS=""
IUSE=""
PROPERTIES="live"

RDEPEND="app-shells/zsh"
DEPEND=""

src_install() {
	dodoc *.md
	insinto /usr/share/zsh/site-contrib
	doins *.zsh
	doins -r highlighters
}

pkg_postinst() {
	elog "In order to use ${CATEGORY}/${PN} add"
	elog ". /usr/share/zsh/site-contrib/zsh-syntax-highlighting.zsh"
	elog "at the end of your ~/.zshrc"
	elog "For testing, you can also execute the above command in your zsh."
}