From 8e5938c433a09162e517e7e3127fa365a764ea45 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Sat, 10 Jan 2015 23:39:47 +0100 Subject: sci-libs/arrayfire: Improve and clean gtest src handling --- sci-libs/arrayfire/arrayfire-9999.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sci-libs') diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild b/sci-libs/arrayfire/arrayfire-9999.ebuild index 50aca3583..107af240e 100644 --- a/sci-libs/arrayfire/arrayfire-9999.ebuild +++ b/sci-libs/arrayfire/arrayfire-9999.ebuild @@ -4,12 +4,14 @@ EAPI=5 -inherit cmake-utils git-r3 unpacker +inherit cmake-utils git-r3 + +GTEST_PV="1.7.0" DESCRIPTION="A general purpose GPU library." HOMEPAGE="http://www.arrayfire.com/" EGIT_REPO_URI="https://github.com/arrayfire/arrayfire.git" -SRC_URI="test? ( https://googletest.googlecode.com/files/gtest-1.7.0.zip )" +SRC_URI="test? ( https://googletest.googlecode.com/files/gtest-${GTEST_PV}.zip )" KEYWORDS="~amd64" LICENSE="BSD" @@ -51,8 +53,8 @@ src_unpack() { if use test; then mkdir -p "${BUILD_DIR}"/third_party/src/ || die cd "${BUILD_DIR}"/third_party/src/ || die - unpack_zip "${DISTDIR}/"gtest-1.7.0.zip - mv "${BUILD_DIR}"/third_party/src/gtest-1.7.0 "${BUILD_DIR}"/third_party/src/googletest || die + unpack ${A} + mv "${BUILD_DIR}"/third_party/src/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die fi } -- cgit v1.2.3