aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2015-01-10 23:39:47 +0100
committerMarius Brehler <marbre@linux.sungazer.de>2015-01-10 23:39:47 +0100
commit8e5938c433a09162e517e7e3127fa365a764ea45 (patch)
tree3338a6ea483283e74216119fd747afc8839ce321 /sci-libs
parentsci-libs/arrayfire: Fix DEPEND, unpacker is used instead of unzip (diff)
downloadsci-8e5938c433a09162e517e7e3127fa365a764ea45.tar.gz
sci-8e5938c433a09162e517e7e3127fa365a764ea45.tar.bz2
sci-8e5938c433a09162e517e7e3127fa365a764ea45.zip
sci-libs/arrayfire: Improve and clean gtest src handling
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/arrayfire/arrayfire-9999.ebuild10
1 files changed, 6 insertions, 4 deletions
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
}