blob: bfc811860983331538ef95e2f2b20ace6edb97c5 [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit flag-o-matic multilib
DESCRIPTION="Small XZ decompressor"
HOMEPAGE="http://tukaani.org/xz/embedded.html"
SRC_URI="http://tukaani.org/xz/xz-embedded-${PV}.tar.gz"
# See top-level COPYING file for the license description.
LICENSE="public-domain"
SLOT="0"
KEYWORDS="*"
IUSE=""
src_unpack() {
default
cp "${FILESDIR}"/{Makefile,xz-embedded.pc.in} "${S}" || die "Copying files"
}
src_prepare() {
# Enable support for BCJ filters for the common architectures. See other
# available architectures in userspace/xz_config.h.
append-cppflags -DXZ_DEC_X86 -DXZ_DEC_ARM -DXZ_DEC_ARMTHUMB
}
src_configure() {
export GENTOO_LIBDIR=$(get_libdir)
tc-export AR CC
}