Gentoo Archives: gentoo-dev

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 2/2] vim-plugin.eclass: support EAPI 8
Date: Wed, 06 Apr 2022 10:03:09
Message-Id: Yk1lT4oTsu7FfRZR@sysrq.in
In Reply to: Re: [gentoo-dev] [PATCH 2/2] vim-plugin.eclass: support EAPI 8 by Anna Vyalkova
1 On 2022-04-06 14:56, Anna Vyalkova wrote:
2 > Current vim eclass is supposed to use distfiles from Gentoo devspaces
3 > but not from GitHub and forges.
4 >
5 > Could you change vim-plugin_src_install behavior for EAPI 8? So it
6 > installs not all directories but only whitelisted ones? I'd appreciate
7 > this change.
8
9 P.S. Also I propose a function that helps to avoid file conflicts with
10 other plugins. See what I'm using in ebuilds now for reference.
11
12 src_prepare() {
13 default
14
15 # avoid collision with other packages
16 cd after/syntax || die
17 for file in *.vim; do
18 mkdir "${file%.vim}" || die
19 mv "${file}" "${file%.vim}/${PN}.vim" || die
20 done
21 }