Gentoo Archives: gentoo-dev

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-dev@l.g.o
Cc: vim@g.o
Subject: Re: [gentoo-dev] [PATCH v5 4/9] vim-plugin.eclass: EAPI 8: add src_prepare
Date: Mon, 11 Apr 2022 13:07:33
Message-Id: YlQn9SMkSAKWJ1op@sysrq.in
In Reply to: Re: [gentoo-dev] [PATCH v5 4/9] vim-plugin.eclass: EAPI 8: add src_prepare by Thomas Bracht Laumann Jespersen
1 On 2022-04-11 14:53, Thomas Bracht Laumann Jespersen wrote:
2 > > case ${EAPI} in
3 > > - 6|7|8) ;;
4 > > + 6|7) ;;
5 > > + 8) _DEFINE_VIM_PLUGIN_SRC_PREPARE=true ;;
6 > > *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
7 > > esac
8 > >
9 > > if [[ ! ${_VIM_PLUGIN_ECLASS} ]]; then
10 > >
11 > > inherit vim-doc
12 > >
13 > > +fi
14 > > +
15 > > +EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm
16 >
17 > Not sure how to deal with this best, but EXPORT_FUNCTIONS should still go
18 > _after_ the inherit guard, at the bottom of the file.
19
20 Copycat from distutils-r1. Phase functions are exported after inherits
21 outside of the guard, so it should be correct.