From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1332044-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 14143158086
	for <garchives@archives.gentoo.org>; Wed, 20 Oct 2021 03:10:53 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3CC2EE0841;
	Wed, 20 Oct 2021 03:10:52 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1E9B9E0841
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Oct 2021 03:10:52 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B7927342CC9
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Oct 2021 03:10:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 32CF8162
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Oct 2021 03:10:49 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1634699432.7644d1ccb7a14f8b0076002081f8c92f8abd9c43.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
X-VCS-Directories: dev-python/citeproc-py/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 7644d1ccb7a14f8b0076002081f8c92f8abd9c43
X-VCS-Branch: master
Date: Wed, 20 Oct 2021 03:10:49 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 7bdecb55-6ea8-46a7-99e3-f4ae4bb458e4
X-Archives-Hash: 2bc3b756a044ecb0f6db3f3dd404c881

commit:     7644d1ccb7a14f8b0076002081f8c92f8abd9c43
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 20 03:09:51 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 20 03:10:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7644d1cc

dev-python/citeproc-py: fix installation without tests, simplify

- distutils_enable_tests handles IUSE=test, RESTRICT, and BDEPEND="test? ( ${RDEPEND} )"
  for us.

- Don't try to mv a directory which won't exist if USE=-test.

See: https://github.com/gentoo/gentoo/pull/22283
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index d69a3058ef1..6aaa4f52d37 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -21,19 +21,20 @@ SRC_URI="
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="test"
 
 BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
 RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
-DEPEND="test? ( ${RDEPEND} )"
 
 PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" )
 
 distutils_enable_tests nose
 
 src_prepare() {
-	default_src_prepare
-	mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die
+	default
+
+	if use test ; then
+		mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die
+	fi
 }
 
 python_test() {