From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 88C1C15800F for ; Tue, 14 Feb 2023 23:33:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9027FE07AE; Tue, 14 Feb 2023 23:33:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22F33E07AE for ; Tue, 14 Feb 2023 23:33:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F47E335CD3 for ; Tue, 14 Feb 2023 23:33:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 960368AB for ; Tue, 14 Feb 2023 23:33:53 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1676417246.73cfc2c64d19fe3abd9fce807df416a4128e7f5e.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/wgrep/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/wgrep/wgrep-3.0.0-r1.ebuild X-VCS-Directories: app-emacs/wgrep/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 73cfc2c64d19fe3abd9fce807df416a4128e7f5e X-VCS-Branch: master Date: Tue, 14 Feb 2023 23:33:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9ec7bbc6-8a29-44be-b0e1-8f8bf94638a0 X-Archives-Hash: 1cabca74f0dbb8cdc24d9497d5e2dacc commit: 73cfc2c64d19fe3abd9fce807df416a4128e7f5e Author: Maciej Barć gentoo org> AuthorDate: Tue Feb 14 23:27:26 2023 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Feb 14 23:27:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73cfc2c6 app-emacs/wgrep: remove wgrep-test.el if USE=-test Closes: https://bugs.gentoo.org/894444 Signed-off-by: Maciej Barć gentoo.org> app-emacs/wgrep/wgrep-3.0.0-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 }