Diff wgrep-2.3.2 with a wgrep-3.0.0-r1
/usr/portage/app-emacs/wgrep/wgrep-3.0.0-r1.ebuild 2023-10-09 14:52:28.720368331 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2020 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 | 6 |
inherit elisp readme.gentoo-r1 |
7 | 7 | |
8 | 8 |
DESCRIPTION="Writable grep buffer and apply the changes to files" |
9 |
HOMEPAGE="https://github.com/mhayashi1120/Emacs-wgrep" |
|
10 |
SRC_URI="https://github.com/mhayashi1120/Emacs-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
|
9 |
HOMEPAGE="https://github.com/mhayashi1120/Emacs-wgrep/" |
|
10 |
SRC_URI="https://github.com/mhayashi1120/Emacs-${PN}/archive/${PV}.tar.gz |
|
11 |
-> ${P}.tar.gz" |
|
12 |
S="${WORKDIR}"/Emacs-${P} |
|
11 | 13 | |
12 | 14 |
LICENSE="GPL-3+" |
13 | 15 |
SLOT="0" |
14 | 16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="test" |
|
18 |
RESTRICT="!test? ( test )" |
|
15 | 19 | |
16 |
S="${WORKDIR}/Emacs-${P}" |
|
17 |
SITEFILE="50${PN}-gentoo.el" |
|
20 |
BDEPEND=" |
|
21 |
test? ( |
|
22 |
app-emacs/s |
|
23 |
app-emacs/dash |
|
24 |
) |
|
25 |
" |
|
26 | ||
27 |
ELISP_REMOVE="${PN}-subtest.el" |
|
28 | ||
29 |
DOCS=( README.md ) |
|
18 | 30 |
DOC_CONTENTS="See commentary in ${SITELISP}/${PN}/wgrep.el for documentation. |
19 | 31 |
\n\nTo activate wgrep, add the following line to your ~/.emacs file: |
20 | 32 |
\n\t(require 'wgrep)" |
33 |
SITEFILE="50${PN}-gentoo.el" |
|
34 | ||
35 |
src_prepare() { |
|
36 |
if ! use test ; then |
|
37 |
rm ${PN}-test.el || die |
|
38 |
fi |
|
39 | ||
40 |
elisp_src_prepare |
|
41 |
} |
|
42 | ||
43 |
src_test() { |
|
44 |
${EMACS} ${EMACSFLAGS} -L . -l ${PN}.el -l ${PN}-test.el \ |
|
45 |
-f ert-run-tests-batch-and-exit || die "tests failed" |
|
46 |
} |
|
47 | ||
48 |
src_install() { |
|
49 |
if use test ; then |
|
50 |
rm ${PN}-test.el{,c} || die |
|
51 |
fi |
|
52 | ||
53 |
elisp_src_install |
|
54 |
} |