commit:     8e5938c433a09162e517e7e3127fa365a764ea45
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sat Jan 10 22:39:47 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Jan 10 22:39:47 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8e5938c4

sci-libs/arrayfire: Improve and clean gtest src handling

---
 sci-libs/arrayfire/arrayfire-9999.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild 
b/sci-libs/arrayfire/arrayfire-9999.ebuild
index 50aca35..107af24 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
 }
 

Reply via email to