summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2015-12-06 08:53:56 +0100
committerMartin Väth <martin@mvath.de>2015-12-06 08:53:56 +0100
commit6c96bfe0f8e49f2c9f7bdfc82c56be013d9519c1 (patch)
tree928fa6ee883a477ff6a4ee4743da47afc17c8d78 /app-shells
parentUse BROWSER with USE_EXPAND (diff)
downloadmv-6c96bfe0f8e49f2c9f7bdfc82c56be013d9519c1.tar.gz
mv-6c96bfe0f8e49f2c9f7bdfc82c56be013d9519c1.tar.bz2
mv-6c96bfe0f8e49f2c9f7bdfc82c56be013d9519c1.zip
app-shells/zsh-syntax-highlighting: Version bump
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/zsh-syntax-highlighting/Manifest2
-rw-r--r--app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.4.0.ebuild (renamed from app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.3.0-r1.ebuild)19
-rw-r--r--app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-99999999.ebuild19
3 files changed, 31 insertions, 9 deletions
diff --git a/app-shells/zsh-syntax-highlighting/Manifest b/app-shells/zsh-syntax-highlighting/Manifest
index 134e2043..3cd28859 100644
--- a/app-shells/zsh-syntax-highlighting/Manifest
+++ b/app-shells/zsh-syntax-highlighting/Manifest
@@ -1 +1 @@
-DIST zsh-syntax-highlighting-0.3.0.tar.gz 20844 SHA256 e2b79e095eb90c539da5ff41892f0c6e8934f1c0bf93b090313172e1be441b26
+DIST zsh-syntax-highlighting-0.4.0.tar.gz 51462 SHA256 e38581310479646e8f4df7e572489b28b361c8332b186207685efbd90b3016f1
diff --git a/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.3.0-r1.ebuild b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.4.0.ebuild
index 836a82b8..5be9fa5a 100644
--- a/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.3.0-r1.ebuild
+++ b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-0.4.0.ebuild
@@ -35,6 +35,11 @@ DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
at the end of your ~/.zshrc
For testing, you can also execute the above command in your zsh."
+MAKE_ARGS=(
+ "SHARE_DIR=${ED}/usr/share/zsh/site-contrib/${PN}"
+ "DOC_DIR=${ED}/usr/share/doc/${PF}"
+)
+
src_prepare() {
grep -q 'local .*cdpath_dir' \
"${S}/highlighters/main/main-highlighter.zsh" >/dev/null 2>&1 || \
@@ -43,14 +48,20 @@ src_prepare() {
eapply_user
}
+src_compile() {
+ emake "${MAKE_ARGS[@]}"
+}
+
src_install() {
- dodoc *.md
- insinto /usr/share/zsh/site-contrib/${PN}
- doins *.zsh .revision-hash .version
- doins -r highlighters
+ emake "${MAKE_ARGS[@]}" install
readme.gentoo_create_doc
}
+src_test() {
+ emake "${MAKE_ARGS[@]}" test
+ emake "${MAKE_ARGS[@]}" perf
+}
+
pkg_postinst() {
readme.gentoo_print_elog
}
diff --git a/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-99999999.ebuild b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-99999999.ebuild
index 836a82b8..5be9fa5a 100644
--- a/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-99999999.ebuild
+++ b/app-shells/zsh-syntax-highlighting/zsh-syntax-highlighting-99999999.ebuild
@@ -35,6 +35,11 @@ DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
at the end of your ~/.zshrc
For testing, you can also execute the above command in your zsh."
+MAKE_ARGS=(
+ "SHARE_DIR=${ED}/usr/share/zsh/site-contrib/${PN}"
+ "DOC_DIR=${ED}/usr/share/doc/${PF}"
+)
+
src_prepare() {
grep -q 'local .*cdpath_dir' \
"${S}/highlighters/main/main-highlighter.zsh" >/dev/null 2>&1 || \
@@ -43,14 +48,20 @@ src_prepare() {
eapply_user
}
+src_compile() {
+ emake "${MAKE_ARGS[@]}"
+}
+
src_install() {
- dodoc *.md
- insinto /usr/share/zsh/site-contrib/${PN}
- doins *.zsh .revision-hash .version
- doins -r highlighters
+ emake "${MAKE_ARGS[@]}" install
readme.gentoo_create_doc
}
+src_test() {
+ emake "${MAKE_ARGS[@]}" test
+ emake "${MAKE_ARGS[@]}" perf
+}
+
pkg_postinst() {
readme.gentoo_print_elog
}