diff options
author | Benoît Dufour <benoit.dufour@mail.com> | 2023-11-04 18:17:19 -0400 |
---|---|---|
committer | Benoît Dufour <benoit.dufour@mail.com> | 2023-11-04 18:17:19 -0400 |
commit | 7aaedaa0bf8ec6b4b796a9d6a86a62ea73b340dd (patch) | |
tree | c307ae5fe08d198e8837cced591d5edd7ee6f4e0 /app-misc/dpscreenocr | |
parent | app-editors/lapce: added || die after command (diff) | |
download | guru-7aaedaa0bf8ec6b4b796a9d6a86a62ea73b340dd.tar.gz guru-7aaedaa0bf8ec6b4b796a9d6a86a62ea73b340dd.tar.bz2 guru-7aaedaa0bf8ec6b4b796a9d6a86a62ea73b340dd.zip |
app-misc/dpscreenocr: new package, add 1.4.0
Signed-off-by: Benoît Dufour <benoit.dufour@mail.com>
Diffstat (limited to 'app-misc/dpscreenocr')
-rw-r--r-- | app-misc/dpscreenocr/Manifest | 1 | ||||
-rw-r--r-- | app-misc/dpscreenocr/dpscreenocr-1.4.0.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/dpscreenocr/Manifest b/app-misc/dpscreenocr/Manifest new file mode 100644 index 000000000..5e32bf02d --- /dev/null +++ b/app-misc/dpscreenocr/Manifest @@ -0,0 +1 @@ +DIST v1.4.0.tar.gz 280237 BLAKE2B 1fe2241f29592729066e26e8ba7bbe02bbc5898457b1bbbd0b6155a6cd56c00c59481ddf7695b3337f1db5865c8d9e89f1c2bf01b855e18849dc6ccb5ea88b92 SHA512 8732c9f618479f84152e426651e9769cb61ee84f1ef2b46fe0b3679ae82627affe443a8162e68453a7bd70e21b79f621847b03c1a6e8771d1c188ebffaae4d19 diff --git a/app-misc/dpscreenocr/dpscreenocr-1.4.0.ebuild b/app-misc/dpscreenocr/dpscreenocr-1.4.0.ebuild new file mode 100644 index 000000000..129ece9ac --- /dev/null +++ b/app-misc/dpscreenocr/dpscreenocr-1.4.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit desktop cmake + +DESCRIPTION="Program to recognize text on screen" +HOMEPAGE="https://danpla.github.io/dpscreenocr/" +SRC_URI="https://github.com/danpla/dpscreenocr/archive/refs/tags/v${PV}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +# Add Qt and Xorg dependencies too +RDEPEND="app-text/tesseract + x11-libs/libXext + dev-qt/qtcore:5" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + '-DCMAKE_BUILD_TYPE=Release' + ) + cmake_src_configure +} + +src_install() { + # the following installs non sense : + #cmake_src_install + dobin "${WORKDIR}/${P}_build/dpscreenocr" + domenu "${WORKDIR}/${P}_build/dpscreenocr.desktop" + dolib.so "${WORKDIR}/${P}_build/src/dpso/libdpso.so" + dolib.so "${WORKDIR}/${P}_build/src/dpso_ext/libdpso_ext.so" + dolib.so "${WORKDIR}/${P}_build/src/dpso_utils/libdpso_utils.so" +} |