Diff vspec-1.9.2 with a openpgp-keys-thomasdickey-20230810

/usr/portage/sec-keys/openpgp-keys-thomasdickey/openpgp-keys-thomasdickey-20230810.ebuild 2024-12-25 14:59:52.735270182 +0300
1
# Copyright 2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit edo vim-plugin
7

  
8
DESCRIPTION="A testing framework for Vim script"
9
HOMEPAGE="
10
	https://www.vim.org/scripts/script.php?script_id=3012
11
	https://github.com/kana/vim-vspec
12
"
13
SRC_URI="https://github.com/kana/vim-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
14
S="${WORKDIR}/vim-${P}"
15

  
16
LICENSE="MIT"
17
KEYWORDS="~amd64 ~arm64 ~x86"
18
IUSE="test"
19
RESTRICT="!test? ( test )"
20

  
21
RDEPEND="dev-lang/perl:*"
22
BDEPEND="test? ( ${RDEPEND} )"
23

  
24
VIM_PLUGIN_HELPFILES="vspec.txt"
25

  
26
# Uncomment on the next release
27
#DOCS=( {README,TUTORIAL_CI}.md )
28

  
29
src_prepare() {
30
	vim-plugin_src_prepare
31

  
32
	# remove failing tests
33
	rm t/{indent,syntax}.vim || die
34
}
35

  
36
src_test() {
37
	export LC_ALL=C
38
	edo ./bin/prove-vspec
39
}
6
DESCRIPTION="OpenPGP keys used by Thomas Dickey"
7
HOMEPAGE="https://invisible-island.net/public/public.html"
8
# Expired, so we get the refreshed one from keyservers
9
#SRC_URI="https://invisible-island.net/public/dickey@invisible-island.net-rsa3072.asc -> ${P}-dickey@invisible-island.net-rsa3072.asc"
10
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.asc"
11
S="${WORKDIR}"
12

  
13
LICENSE="public-domain"
14
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
40 16

  
41 17
src_install() {
42
	# fix paths for the binary to be installed; don't do it in src_prepare
43
	# as it will make the tests fail
44
	sed "s|\$0|${EPREFIX}/usr/share/vim/vimfiles/bin/vspec|g" \
45
		-i bin/vspec || die
46

  
47
	vim-plugin_src_install bin
48

  
49
	fperms +x /usr/share/vim/vimfiles/bin/{vspec,prove-vspec}
50
	dosym -r {/usr/share/vim/vimfiles,/usr}/bin/vspec
51
	dosym -r {/usr/share/vim/vimfiles,/usr}/bin/prove-vspec
18
	local files=( ${A} )
19
	insinto /usr/share/openpgp-keys
20
	newins - thomasdickey.asc < <(cat "${files[@]/#/${DISTDIR}/}" || die)
52 21
}
Thank you!