1 |
commit: a1b023b1aca3f233578196fa7f7409b4565b2611 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 11:27:46 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 8 11:52:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1b023b1 |
7 |
|
8 |
app-shells/zsh-syntax-highlighting: Initial commit |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
app-shells/zsh-syntax-highlighting/Manifest | 1 + |
14 |
app-shells/zsh-syntax-highlighting/metadata.xml | 8 +++++ |
15 |
.../zsh-syntax-highlighting-0.7.0_beta1.ebuild | 42 ++++++++++++++++++++++ |
16 |
3 files changed, 51 insertions(+) |
17 |
|
18 |
diff --git a/app-shells/zsh-syntax-highlighting/Manifest b/app-shells/zsh-syntax-highlighting/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..a557f61f9dd |
21 |
--- /dev/null |
22 |
+++ b/app-shells/zsh-syntax-highlighting/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST zsh-syntax-highlighting-0.7.0_beta1.tar.gz 130063 BLAKE2B cf0f6319af22b47cb8a280de682a69b0479dc59033be5ce84840507b77dd2df0441b8d260af55bccb303c87d7f5a7e4cc6db9f46860aee040b4b8115c76f5e07 SHA512 1692015aad58103c752e2dd4161ea87f26aaa09d34eb2faec1f651fea1d9bfad29226455468017160a5393a87c1f7ed0514b09b0802b1810377beef72bfa6c87 |
25 |
|
26 |
diff --git a/app-shells/zsh-syntax-highlighting/metadata.xml b/app-shells/zsh-syntax-highlighting/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..203fa55c746 |
29 |
--- /dev/null |
30 |
+++ b/app-shells/zsh-syntax-highlighting/metadata.xml |
31 |
@@ -0,0 +1,8 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+<maintainer type="person"> |
36 |
+ <email>zlogene@g.o</email> |
37 |
+ <name>Mikle Kolyada</name> |
38 |
+</maintainer> |
39 |
+</pkgmetadata> |
40 |
|
41 |
diff --git a/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.7.0_beta1.ebuild b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.7.0_beta1.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..8ca8ffb2e2b |
44 |
--- /dev/null |
45 |
+++ b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.7.0_beta1.ebuild |
46 |
@@ -0,0 +1,42 @@ |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=7 |
51 |
+ |
52 |
+inherit readme.gentoo-r1 |
53 |
+ |
54 |
+if [[ -z ${PV%%*9999} ]]; then |
55 |
+ EGIT_REPO_URI="https://github.com/zsh-users/${PN}.git" |
56 |
+ inherit git-r3 |
57 |
+else |
58 |
+ MY_PV=$(ver_rs 3 -) |
59 |
+ SRC_URI="https://github.com/zsh-users/zsh-syntax-highlighting/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
60 |
+ KEYWORDS="~amd64 ~x86" |
61 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
62 |
+fi |
63 |
+ |
64 |
+DESCRIPTION="Fish shell like syntax highlighting for zsh" |
65 |
+HOMEPAGE="https://github.com/zsh-users/zsh-syntax-highlighting" |
66 |
+ |
67 |
+LICENSE="BSD" |
68 |
+SLOT="0" |
69 |
+ |
70 |
+RDEPEND="app-shells/zsh" |
71 |
+ |
72 |
+DISABLE_AUTOFORMATTING="true" |
73 |
+DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add |
74 |
+. /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh |
75 |
+at the end of your ~/.zshrc" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ sed -i -e 's/COPYING.md//' Makefile || die |
79 |
+ default |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ emake \ |
84 |
+ SHARE_DIR="${ED}/usr/share/zsh/site-functions" \ |
85 |
+ DOC_DIR="${ED}/usr/share/doc/${PF}" \ |
86 |
+ install |
87 |
+ readme.gentoo_create_doc |
88 |
+} |