iscan: update to 2.30.3

Closes #9124.
This commit is contained in:
newbluemoon 2017-11-12 15:46:09 +01:00 committed by Enno Boland
parent 03ac20f154
commit d5cb65ac1e
3 changed files with 31 additions and 4 deletions

View File

@ -0,0 +1,11 @@
--- lib/jpegstream.cc.orig 2016-08-19 11:14:06.000000000 +0200
+++ lib/jpegstream.cc 2017-11-12 08:37:36.999741006 +0100
@@ -82,7 +82,7 @@
// only that _bits != 8.
for (unsigned int i = 0; i < _h_sz; ++i)
{
- div_t index = div (i, 8 * sizeof (JSAMPLE));
+ div_t index = div (static_cast<int>(i), static_cast<int>(8 * sizeof (JSAMPLE)));
int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem;
_scanline[i] = ((line[index.quot] & (1 << offset))
? 0 : ~0);

View File

@ -0,0 +1,10 @@
--- sanei/sanei_pio.c.orig 2016-08-19 11:14:06.000000000 +0200
+++ sanei/sanei_pio.c 2017-11-12 20:06:53.428389561 +0100
@@ -61,6 +61,7 @@
#define STUBS
#include "sane/sanei_debug.h"
#include <fcntl.h>
+#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>

View File

@ -1,7 +1,8 @@
# Template file for 'iscan'
pkgname=iscan
version=2.30.1
revision=2
version=2.30.3
revision=1
_srcrev=1
repository=nonfree
build_style=gnu-configure
configure_args="--enable-frontend --enable-jpeg --enable-tiff --enable-png --enable-gimp"
@ -13,10 +14,15 @@ depends="sane-epkowa"
license="GPL-2, AVASYSPL"
homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
short_desc="EPSON Image Scan! front-end"
distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version}-1.tar.gz"
checksum=79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426
distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version}-${_srcrev}.tar.gz"
checksum=91a6cc1571e5ec34cee067eabb35f13838e71dfeda416310ecb5b5030d49de67
only_for_archs="i686 x86_64"
post_configure() {
# fix wrongly created link
sed -i -e 's/\(libesmod-$${arch}\)$(PACKAGE_CXX_ABI)/\1.c2/' non-free/Makefile
}
post_install() {
vlicense non-free/AVASYSPL.en.txt
vmkdir usr/lib/gimp/2.0/plug-ins