commit:     28370b177bf0ad84e588ae26b3baf824a3df390b
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Mon Oct 14 08:51:31 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Mon Oct 14 08:51:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=28370b17

net-misc/iipsrv: fix libtiff in configure script

Closes: https://bugs.gentoo.org/929027
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-misc/iipsrv/files/iipsrv-1.2-tiff.patch | 13 +++++++++++++
 net-misc/iipsrv/iipsrv-1.2.ebuild           |  8 +++++++-
 net-misc/iipsrv/metadata.xml                |  2 +-
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/net-misc/iipsrv/files/iipsrv-1.2-tiff.patch 
b/net-misc/iipsrv/files/iipsrv-1.2-tiff.patch
new file mode 100644
index 000000000..6cdd1ce76
--- /dev/null
+++ b/net-misc/iipsrv/files/iipsrv-1.2-tiff.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/929027
+https://github.com/ruven/iipsrv/commit/0d16fc300c809aafea5d8cd1ec39cdc1f7d47ec7
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -460,7 +460,7 @@ if test "$TIFF_LIBS" = ""; then
+       INCLUDES="$TIFF_INCLUDES $INCLUDES"
+ 
+       # Try the standard search path first
+-      AC_TRY_LINK([#include <tiff.h>],[TIFFGetVersion();], [
++      AC_TRY_LINK([#include <tiffio.h>],[TIFFGetVersion();], [
+               TIFF_LIBS="-ltiff"
+       ], [
+               # libtiff is not in the standard search path.

diff --git a/net-misc/iipsrv/iipsrv-1.2.ebuild 
b/net-misc/iipsrv/iipsrv-1.2.ebuild
index 23e4a09d2..df276ee37 100644
--- a/net-misc/iipsrv/iipsrv-1.2.ebuild
+++ b/net-misc/iipsrv/iipsrv-1.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit systemd
+inherit autotools systemd
 
 DESCRIPTION="High performance image server for high resolution and scientific 
images"
 HOMEPAGE="https://iipimage.sourceforge.io";
@@ -40,8 +40,14 @@ QA_CONFIG_IMPL_DECL_SKIP=( TIFFGetVersion )
 PATCHES=(
        "${FILESDIR}/${P}-rawtile.patch"
        "${FILESDIR}/${P}-make.patch"
+       "${FILESDIR}/${P}-tiff.patch"
 )
 
+src_prepare() {
+       default
+       eautoreconf
+}
+
 src_install() {
 
        # Rename and install our binary

diff --git a/net-misc/iipsrv/metadata.xml b/net-misc/iipsrv/metadata.xml
index bfa91ddd8..9c8b4668a 100644
--- a/net-misc/iipsrv/metadata.xml
+++ b/net-misc/iipsrv/metadata.xml
@@ -21,7 +21,7 @@
                        <name>Ruven</name>
                </maintainer>
                
<changelog>https://github.com/ruven/iipsrv/commits/master</changelog>
-               <doc>https://iipimage.sourceforge.net/documentation/server</doc>
+               <doc>https://iipimage.sourceforge.io/documentation/server</doc>
                <remote-id type="github">ruven/iipsrv</remote-id>
                <remote-id type="sourceforge">iipimage</remote-id>
        </upstream>

Reply via email to