Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycuda/
Date: Wed, 16 Dec 2015 08:49:21
Message-Id: 1450255752.724530ca465628f494ba6b44a6caf6615557bc9e.jlec@gentoo
1 commit: 724530ca465628f494ba6b44a6caf6615557bc9e
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 15 16:12:51 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 16 08:49:12 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=724530ca
7
8 dev-python/pycuda: Check BUILD_DIR existance before creation
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568290
11
12 Package-Manager: portage-2.2.26
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 dev-python/pycuda/pycuda-2014.1.ebuild | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-python/pycuda/pycuda-2014.1.ebuild b/dev-python/pycuda/pycuda-2014.1.ebuild
19 index bfb7af9..5498282 100644
20 --- a/dev-python/pycuda/pycuda-2014.1.ebuild
21 +++ b/dev-python/pycuda/pycuda-2014.1.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2014 Gentoo Foundation
24 +# Copyright 1999-2015 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 # $Id$
27
28 @@ -52,7 +52,7 @@ python_configure() {
29 local myopts=()
30 use opengl && myopts+=( --cuda-enable-gl )
31
32 - mkdir "${BUILD_DIR}" || die
33 + [[ -d "${BUILD_DIR}" ]] || mkdir "${BUILD_DIR}" || die
34 cd "${BUILD_DIR}" || die
35 [[ -e ./siteconf.py ]] && rm -f ./siteconf.py
36 "${EPYTHON}" "${S}"/configure.py \