diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-vim/vspec/vspec-1.9.2.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'app-vim/vspec/vspec-1.9.2.ebuild')
-rw-r--r-- | app-vim/vspec/vspec-1.9.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-vim/vspec/vspec-1.9.2.ebuild b/app-vim/vspec/vspec-1.9.2.ebuild new file mode 100644 index 000000000000..5dcd6e400cb4 --- /dev/null +++ b/app-vim/vspec/vspec-1.9.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo vim-plugin + +DESCRIPTION="A testing framework for Vim script" +HOMEPAGE=" + https://www.vim.org/scripts/script.php?script_id=3012 + https://github.com/kana/vim-vspec +" +SRC_URI="https://github.com/kana/vim-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/vim-${P}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/perl:*" +BDEPEND="test? ( ${RDEPEND} )" + +VIM_PLUGIN_HELPFILES="vspec.txt" + +# Uncomment on the next release +#DOCS=( {README,TUTORIAL_CI}.md ) + +src_prepare() { + vim-plugin_src_prepare + + # remove failing tests + rm t/{indent,syntax}.vim || die +} + +src_test() { + export LC_ALL=C + edo ./bin/prove-vspec +} + +src_install() { + # fix paths for the binary to be installed; don't do it in src_prepare + # as it will make the tests fail + sed "s|\$0|${EPREFIX}/usr/share/vim/vimfiles/bin/vspec|g" \ + -i bin/vspec || die + + vim-plugin_src_install bin + + fperms +x /usr/share/vim/vimfiles/bin/{vspec,prove-vspec} + dosym -r {/usr/share/vim/vimfiles,/usr}/bin/vspec + dosym -r {/usr/share/vim/vimfiles,/usr}/bin/prove-vspec +} |