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

43 lines
1.0 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/unpaper/unpaper-9999.ebuild,v 1.7 2015/02/01 22:44:15 mgorny Exp $
EAPI=5
inherit autotools-utils
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/Flameeyes/unpaper.git"
inherit git-2 autotools
else
SRC_URI="https://www.flameeyes.eu/files/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Post-processor for scanned and photocopied book pages"
HOMEPAGE="https://www.flameeyes.eu/projects/unpaper"
LICENSE="GPL-2"
SLOT="0"
IUSE="libav test"
RDEPEND="
libav? ( >=media-video/libav-10:0=[encode] )
!libav? ( >=media-video/ffmpeg-2:0=[encode] )"
DEPEND="dev-libs/libxslt
app-text/docbook-xsl-ns-stylesheets
virtual/pkgconfig
${RDEPEND}"
# gcc can generate slightly different code that leads to slightly different
# images. Wait until we get a better testsuite.
RESTRICT="test"
if [[ ${PV} == 9999 ]]; then
src_prepare() {
eautoreconf
autotools-utils_src_prepare
}
fi