app-misc/dpscreenocr: fix RDEPEND

Closes: https://bugs.gentoo.org/916986
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-11-20 21:20:10 +09:00
parent fc1f0be76a
commit 0c514a20ce
2 changed files with 18 additions and 14 deletions

View File

@@ -1 +1 @@
DIST v1.4.0.tar.gz 280237 BLAKE2B 1fe2241f29592729066e26e8ba7bbe02bbc5898457b1bbbd0b6155a6cd56c00c59481ddf7695b3337f1db5865c8d9e89f1c2bf01b855e18849dc6ccb5ea88b92 SHA512 8732c9f618479f84152e426651e9769cb61ee84f1ef2b46fe0b3679ae82627affe443a8162e68453a7bd70e21b79f621847b03c1a6e8771d1c188ebffaae4d19
DIST dpscreenocr-1.4.0.tar.gz 280237 BLAKE2B 1fe2241f29592729066e26e8ba7bbe02bbc5898457b1bbbd0b6155a6cd56c00c59481ddf7695b3337f1db5865c8d9e89f1c2bf01b855e18849dc6ccb5ea88b92 SHA512 8732c9f618479f84152e426651e9769cb61ee84f1ef2b46fe0b3679ae82627affe443a8162e68453a7bd70e21b79f621847b03c1a6e8771d1c188ebffaae4d19

View File

@@ -1,28 +1,32 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit desktop cmake
inherit cmake desktop
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"
SRC_URI="https://github.com/danpla/dpscreenocr/archive/refs/tags/v${PV}.tar.gz -> ${P}.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"
RDEPEND="
app-text/tesseract:=
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
x11-libs/libX11
x11-libs/libXext
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
'-DCMAKE_BUILD_TYPE=Release'
-DDPSO_GEN_HTML_MANUAL=OFF
)
cmake_src_configure
}
@@ -30,9 +34,9 @@ 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"
dobin "${BUILD_DIR}/dpscreenocr"
domenu "${BUILD_DIR}/dpscreenocr.desktop"
dolib.so "${BUILD_DIR}/src/dpso/libdpso.so"
dolib.so "${BUILD_DIR}/src/dpso_ext/libdpso_ext.so"
dolib.so "${BUILD_DIR}/src/dpso_utils/libdpso_utils.so"
}