gentoo/app-vim/vimclojure/vimclojure-2.3.6-r4.ebuild
Arthur Zamarin d4a6ac09f9
app-vim/vimclojure: dekeyword x86
After a message to gentoo-dev ML, and no reply from any user on x86,

we decided to dekeyword most Java packages from x86, and reverse

dependencies of them.

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-10-17 18:30:20 +03:00

52 lines
1.1 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64"
LICENSE="BSD"
SLOT="0"
RDEPEND="dev-lang/clojure"
S="${WORKDIR}/${MY_PN}-${PV}"
DOCS=( README README.markdown )
# 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() {
rm -rv doc/LICENSE.txt bin || die
vim-plugin_src_install
}