Paste #276874 |
pasted on 22.08.2024 13:11
- Edit to this paste
- Raw
- Compare it with the parent paste
- Look at the parent paste
- Show paste tree
-
Compare with paste
#
Text paste
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | EAPI=7 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 qt5 gtk" REQUIRED_USE="^^ ( qt5 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 qt5? ( app-text/qtspell dev-qt/qtcore:5 app-text/qtspell[qt5] 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 qt5 then local mycmakeargs=( -DINTERFACE_TYPE=qt5 ) 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 } |