commit:     49e97f1cef32b7139cea9ba7919fcf32467de5a5
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 04:57:31 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49e97f1c

app-text/ocrad: add missing runtime deps

The package blatantly depends on libpng, although rather crudely as the
author is positive he knows better than GNU and won't use a real
configure script. :) The fake configure script hardcodes `-lpng`, and
prints a warning message:
```
If make fails, check that the PNG library libpng is correctly installed
```

instead of checking the right flags using pkg-config and getting free
error checking.

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 app-text/ocrad/{ocrad-0.29.ebuild => ocrad-0.29-r1.ebuild} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-text/ocrad/ocrad-0.29.ebuild 
b/app-text/ocrad/ocrad-0.29-r1.ebuild
similarity index 88%
rename from app-text/ocrad/ocrad-0.29.ebuild
rename to app-text/ocrad/ocrad-0.29-r1.ebuild
index 3c460f4fa252..9d0ee2c49466 100644
--- a/app-text/ocrad/ocrad-0.29.ebuild
+++ b/app-text/ocrad/ocrad-0.29-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,6 +13,10 @@ LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha amd64 ppc ppc64 ~sparc x86"
 
+RDEPEND="
+       media-libs/libpng:=
+"
+DEPEND="${RDEPEND}"
 BDEPEND="$(unpacker_src_uri_depends)"
 
 src_configure() {

Reply via email to