add zsh-syntax-highlighting-7.1

This commit is contained in:
layman 2020-03-05 08:56:08 -08:00
parent c136fb66e9
commit f5956d2f5f
2 changed files with 47 additions and 0 deletions

View File

@ -1,5 +1,7 @@
DIST zsh-syntax-highlighting-0.6.0.tar.gz 111534 BLAKE2B 0d52f462075106dca4b0675b6d1e10b257fa1e0e6415c4f8bac7e1b4d9c94d606362624ff11d071eb565f17c3c81a25ae1f8bd0b44a3239ba747638aeab7ef1f SHA512 bb83f41336e9010aa78ee5adc9a216ee53f3b4347041d1b273083940d9db4d0e4acd960150b28c41f6e5e8d00b029f00fca6f9a46955892e4547a9f2345e3b85
DIST zsh-syntax-highlighting-0.7.1.tar.gz 133554 BLAKE2B cd55a0ad69670b25edc4bfa78ad76d1e2ef501deeca3e93adbef0aca305896722b4906d7717be3ad61bc0cf6b6496e217626406e5ff4168ece4b75bffd94bbf0 SHA512 e7e86b88cdac9b9ed5f973823ba8efff99dd720b9ed929f765f9f9266b9d6e147274f5957ceb630d51a660e396fc22e97f10cfbc5cdde941b907f3773bb1ea2b
EBUILD zsh-syntax-highlighting-0.6.0-r1.ebuild 1114 BLAKE2B fa97d8c3e84b6002ff95eafd1624003c94706bc75808ee3058b2f933eea618f39c999cb280dcffc1db660f7dae0be5141e3dda97e4b73f428276e3dff20e4393 SHA512 93b9f0e398d7dc980413269556ef48e4e5a3be391954c1486498ce3ccbaf069424b11b2a52973efb78afa947cbfb29fe776eafa9a2277fb5bba09d5e6a4d30d8
EBUILD zsh-syntax-highlighting-0.6.0.ebuild 1112 BLAKE2B a02f8f454adc127389158b3fae3c81efac62aff0074e443237c5eeb50dae8c23397db1b6d9382f8fb04916f5aefd5759fd3f96482622cf1fb996f1fe5e50a1f7 SHA512 77bf48aff4fe84f5d5702e3e79cf620014e91afbd7d05e681a90392e742ec572b0160004c0697a27cd7de9d0c8d783033b6e49c8b896814d28e7c4c5de7d256d
EBUILD zsh-syntax-highlighting-0.7.1.ebuild 1112 BLAKE2B a02f8f454adc127389158b3fae3c81efac62aff0074e443237c5eeb50dae8c23397db1b6d9382f8fb04916f5aefd5759fd3f96482622cf1fb996f1fe5e50a1f7 SHA512 77bf48aff4fe84f5d5702e3e79cf620014e91afbd7d05e681a90392e742ec572b0160004c0697a27cd7de9d0c8d783033b6e49c8b896814d28e7c4c5de7d256d
MISC README.md 113 BLAKE2B a534676440654cc1c66a30ae58d61f74be16545ade8430d5fbf80b56084857ecbcf2a9307c4b8dd79fe6a4ef185986cbeb2ce03679016c211bf387ad3cc4e74a SHA512 35ccccbf60e7f523bdc218ba111c370ce7715f9bd33152c690d6f7ddac3e6239be6e556fca0a8a1e39ea17db81a24b256438593ea337660efcc602b4a5d850aa
MISC metadata.xml 222 BLAKE2B f0ecd2d956de9c731b8a6b6860f8756cb8dba0591f73463ce32d2747a1aa21296886faea89feee2b208286bbcdfe8e2e0a64263a92e954615fa94e2852d933d5 SHA512 dad470f0096a4fb3af9eeb60dab3216ece032790f6c49a3b014799ee0c02dee96a67317a672344e32f5614c5e05419727cc99113c6ecc37ae594931dd6441eef

View File

@ -0,0 +1,45 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils readme.gentoo-r1
DESCRIPTION="Fish shell-like syntax highlighting for Zsh"
HOMEPAGE="https://github.com/zsh-users/zsh-syntax-highlighting"
SRC_URI="https://github.com/zsh-users/zsh-syntax-highlighting/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="HPND"
SLOT="0"
KEYWORDS="amd64 arm"
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-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
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"
}
pkg_postinst() {
use doc && readme.gentoo_print_elog
elog "${DOC_CONTENTS}"
}