# 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-6.10.ebuild,v 1.1 2012/10/14 07:42:17 mgorny Exp $ EAPI=4 AUTOTOOLS_AUTORECONF=1 inherit autotools-utils flag-o-matic eutils MY_P=zpaq${PV/./} DESCRIPTION="Library to compress files 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="debug +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=3:0:0 # man-page is no longer there ac_cv_prog_POD2MAN= ) use debug || append-cppflags -DNDEBUG use jit || append-cppflags -DNOJIT autotools-utils_src_configure }