Skip to content

Commit

Permalink
dev-libs/xxhash: fix bug #663200
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
amadio committed Aug 9, 2018
1 parent bf70d99 commit 29899a7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dev-libs/xxhash/xxhash-0.6.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 29899a7

Please sign in to comment.