commit:     69a11b42b57f5d8a46540ab96365ba8d29a18c6d
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 24 04:27:24 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Thu Oct 24 04:31:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69a11b42

www-client/dillo: minor bugfixes

- Add missing test dependency on media-fonts/dejavu
- Backport `which` patch.

Closes: https://bugs.gentoo.org/940568
Closes: https://bugs.gentoo.org/941742
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 www-client/dillo/dillo-3.1.1.ebuild                |  4 ++-
 www-client/dillo/dillo-9999.ebuild                 |  4 ++-
 .../dillo/files/dillo-3.1.1-remove-which.patch     | 42 ++++++++++++++++++++++
 3 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/www-client/dillo/dillo-3.1.1.ebuild 
b/www-client/dillo/dillo-3.1.1.ebuild
index 1c2a6fcd34a9..9ad9d9bdc955 100644
--- a/www-client/dillo/dillo-3.1.1.ebuild
+++ b/www-client/dillo/dillo-3.1.1.ebuild
@@ -34,15 +34,17 @@ RDEPEND="
                openssl? ( dev-libs/openssl:= )
        )
        test? (
+               media-fonts/dejavu
                media-gfx/imagemagick[X]
                x11-apps/xwd
                x11-apps/xwininfo
        )
-
 "
+
 DEPEND="
        ${RDEPEND}
 "
+
 BDEPEND="
        doc? (
                app-text/doxygen[dot]

diff --git a/www-client/dillo/dillo-9999.ebuild 
b/www-client/dillo/dillo-9999.ebuild
index 1c2a6fcd34a9..9ad9d9bdc955 100644
--- a/www-client/dillo/dillo-9999.ebuild
+++ b/www-client/dillo/dillo-9999.ebuild
@@ -34,15 +34,17 @@ RDEPEND="
                openssl? ( dev-libs/openssl:= )
        )
        test? (
+               media-fonts/dejavu
                media-gfx/imagemagick[X]
                x11-apps/xwd
                x11-apps/xwininfo
        )
-
 "
+
 DEPEND="
        ${RDEPEND}
 "
+
 BDEPEND="
        doc? (
                app-text/doxygen[dot]

diff --git a/www-client/dillo/files/dillo-3.1.1-remove-which.patch 
b/www-client/dillo/files/dillo-3.1.1-remove-which.patch
new file mode 100644
index 000000000000..c79f522cbb2a
--- /dev/null
+++ b/www-client/dillo/files/dillo-3.1.1-remove-which.patch
@@ -0,0 +1,42 @@
+https://github.com/dillo-browser/dillo/commit/9880c1ba603a6080b2493c7c399ae36d656a9834.patch
+From: meat <[email protected]>
+Date: Thu, 3 Oct 2024 12:48:31 +0200
+Subject: [PATCH] Use command -v instead of which
+
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -15,7 +15,7 @@
+ # Required binaries check
+ #          
+ check_bin_file(){
+-   which $1 > /dev/null 2>&1
++   command -v $1 > /dev/null 2>&1
+    if [ $? = 0 ]; then
+       return 0
+    else
+--- a/configure.ac
++++ b/configure.ac
+@@ -297,18 +297,18 @@ if test "x$enable_png" = "xyes"; then
+ 
+ dnl Check if the user hasn't set the variable $PNG_CONFIG
+   if test -z "$PNG_CONFIG"; then
+-    PNG_CONFIG=`which libpng16-config`
++    PNG_CONFIG=`command -v libpng16-config`
+     if test -z "$PNG_CONFIG"; then
+-      PNG_CONFIG=`which libpng14-config`
++      PNG_CONFIG=`command -v libpng14-config`
+     fi
+     if test -z "$PNG_CONFIG"; then
+-      PNG_CONFIG=`which libpng12-config`
++      PNG_CONFIG=`command -v libpng12-config`
+     fi
+     if test -z "$PNG_CONFIG"; then
+-      PNG_CONFIG=`which libpng-config`
++      PNG_CONFIG=`command -v libpng-config`
+     fi
+     if test -z "$PNG_CONFIG"; then
+-      PNG_CONFIG=`which libpng10-config`
++      PNG_CONFIG=`command -v libpng10-config`
+     fi
+   fi
+ 

Reply via email to