2018-02-24 09:28:03 -08:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2018-01-01 23:58:26 -08:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit eutils vim-plugin
|
|
|
|
|
|
|
|
DESCRIPTION="vimscripts plugin: open-close pair of characters"
|
|
|
|
HOMEPAGE="https://github.com/vim-scripts/AutoClose"
|
|
|
|
SRC_URI="https://github.com/vim-scripts/AutoClose/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2018-02-24 09:28:03 -08:00
|
|
|
|
|
|
|
# unknown license, actually
|
2018-01-01 23:58:26 -08:00
|
|
|
LICENSE="vim"
|
2018-08-14 12:33:32 -07:00
|
|
|
KEYWORDS="~amd64 ~x86 ~arm"
|
2018-01-01 23:58:26 -08:00
|
|
|
|
2018-02-24 09:28:03 -08:00
|
|
|
# to enable invented use flags vim and neovim,
|
|
|
|
# they are described in metadata.xml
|
|
|
|
IUSE="+doc +vim +neovim"
|
|
|
|
|
|
|
|
# runtime dependencies
|
|
|
|
RDEPEND="
|
|
|
|
vim? ( app-editors/vim )
|
|
|
|
neovim? ( app-editors/neovim )
|
|
|
|
"
|
|
|
|
|
2018-01-01 23:58:26 -08:00
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd "${WORKDIR}"
|
|
|
|
mv AutoClose-1.2 "${P}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2018-02-24 09:28:03 -08:00
|
|
|
use vim && vim-plugin_src_install
|
|
|
|
use doc || rm -rf "${D}/usr/share/doc"
|
2018-01-01 23:58:26 -08:00
|
|
|
}
|