unitas/media-gfx/gscan2pdf/gscan2pdf-1.3.0.ebuild

76 lines
1.8 KiB
Bash
Raw Normal View History

2015-03-25 10:21:28 +01:00
# Copyright 1999-2015 Gentoo Foundation
2014-11-24 14:36:23 +01:00
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2015-03-25 10:21:28 +01:00
EAPI="5"
2014-11-24 14:36:23 +01:00
inherit perl-app
DESCRIPTION="GUI to produce PDF or DjVu files from scanned documents"
HOMEPAGE="http://gscan2pdf.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
# https://bugs.gentoo.org/show_bug.cgi?id=254704
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# test only: dev-perl/Test-Perl-Critic
# >=virtual/perl-version-0.990.800 due to #505524
DEPEND="sys-devel/gettext"
RDEPEND="dev-lang/perl[ithreads]
2015-05-11 15:16:51 +02:00
>=dev-perl/Config-General-2.40
2014-11-24 14:36:23 +01:00
>=dev-perl/glib-perl-1.100-r1
dev-perl/Goo-Canvas
dev-perl/Gtk2-Ex-Simple-List
dev-perl/Gtk2-ImageView
>=dev-perl/gtk2-perl-1.043.1
dev-perl/HTML-Parser
dev-perl/List-MoreUtils
>=dev-perl/Locale-gettext-1.50
dev-perl/Log-Log4perl
dev-perl/PDF-API2
dev-perl/Proc-ProcessTable
dev-perl/Readonly-XS
dev-perl/Sane
dev-perl/Set-IntSpan
dev-perl/Try-Tiny
virtual/perl-Archive-Tar
2015-05-11 15:16:51 +02:00
>=virtual/perl-version-0.990.200-r1
2014-11-24 14:36:23 +01:00
media-gfx/imagemagick[perl]
media-gfx/sane-backends
2015-03-25 10:21:28 +01:00
media-libs/tiff:0"
2014-11-24 14:36:23 +01:00
src_install() {
perl-module_src_install
dodoc History
}
2015-03-25 10:21:28 +01:00
my_optfeature() {
local desc=$1
shift
while (( $# )); do
if has_version "$1"; then
elog " [I] $1 - ${desc}"
else
elog " [ ] $1 - ${desc}"
fi
shift
done
}
2014-11-24 14:36:23 +01:00
pkg_postinst() {
elog "Optional dependencies:"
2015-03-25 10:21:28 +01:00
my_optfeature "for OCR support" \
app-text/gocr \
app-text/tesseract \
app-text/cuneiform
elog " [-] OCRopus for OCR support (not in Portage)"
my_optfeature "to post-process scans with unpaper" app-text/unpaper
my_optfeature "for sending to mail" x11-misc/xdg-utils
my_optfeature "to scan via ADF" media-gfx/sane-frontends
my_optfeature "to convert/scan to DJVU" app-text/djvu
my_optfeature "for displaying help" dev-perl/Gtk2-Ex-PodViewer
2014-11-24 14:36:23 +01:00
}