summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-02 17:34:38 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-02 17:46:48 -0500
commitccdd6dd94b72eea61d1e18d9908acae064f9ae7b (patch)
treedc6481e02ac03cb4871590c2d63f2075429c2b8b /media-gfx
parentmedia-gfx/sane-backends: drop old emul-linux-x86 logic (diff)
downloadgentoo-ccdd6dd94b72eea61d1e18d9908acae064f9ae7b.tar.gz
gentoo-ccdd6dd94b72eea61d1e18d9908acae064f9ae7b.tar.bz2
gentoo-ccdd6dd94b72eea61d1e18d9908acae064f9ae7b.zip
media-gfx/sane-backends: rework html testdata version update logic
This should make the code work across multiple versions (including the current live git which is broken).
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/sane-backends/sane-backends-9999.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/media-gfx/sane-backends/sane-backends-9999.ebuild b/media-gfx/sane-backends/sane-backends-9999.ebuild
index 91e7272ce9cd..b636bf116f0b 100644
--- a/media-gfx/sane-backends/sane-backends-9999.ebuild
+++ b/media-gfx/sane-backends/sane-backends-9999.ebuild
@@ -192,6 +192,12 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
mv configure.{in,ac} || die
AT_NOELIBTOOLIZE=yes eautoreconf
+
+ # Fix for "make check". Upstream sometimes forgets to update this.
+ local ver=$(./configure --version | awk '{print $NF; exit 0}')
+ sed -i \
+ -e "/by sane-desc 3.5 from sane-backends/s:sane-backends .*:sane-backends ${ver}:" \
+ testsuite/tools/data/html* || die
}
src_configure() {