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.

72 lines
1.3KB

  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # TODO: USE xine could be restored if support for xine-lib-1.2.x
  4. # is patched in wrt #397639
  5. EAPI=6
  6. inherit eutils cmake-utils gnome2-utils xdg-utils
  7. DESCRIPTION="A Gtk/Qt front-end to tesseract-ocr. "
  8. HOMEPAGE="https://github.com/manisandro/gImageReader"
  9. SRC_URI="https://github.com/manisandro/gImageReader/archive/v3.3.0.tar.gz"
  10. LICENSE="GPL-3"
  11. SLOT="0"
  12. KEYWORDS="amd64 ~hppa ppc ppc64 x86"
  13. #IUSE="mng nls mplayer svg wmf" #xine
  14. RDEPEND="
  15. >=app-text/tesseract-03.05.01
  16. media-gfx/sane-backends
  17. app-text/podofo
  18. virtual/jpeg
  19. app-text/djvu
  20. dev-util/intltool
  21. dev-libs/libzip
  22. sys-apps/util-linux
  23. dev-cpp/libxmlpp
  24. dev-cpp/gtkmm
  25. >=dev-cpp/gtkspellmm-3.0.5
  26. dev-cpp/gtksourceviewmm
  27. dev-cpp/cairomm
  28. app-text/poppler[cairo]
  29. dev-libs/json-glib
  30. "
  31. DEPEND="${RDEPEND}
  32. virtual/pkgconfig
  33. dev-util/cmake
  34. "
  35. src_prepare() {
  36. cmake-utils_src_prepare
  37. }
  38. # cmake stuff taken from LLVM
  39. src_configure() {
  40. local mycmakeargs=(
  41. -DINTERFACE_TYPE=gtk
  42. )
  43. cmake-utils_src_configure
  44. }
  45. src_compile() {
  46. cmake-utils_src_compile
  47. }
  48. src_install() {
  49. cmake-utils_src_install
  50. }
  51. # schema stuff taken from guake
  52. pkg_postinst() {
  53. gnome2_schemas_update
  54. xdg_desktop_database_update
  55. }
  56. pkg_postrm() {
  57. gnome2_schemas_update
  58. xdg_desktop_database_update
  59. }