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/lzma/lzma-4.63.ebuild

34 lines
964 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma/lzma-4.63.ebuild,v 1.3 2012/11/19 12:50:45 jer Exp $
inherit toolchain-funcs
DESCRIPTION="LZMA Stream Compressor from the SDK"
HOMEPAGE="http://www.7-zip.org/sdk.html"
SRC_URI="mirror://sourceforge/sevenzip/${PN}463.tar.bz2"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~arm ~amd64 ~ia64 ~mips ~sparc ~x86"
IUSE="doc"
S=${WORKDIR}
src_compile() {
cd CPP/7zip/Compress/LZMA_Alone
emake -f makefile.gcc \
CXX="$(tc-getCXX) ${CXXFLAGS}" \
CXX_C="$(tc-getCC) ${CFLAGS}" \
|| die "Make failed"
}
src_install() {
newbin CPP/7zip/Compress/LZMA_Alone/lzma lzma_alone|| die
dodoc history.txt
use doc && dodoc 7zC.txt 7zFormat.txt lzma.txt Methods.txt
einfo "Starting from app-arch/lzma version 4.63 binary name was changed"
einfo "to /usr/bin/lzma_alone to avoid conflict with lzma-utils package"
}