diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-02-15 00:27:26 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-02-15 00:27:26 +0100 |
commit | 73cfc2c64d19fe3abd9fce807df416a4128e7f5e (patch) | |
tree | 0db6fd58b19acba70718e8f6b940af414e39305f /app-emacs/wgrep | |
parent | dev-python/simber: bump to 0.2.6 (diff) | |
download | gentoo-73cfc2c64d19fe3abd9fce807df416a4128e7f5e.tar.gz gentoo-73cfc2c64d19fe3abd9fce807df416a4128e7f5e.tar.bz2 gentoo-73cfc2c64d19fe3abd9fce807df416a4128e7f5e.zip |
app-emacs/wgrep: remove wgrep-test.el if USE=-test
Closes: https://bugs.gentoo.org/894444
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/wgrep')
-rw-r--r-- | app-emacs/wgrep/wgrep-3.0.0-r1.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app-emacs/wgrep/wgrep-3.0.0-r1.ebuild b/app-emacs/wgrep/wgrep-3.0.0-r1.ebuild index fe274279b0a2..2ab08805b3a0 100644 --- a/app-emacs/wgrep/wgrep-3.0.0-r1.ebuild +++ b/app-emacs/wgrep/wgrep-3.0.0-r1.ebuild @@ -34,13 +34,23 @@ DOC_CONTENTS="See commentary in ${SITELISP}/${PN}/wgrep.el for documentation. \n\t(require 'wgrep)" SITEFILE="50${PN}-gentoo.el" +src_prepare() { + if ! use test ; then + rm ${PN}-test.el || die + fi + + elisp_src_prepare +} + src_test() { ${EMACS} ${EMACSFLAGS} -L . -l ${PN}.el -l ${PN}-test.el \ -f ert-run-tests-batch-and-exit || die "tests failed" } src_install() { - rm ${PN}-test.el{,c} || die + if use test ; then + rm ${PN}-test.el{,c} || die + fi elisp_src_install } |