summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-08-09 09:50:01 +0200
committerGuilherme Amadio <amadio@gentoo.org>2018-08-09 09:50:34 +0200
commit29899a71f361dfd6be73231c4d9d915009c988db (patch)
tree7880f459e66b8eff03cea7abd256582d6516d9b9 /dev-libs/xxhash/xxhash-0.6.5.ebuild
parentsys-kernel/hardened-sources: remove older version (diff)
downloadgentoo-29899a71f361dfd6be73231c4d9d915009c988db.tar.gz
gentoo-29899a71f361dfd6be73231c4d9d915009c988db.tar.bz2
gentoo-29899a71f361dfd6be73231c4d9d915009c988db.zip
dev-libs/xxhash: fix bug #663200
* Respect tc-getCC * Install man pages into usr/share/man/man1 Closes: https://bugs.gentoo.org/663200 Package-Manager: Portage-2.3.45, Repoman-2.3.10
Diffstat (limited to 'dev-libs/xxhash/xxhash-0.6.5.ebuild')
-rw-r--r--dev-libs/xxhash/xxhash-0.6.5.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-libs/xxhash/xxhash-0.6.5.ebuild b/dev-libs/xxhash/xxhash-0.6.5.ebuild
index e21fdc1aa0d..9002f980285 100644
--- a/dev-libs/xxhash/xxhash-0.6.5.ebuild
+++ b/dev-libs/xxhash/xxhash-0.6.5.ebuild
@@ -3,6 +3,8 @@
EAPI=6
+inherit toolchain-funcs
+
DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
HOMEPAGE="http://www.xxhash.com"
SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -16,8 +18,16 @@ DEPEND=""
S="${WORKDIR}/xxHash-${PV}"
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
src_install() {
- PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" emake DESTDIR="${D}" install
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ MANDIR="${EPREFIX}/usr/share/man/man1" \
+ emake DESTDIR="${D}" install
+
if ! use static-libs ; then
rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
fi