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/pixz/pixz-9999.ebuild

43 lines
964 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/pixz/pixz-9999.ebuild,v 1.4 2013/01/09 21:30:13 zerochaos Exp $
EAPI=4
inherit toolchain-funcs flag-o-matic
DESCRIPTION="Parallel Indexed XZ compressor"
HOMEPAGE="https://github.com/vasi/pixz"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/vasi/pixz.git"
inherit git-2
KEYWORDS=""
else
SRC_URI="https://github.com/vasi/${PN}/archive/v${PV}.zip -> ${P}.zip"
KEYWORDS="~amd64 ~arm ~x86"
fi
LICENSE="BSD-2"
SLOT="0"
IUSE="static"
LIB_DEPEND=">=app-arch/libarchive-2.8[static-libs(+)]
>=app-arch/xz-utils-5[static-libs(+)]"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
static? ( ${LIB_DEPEND} )"
src_configure() {
use static && append-ldflags -static
}
src_compile() {
emake CC="$(tc-getCC)" OPT=""
}
src_install() {
dobin pixz
dodoc README TODO
}