Install this version:
emerge -a =app-text/gimagereader-3.4.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/gimagereader-3.4.3
Or alternatively:
emerge --autounmask-write -a =app-text/gimagereader-3.4.3
EAPI=8
inherit cmake
DESCRIPTION="A Gtk/Qt front-end to tesseract-ocr"
HOMEPAGE="https://github.com/manisandro/gImageReader"
SRC_URI="https://github.com/manisandro/gImageReader/releases/download/v${PV}/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="scanner qt6 gtk"
REQUIRED_USE="^^ ( qt6 gtk )"
DEPEND=">=app-text/tesseract-3.04
scanner? ( media-gfx/sane-backends )
app-text/podofo
virtual/jpeg
app-text/djvu
dev-util/intltool
dev-libs/libzip
dev-libs/libxml2
app-text/enchant
qt6? (
dev-qt/qtbase:6
>=app-text/qtspell-1.0.2
app-text/poppler
dev-libs/quazip
)
gtk? (
dev-cpp/gtkmm
dev-cpp/gtksourceviewmm
dev-cpp/cairomm
dev-libs/json-glib
dev-cpp/libxmlpp
dev-python/pygobject
dev-cpp/gtkspellmm
)"
src_configure()
{
if use qt6
then
local mycmakeargs=( -DINTERFACE_TYPE=qt6 )
fi
if use gtk
then
local mycmakeargs=( -DINTERFACE_TYPE=gtk )
fi
cmake_src_configure
}
src_install()
{
cmake_src_install
cd $D/usr/share/doc && mv $PN $P
}
pkg_postinst()
{
if use gtk
then
glib-compile-schemas /usr/share/glib-2.0/schemas/
fi
}
pkg_postrm()
{
if use gtk
then
glib-compile-schemas /usr/share/glib-2.0/schemas/
fi
}
Manage flags for this package:
euse -i <flag> -p app-text/gimagereader |
euse -E <flag> -p app-text/gimagereader |
euse -D <flag> -p app-text/gimagereader
>=app-text/tesseract-3.04 scanner? ( media-gfx/sane-backends ) app-text/podofo virtual/jpeg app-text/djvu dev-util/intltool dev-libs/libzip dev-libs/libxml2 app-text/enchant qt6? ( dev-qt/qtbase:6 >=app-text/qtspell-1.0.2 app-text/poppler dev-libs/quazip ) gtk? ( dev-cpp/gtkmm dev-cpp/gtksourceviewmm dev-cpp/cairomm dev-libs/json-glib dev-cpp/libxmlpp dev-python/pygobject dev-cpp/gtkspellmm )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | gimagereader-3.4.3.tar.xz | 691232 bytes | https://github.com/manisandro/gImageReader/releases/download/v3.4.3/gimagereader-3.4.3.tar.xz |