summaryrefslogtreecommitdiff
path: root/app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-05-28 21:48:46 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-05-30 01:24:50 +0200
commit121d5f974bfdc485c15f3efdb02e629ba1159b93 (patch)
tree84949ed2016f3e708c15936e3a2126987ea3f02e /app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild
parent6b694519498b25575e68069b53784246c219e2fd (diff)
downloadgentoo-121d5f974bfdc485c15f3efdb02e629ba1159b93.tar.gz
gentoo-121d5f974bfdc485c15f3efdb02e629ba1159b93.tar.bz2
gentoo-121d5f974bfdc485c15f3efdb02e629ba1159b93.zip
app-vim/vimclojure: version bump.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild')
-rw-r--r--app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild b/app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild
new file mode 100644
index 000000000000..2bf1249e8565
--- /dev/null
+++ b/app-vim/vimclojure/vimclojure-2.3.6-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit vim-plugin
+
+MY_PN="VimClojure"
+
+DESCRIPTION="vim plugin: Clojure syntax highlighting, filetype and indent settings"
+HOMEPAGE="https://github.com/vim-scripts/VimClojure"
+SRC_URI="https://github.com/vim-scripts/${MY_PN}/archive/${PV}.zip -> ${P}.zip"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND="dev-lang/clojure"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+DOCS=( doc/LICENSE.txt )
+
+# Files with similar names are already installed by app-vim/slimv.
+DUPLICATE_FILES=(
+ indent/clojure.vim
+ ftdetect/clojure.vim
+)
+
+src_prepare() {
+ default
+
+ # Remove .bat files.
+ find . -type f -name \*.bat -exec rm -v {} \; || die
+
+ # Let's simply rename ${DUPLICATE_FILES[@]}.
+ local f
+ for f in "${DUPLICATE_FILES[@]}"; do
+ [[ -f "${f}" ]] || die "Couldn't find ${f}"
+ bname="${f##*/}"
+ path="${f%/*}"
+ noext="${bname%%.*}"
+ newname="${path}/${PN}_${noext}.vim"
+ mv -v "${f}" "${newname}" || die
+ done
+}
+
+src_install() {
+ einstalldocs
+ rm -rv "${DOCS[@]}" bin || die
+ vim-plugin_src_install
+}