You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/lz4/lz4-9999.ebuild

44 lines
1.0 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lz4/lz4-9999.ebuild,v 1.12 2014/08/13 18:45:21 blueness Exp $
EAPI=5
inherit multilib multilib-minimal
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git"
EGIT_BRANCH=dev
else
SRC_URI="http://dev.gentoo.org/~ryao/dist/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux"
fi
DESCRIPTION="Extremely Fast Compression algorithm"
HOMEPAGE="https://code.google.com/p/lz4/"
LICENSE="BSD-2 GPL-2"
SLOT="0"
IUSE="test"
RDEPEND=""
DEPEND="test? ( dev-util/valgrind )"
src_prepare() {
multilib_copy_sources
}
multilib_src_compile() {
# we must not use the 'all' target since it builds test programs
# & extra -m32 executables
emake
emake -C programs
}
multilib_src_install() {
emake install DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
}