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/libzpaq/libzpaq-5.01.ebuild

41 lines
950 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/libzpaq/libzpaq-5.01.ebuild,v 1.3 2012/05/24 04:33:22 vapier Exp $
EAPI=3
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils flag-o-matic eutils
MY_P=${PN}${PV/./}
DESCRIPTION="Library to compress files or objects in the ZPAQ format"
HOMEPAGE="http://mattmahoney.net/dc/zpaq.html"
SRC_URI="http://mattmahoney.net/dc/${MY_P}.zip"
LICENSE="zpaq"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+jit static-libs"
DEPEND="app-arch/unzip"
RDEPEND=""
S=${WORKDIR}
src_prepare() {
EPATCH_OPTS+=-p1 epatch "${FILESDIR}"/0001-Add-autotools-files.patch
# XXX: update the patch instead when the old version is gone
touch libzpaqo.cpp || die
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=(
--with-library-version=2:0:0
)
use jit || append-flags -DNOJIT
autotools-utils_src_configure
}