forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/gscan2pdf: version bump to 2.9.1
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Chris Mayo <[email protected]> Signed-off-by: Joonas Niilola <[email protected]>
- Loading branch information
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST gscan2pdf-1.8.11.tar.xz 409212 BLAKE2B 37cb716f13818eaffc39c210b810b845368cc5e323569e8f9d5603b5b412c4182520798321358e4c21339fdbd5f15026a0acd6421a49e7db79ecca86633c3ab0 SHA512 1ea09b8768771be4a1700cb8a6523d5f74fcbf0ebe459d97796032b56f896fd0c50e5ca1ed4c96aedef7e61f6952a92986153cc70173dd5ad91ccfb72461c565 | ||
DIST gscan2pdf-2.7.0.tar.xz 468752 BLAKE2B d8f41842c16ff54fff180d2ecaab3fb09c4b7c4d2eac8ba4b6cd2703cca4538844389af8151eaeac030f5962df7ce9192e60c0515f78d2d8aa9aa0ec2973fb97 SHA512 7878d7e77cf107315301bf7adb29c178f4c35c1986780843dfc1742870b8a9bc6cd7a1a0d06f1c37585e6c2050e75222c8af2359b5a7c194f308ba32b5c64f06 | ||
DIST gscan2pdf-2.8.1.tar.xz 476880 BLAKE2B c54e318fa00670f6b2f996791477fd61076abdfe57f2d924cad1fa9092a8796851c9ab503aabb7831ac374e390a19a821a5c7a8b996235deb7d7781b8b47f76c SHA512 2a9f52ce53030f2871d2430b6aab6b06bb1d4e2efbde25ad24196cfa99ad7b13342ff0f2827526020f5c12079e156bc430f891bdb6ffa9545a210bf1cba29be5 | ||
DIST gscan2pdf-2.9.1.tar.xz 484740 BLAKE2B e75ac6a5296ba2f89838ae9c95dc0ceb592ea8ffaf8d89a0635043e07fedbdcf97df26ac810556da7d0e0306eb7aaff76dc18162c6a5f89cb1953bd623a594a3 SHA512 4fc3107c871a7915ebdc023476b1159c0fe03934f1a52a417a5bc285be46f7db0ed38ec4cf015b15953c728ef19d1f4f30207d418b655c950bfb64ddc5d23237 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
DIST_TEST="do" | ||
|
||
inherit optfeature perl-module virtualx xdg-utils | ||
|
||
DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus" | ||
HOMEPAGE="http://gscan2pdf.sourceforge.net/" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND=" | ||
dev-perl/Config-General | ||
dev-perl/Data-UUID | ||
dev-perl/Date-Calc | ||
dev-perl/Filesys-Df | ||
dev-perl/glib-perl | ||
dev-perl/GooCanvas2 | ||
dev-perl/Gtk3 | ||
dev-perl/Gtk3-SimpleList | ||
dev-perl/HTML-Parser | ||
dev-perl/Image-Sane | ||
dev-perl/List-MoreUtils | ||
dev-perl/Locale-Codes | ||
dev-perl/Locale-gettext | ||
dev-perl/Log-Log4perl | ||
dev-perl/PDF-API2 | ||
dev-perl/Proc-ProcessTable | ||
dev-perl/Readonly | ||
dev-perl/Set-IntSpan | ||
dev-perl/Try-Tiny | ||
virtual/perl-Archive-Tar | ||
virtual/perl-Carp | ||
virtual/perl-Data-Dumper | ||
virtual/perl-File-Temp | ||
virtual/perl-Getopt-Long | ||
virtual/perl-threads | ||
virtual/perl-threads-shared | ||
media-gfx/imagemagick[png,tiff,perl] | ||
media-gfx/sane-backends | ||
media-libs/tiff" | ||
|
||
BDEPEND=" | ||
test? ( | ||
${RDEPEND} | ||
dev-perl/Sub-Override | ||
media-libs/fontconfig | ||
app-text/djvu[tiff] | ||
app-text/poppler[utils] | ||
app-text/tesseract[-opencl,osd(+),tiff] | ||
app-text/unpaper | ||
media-gfx/imagemagick[djvu,png,tiff,perl,postscript] | ||
media-gfx/sane-backends[sane_backends_test] | ||
media-gfx/sane-frontends | ||
)" | ||
|
||
PERL_RM_FILES=( t/{90_MANIFEST,91_critic,99_pod}.t ) | ||
|
||
mydoc="History" | ||
|
||
pkg_postinst() { | ||
xdg_desktop_database_update | ||
|
||
optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]" | ||
optfeature "encrypting PDFs" app-text/pdftk | ||
optfeature "creating PostScript files from PDFs" app-text/poppler[utils] | ||
optfeature "adding to an existing PDF" app-text/poppler[utils] | ||
optfeature "Optical Character Recognition" app-text/tesseract[osd,tiff] | ||
optfeature "scan post-processing" app-text/unpaper | ||
optfeature "automatic document feeder support" media-gfx/sane-frontends | ||
optfeature "sending PDFs as email attachments" x11-misc/xdg-utils | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_desktop_database_update | ||
} | ||
|
||
src_test() { | ||
echo "Using:" | ||
echo " $(best_version app-text/djvu)" | ||
echo " $(best_version app-text/poppler)" | ||
echo " $(best_version app-text/tesseract)" | ||
echo " $(best_version dev-perl/Image-Sane)" | ||
echo " $(best_version media-gfx/imagemagick)" | ||
echo " $(best_version media-gfx/sane-backends)" | ||
echo " $(best_version media-libs/tiff)" | ||
|
||
local confdir="${HOME}/.config/ImageMagick" | ||
mkdir -p "${confdir}" || die | ||
cat > "${confdir}/policy.xml" <<-EOT || die | ||
<policymap> | ||
<policy domain="coder" rights="read|write" pattern="PDF" /> | ||
<policy domain="coder" rights="read" pattern="PS" /> | ||
</policymap> | ||
EOT | ||
NO_AT_BRIDGE=1 virtx perl-module_src_test | ||
} |