Commit Graph

28846 Commits

Author SHA1 Message Date
aszlig
49cf934642
pyocr: Add patch to support Tesseract 3.05.00
This is from the commit message I've written for the upstream pull
request (jflesch/pyocr#62):

    This is a bit more involved, because Tesseract 3.05.00 comes not
    only with improvements but also with a few quirks we need to deal
    with.

    The first quirk is that the order arguments of the `tesseract'
    command now matters and the list of configurations has to be at the
    end of the command line. So we add a new attribute tesseract_flags
    to the BaseBuilder class that contains a list of all the flags to
    pass to `tesseract', the tesseract_configs attribute however remains
    pretty much the same but now only really contains a list of configs
    instead of being mixed with flag arguments.

    Another quirk has to do with Leptonica >= 1.74 which Tesseract
    3.05.00 now requires. Leptonica has special handling of files that
    reside in /tmp and assumes that it's an internal temporary file of
    Leptonica. In order to deal with it, we now run Tesseract in a
    temporary directory, which contains the input/output files and use
    the relative name of these files because Leptonica only searches for
    path names beginning with /tmp.

    Fortunately the last item we need to address is not really a quirk,
    but an API change. In Tesseract 3.05.00 there is now a new function
    called TessBaseAPIDetectOrientationScript(), which doesn't fill the
    OSResults object anymore but now allows to pass the values we're
    interested in directly by reference. We need to use this new
    function because the old function TessBaseAPIDetectOS() now *always*
    returns false.

I've tested this specifically on NixOS and in conjunction with Paperwork
(the only package that's using pyocr so far) and all the tests of the
dependency chain are now succeeding. However, I didn't do manual tests
of Paperwork though.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-11 03:21:39 +02:00
aszlig
121751e10f
pyocr: 0.4.4 -> 0.4.6
Upstream changes for version 0.4.5:

 * Clean up exceptions raised when OCR fails:
 * Now, all tools raise only exceptions inheriting from
   pyocr.PyocrException
 * There is now one and only one TesseractError (shared between
   pyocr.libtesseract and pyocr.tesseract)

Upstream changes for version 0.4.6:

 * hOCR outputs: Generate valid XHTML files

The full upstream changelog can be found at:

https://github.com/jflesch/pyocr/blob/master/ChangeLog

Note that because of the version bump of Tesseract neither version 0.4.4
nor version 0.4.6 succeed to build, so we need to fix this up soon.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-11 03:21:36 +02:00
aszlig
42bb63f803
leptonica: 1.72 -> 1.74.1
The changes are a bit too big to include it here in the commit message,
so if you want the details of what changed, please visit this URL:

http://leptonica.org/source/version-notes.html

I have also provided openjpeg, giflib and libwebp as dependencies so
that Leptonica is able to read/write those file formats.

Additionally I've added a patch that uses pkgconfig to resolve all
dependencies (except giflib), because unlike AC_CHECK_LIB() the
PKG_CHECK_MODULES() macro defines *_LIBS variables to include the linker
search path.

Unfortunately that patch alone is not enough, because the *_LIBS
variable are substituted by the upstream configure.ac to *not* include
the linker search paths, so we need to remove the AC_SUBST() calls
within PKG_CHECK_MODULES().

The only dependency that's not yet using PKG_CHECK_MODULES() is giflib,
because giflib doesn't have a pkg-config description file, therefore
we're using substituteInPlace to insert the linker search path after the
lept.pc file was generated by configure.

Another thing that we no longer need is the dependency on libpng version
1.2, because Leptonica now also works with more recent libpng versions.

Tested by building the package itself and also the following packages
that immediately depend on leptonica:

 * k2pdfopt
 * tesseract
 * jbig2enc

All of these packages succeeded to build on x86_64-linux.

The main reason why I'm bumping Leptonica to version 1.74.1 is that we
need at least version 1.74 to bump Tesseract to the latest upstream
version.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-11 03:21:29 +02:00
Aristid Breitkreuz
7813c9676a Merge pull request #24802 from asymmetric/awscli
awscli: 1.11.45 -> 1.11.75
2017-04-10 22:55:13 +02:00
John Ericson
2b85b38b1f Merge pull request #24804 from Ericson2314/platform-whitespace
top-level/platforms.nix: Reformat and clean up whitespace
2017-04-10 16:30:43 -04:00
John Ericson
f3055a3c50 top-level/platforms.nix: Reformat and clean up whitespace 2017-04-10 15:39:47 -04:00
Thomas Tuegel
c7dd8a707b
golden-cheetah: fix build
- Use Qt 5.6 to fix compile error.
- Run preInstall and postInstall hooks to fix linking error.
2017-04-10 13:51:45 -05:00
Lorenzo Manacorda
8d18f67a97 awscli: 1.11.45 -> 1.11.75
also update dependency botocore
2017-04-10 18:56:06 +02:00
Shea Levy
1bb8a47803 Add aggregate job for a forthcoming nixpkgs-darwin-unstable channel 2017-04-10 12:35:32 -04:00
Eelco Dolstra
0e0e7c1a8f Merge pull request #24787 from abbradar/gtk3-firefox
GTK3 by default in Firefox and Thunderbird
2017-04-10 18:11:06 +02:00
Nikolay Amiantov
f68de22683 wrapGAppsHook: add librvsg as a dependency
User themes may use SVG icons which won't work if the app can't access this
library. This is quite sure to happen (e.g. Adwaita's icons are vector).
2017-04-10 11:37:54 +03:00
Nikolay Amiantov
e2fe47008f thunderbird: enable GTK3 by default 2017-04-10 02:43:26 +03:00
Nikolay Amiantov
999cf98de9 firefox: enable GTK3 by default 2017-04-10 02:43:18 +03:00
taku0
77f0ad5a37 thunderbird-bin: 45.8.0 -> 52.0 2017-04-10 02:20:26 +03:00
Orivej Desh
2db5b5a009 verbiste: init at 0.1.44 2017-04-10 00:19:35 +03:00
Nikolay Amiantov
250ab7a26a {armv7l,aarch64}-linux: build all kernel modules 2017-04-09 22:46:07 +03:00
Alastair Pharo
68c56c46fb purePackages.octave: Use octaveHg
Pure's Octave package compiles but crashes with Octave 4.2 due to an
upstream bug which is fixed in mercurial.
2017-04-09 21:54:39 +10:00
Alastair Pharo
813eb41cf6 octaveHg: add package 2017-04-09 21:54:14 +10:00
Alastair Pharo
f0ebcc6444 epstool: add package 2017-04-09 14:35:06 +10:00
Cole Scott
ff1e372849
arm-frc-linux-gnueabi-gcc: init at 4.9.4
fixes #24578
2017-04-09 01:06:34 +02:00
Cole Scott
1d7a478c92
arm-frc-linux-gnueabi-binutils: init at 2.28 2017-04-09 01:06:34 +02:00
Cole Scott
7c32b93c9a
arm-frc-linux-gnueabi-eglibc: init at 2.21-r0.83 2017-04-09 01:06:33 +02:00
Cole Scott
9597247cc0
arm-frc-linux-gnueabi-linux-api-headers: init at 3.19-r0.36 2017-04-09 01:06:33 +02:00
Benno Fünfstück
8889d405c7 rustRegistry: 2017-04-03 -> 2017-04-08 2017-04-08 17:43:51 +02:00
Michael Raskin
861726579b Merge pull request #24008 from phile314/slimserver
slimserver: Init at 7.9.0 (pkg + module)
2017-04-08 17:43:41 +02:00
Aristid Breitkreuz
59057d2272 Merge pull request #24679 from lsix/django_security_fixes
Django security fixes (for CVEs)
2017-04-08 11:48:46 +02:00
Aristid Breitkreuz
cafd9c922c Merge pull request #24705 from emanueleperuffo/master
robomongo: 0.8.4 -> 0.9.0
2017-04-08 11:43:51 +02:00
Vladimír Čunát
26766f0e57
Merge branch 'staging'
There are a few dozen new failures on Darwin, probably related to
updates of stdenv's llvm and/or pkgconfig.
Still the total number of successes increases.
2017-04-08 11:02:36 +02:00
Vanessa McHale
8a78fc5a34 Merge branch 'master' of github.com:vmchale/nixpkgs 2017-04-08 00:14:49 -05:00
Vanessa McHale
47e943e8d1 init tweet-hs at 0.5.3.2 2017-04-08 00:09:31 -05:00
Aristid Breitkreuz
65be0b3a4b bup: enable par2 by default
The par2 closure is <300 KB, so having it enabled by default seems
reasonable.
2017-04-07 21:47:03 +02:00
Dan Peebles
b9e558597d stdenv-darwin: bump to use LLVM 4.0 & new bootstrap tools 2017-04-07 14:36:21 -04:00
Emanuele Peruffo
b52a3d90fe robomongo: 0.8.4 -> 0.9.0 2017-04-07 12:19:19 +02:00
Dan Peebles
81352b2cb5 Merge branch 'master' into staging 2017-04-06 21:26:24 -04:00
Dan Peebles
6b1957d17a qt5: fix to work on LLVM 4
Including apple_sdk.sdk is generally a recipe for a bad time on LLVM 3.8
and above, since you end up with bad headers in the wrong place that hurt
the new libc++ in 3.8 and above. In this case, qt only wanted the super-
generic SDK for CUPS headers, which we can just depend on directly now.
2017-04-06 21:00:28 -04:00
Tim Steinbach
4984e7e053 Merge pull request #24624 from taku0/source-han-serif
add Source Han Serif font
2017-04-06 13:48:00 -04:00
Jean Potier
09b1414acd cups-toshiba-estudio: init at 7.51 (#24676) 2017-04-06 15:00:02 +01:00
taku0
2994f14edb add source-han-serif-japanese, source-han-serif-korean, source-han-serif-simplified-chinese, source-han-serif-traditional-chinese: An open source Pan-CJK serif typeface 2017-04-06 21:57:13 +09:00
Lancelot SIX
c6bc54e319
pythonPackages.django_1_8: 1.8.17 -> 1.8.18
This is a security release. See
https://www.djangoproject.com/weblog/2017/apr/04/security-releases/
2017-04-06 14:46:03 +02:00
Lancelot SIX
3f401926f9
pythonPackages.django_1_9: 1.9.12 -> 1.9.13
This is a security release. See
https://www.djangoproject.com/weblog/2017/apr/04/security-releases/
2017-04-06 14:43:25 +02:00
Tim Steinbach
d95fb5f2ac Merge pull request #24632 from NeQuissimus/docker_17_04
docker-edge: init at 17.04
2017-04-05 20:51:14 -04:00
Tim Steinbach
1e589239b3
docker-edge: init at 17.04 2017-04-05 20:49:26 -04:00
Vladimír Čunát
c6bc4cfdbc
Merge branch 'master' into staging 2017-04-06 00:16:59 +02:00
Profpatsch
6b5e5de0ef rss2email: init at 3.9 2017-04-05 16:59:01 +02:00
Tim Steinbach
67142c58c4 Merge pull request #24619 from NeQuissimus/docker_17_03_1
docker: 17.03.0 -> 17.03.1
2017-04-04 13:44:29 -05:00
Jörg Thalheim
b04fb3ffcd Merge pull request #24586 from maurer/bap
Add BAP to nixpkgs
2017-04-04 19:48:49 +02:00
Tim Steinbach
aefb9671bf
docker: 17.03.0 -> 17.03.1 2017-04-04 13:43:57 -04:00
Matthew Maurer
e010c25ba4 libbap: init at master-2017-02-08 2017-04-04 13:17:56 -04:00
Matthew Maurer
d022b4419c bap-python: init at 1.1.0 2017-04-04 13:11:06 -04:00
Matthew Maurer
7171d16fd4 bap: init at 1.2.0 2017-04-04 13:11:01 -04:00