| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq/zpaq-2.05.ebuild,v 1.5 2012/05/24 04:35:17 vapier Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
AUTOTOOLS_AUTORECONF=1
|
| 8 |
inherit autotools-utils eutils
|
| 9 |
|
| 10 |
MY_P=${PN}.${PV/./}
|
| 11 |
DESCRIPTION="A unified compressor for PAQ algorithms"
|
| 12 |
HOMEPAGE="http://mattmahoney.net/dc/zpaq.html"
|
| 13 |
SRC_URI="http://mattmahoney.net/dc/${MY_P}.zip"
|
| 14 |
|
| 15 |
LICENSE="GPL-3"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~x86"
|
| 18 |
IUSE="debug"
|
| 19 |
|
| 20 |
RDEPEND="=app-arch/libzpaq-2*"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
app-arch/unzip"
|
| 23 |
|
| 24 |
S=${WORKDIR}
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
EPATCH_OPTS+=-p1 epatch "${FILESDIR}"/${PN}-${PV%.*}-autotools.patch
|
| 28 |
autotools-utils_src_prepare
|
| 29 |
}
|
| 30 |
|
| 31 |
src_configure() {
|
| 32 |
local myeconfargs=(
|
| 33 |
$(use_enable debug)
|
| 34 |
)
|
| 35 |
|
| 36 |
autotools-utils_src_configure
|
| 37 |
}
|
| 38 |
|
| 39 |
pkg_postinst() {
|
| 40 |
elog "You may also want to install app-arch/zpaq-extras package which provides"
|
| 41 |
elog "few additional configs and preprocessors for use with zpaq."
|
| 42 |
}
|