2022-04-03 15:48:25 +02:00
|
|
|
# Copyright 2021-2022 Gentoo Authors
|
2021-06-19 20:56:49 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-06-06 13:52:59 +02:00
|
|
|
EAPI="8"
|
2021-06-19 20:56:49 +02:00
|
|
|
|
|
|
|
inherit vim-plugin
|
2022-07-04 23:11:57 +02:00
|
|
|
COMMIT_ID="e23b98a8852255766e54bf7723a9d61fb5ab3143"
|
2021-06-19 20:56:49 +02:00
|
|
|
|
|
|
|
DESCRIPTION="vim plugin: Multiple cursors plugin for vim/neovim"
|
|
|
|
HOMEPAGE="https://github.com/mg979/vim-visual-multi"
|
|
|
|
LICENSE="MIT"
|
|
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/mg979/vim-visual-multi.git"
|
|
|
|
else
|
|
|
|
if [[ ${PV} == *_p* ]]; then
|
|
|
|
SRC_URI="https://github.com/mg979/vim-${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/vim-${PN}-${COMMIT_ID}"
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/tpope/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/vim-${P}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DOCS=( README.md )
|
|
|
|
|
2021-12-02 21:27:15 +01:00
|
|
|
src_prepare(){
|
|
|
|
if ! use test; then
|
|
|
|
rm -r test || die
|
|
|
|
fi
|
|
|
|
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
2021-06-19 20:56:49 +02:00
|
|
|
pkg_postinst(){
|
|
|
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
|
|
|
# ^this is a new installation, so:
|
|
|
|
elog ""
|
|
|
|
elog "To start the visual-mode tutorial, run:"
|
|
|
|
elog "vim -Nu /usr/share/vim/vimfiles/doc/vm-tutorial"
|
|
|
|
fi
|
|
|
|
}
|