gscan2pdf-1.7.2.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils perl-module
  5. DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
  6. HOMEPAGE="http://gscan2pdf.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. # OCR tests fail with tesseract[opencl], not fixed by addpredict
  12. # and others on Wayland and the console
  13. RESTRICT="test"
  14. RDEPEND="
  15. dev-perl/Config-General
  16. dev-perl/Date-Calc
  17. dev-perl/Data-UUID
  18. dev-perl/Filesys-Df
  19. dev-perl/glib-perl
  20. dev-perl/Goo-Canvas
  21. dev-perl/Gtk2-Ex-PodViewer
  22. dev-perl/Gtk2-Ex-Simple-List
  23. dev-perl/Gtk2-ImageView
  24. dev-perl/Gtk2
  25. dev-perl/HTML-Parser
  26. dev-perl/Locale-gettext
  27. dev-perl/List-MoreUtils
  28. dev-perl/Log-Log4perl
  29. dev-perl/PDF-API2
  30. dev-perl/Proc-ProcessTable
  31. dev-perl/Readonly
  32. dev-perl/Sane
  33. dev-perl/Set-IntSpan
  34. dev-perl/Try-Tiny
  35. virtual/perl-Archive-Tar
  36. virtual/perl-Carp
  37. virtual/perl-Data-Dumper
  38. virtual/perl-File-Temp
  39. virtual/perl-Getopt-Long
  40. virtual/perl-threads
  41. virtual/perl-threads-shared
  42. media-gfx/gtkimageview
  43. media-gfx/imagemagick[png,tiff,perl]
  44. media-gfx/sane-backends
  45. media-libs/tiff"
  46. mydoc="History"
  47. pkg_postinst() {
  48. optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
  49. optfeature "Optical Character Recognition" app-text/tesseract[osd,tiff]
  50. optfeature "scan post-processing" app-text/unpaper
  51. optfeature "automatic document feeder support" media-gfx/sane-frontends
  52. optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
  53. }