summaryrefslogtreecommitdiff
blob: e89a54af4fba20febc88da5c1fab854fea6b7928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/unpaper/unpaper-0.3.ebuild,v 1.1 2009/09/05 10:59:15 flameeyes Exp $

inherit toolchain-funcs

DESCRIPTION="Post-processor for scanned and photocopied book pages"
HOMEPAGE="http://unpaper.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"

LICENSE="GPL-2"

KEYWORDS="~amd64"
SLOT="0"
IUSE=""

doecho() {
	echo "$@"
	"$@"
}

src_compile() {
	doecho $(tc-getCC) ${LDFLAGS} ${CFLAGS} src/unpaper.c -o unpaper -lm \
		|| die "unable to build unpaper"
}

src_install() {
	dobin unpaper || die
	dodoc CHANGELOG README || die
	dohtml -r doc/* || die
}