1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
Rene Ladan
4facd1f647 graphics/dspdfviewer: fix sanity checks
Pointy hat:	rene
Reported by:	dvl
2020-10-21 21:27:41 +00:00
Rene Ladan
8eda9af04a graphics/dspdfviewer: simplify logic for -Wno-error=extra-semi-stmt
I first bogusly added OSVERSION < 1300000 at the end, but in hindsight
and from looking at svnweb the version logic after 11.3 EOL is
v >= 1300014 || (v in 1104000 .. 1200000) || v >= 1201000
==
(v in 1104000 .. 1200000) || v >= 1201000
==
(v >= 1200000 && v < 1201000)

So the port should not relax the check on (early) 12.0, which we can as
well leave out.

While here, add a note about upstream #191 still being open.

Phabricator:	D26646
2020-10-21 20:19:48 +00:00
Tobias C. Berner
aa3db148fc graphics/poppler: update to 20.10.0
Release 20.10.0:
        core:
         * Filter out repeated forms
         * Implement EmbedStream::reset()
         * CairoOutputDev: evict just font faces owned solely by cache.
         * Splash: Rename Yd to Ydown, Xu to Xup, etc.
         * Splash: fix crash in out-of-memory situation.
         * Fix some undefined behaviour situation with forged files

PR:		250052
Exp-run by:	antoine
2020-10-11 10:58:15 +00:00
Tobias C. Berner
5dc59a82ae graphics/poppler: update to 20.09.0
Release 20.09.0:
        core:
         * Compability fix for Forms
         * Fix fetching of Objects failing in some cases
         * Fix clearing date in Annot setModified/setDate
         * TextSelectionPainter: support glyphless fonts
         * Splash: Don't try read past end of image
         * avoid abort() on large memory allocation
         * Fix memory leak on broken files
         * Fix potential invalid memory read
         * Small code improvements

        qt5:
         * Document TextAnnotation::inplaceAlign
         * Make Annotation::setModification/CreationDate work on existing annots
         * Be a bit more stubborn converting dates that come from xml
         * Clean as many null characters from the end as possible when converting strings

        glib:
         * Add accessor functions for PopplerAttachment
         * Deprecate PopplerAttachment GTime fields
         * Deprecate PopplerDocument date properties

        utils:
         * pdftoppm: report error and exit if output file cannot be written
         * Document that PDF-file can be '-' to read it from stdin

        build system:
         * cmake: Modern way to link against libpng, zlib and libtiff
         * cmake: Remove stray support for lcms1 in pdftocairo

PR:		249060
Exp-run by:	antoine
2020-09-10 18:32:06 +00:00
Santhosh Raju
fd38f7dad5 graphics/dspdfviewer: Fixes build failure for Clang 11.0.0. 2020-08-25 17:39:53 +00:00
Tobias C. Berner
97cf82ea46 Bump revisions of poppler consumers after r544863 2020-08-14 04:22:13 +00:00
Piotr Kubaj
798f9b98cf graphics/dspdfviewer: fix build on GCC architectures
To build with Qt5, use C++11 compiler.

Hide Clang-only flags behind .if and add one for GCC.

MFH:		2020Q3 (fix build blanket)
2020-07-19 17:38:43 +00:00
Tobias C. Berner
5060d003ef graphics/poppler: update to 0.90
Release 0.90.0:
        core:
         * Color profile tweaks
         * Small signature improvements
         * BBoxOutputDev: Fix calculation when type3 fonts are involved
         * Fix potential crash when reading Forms
         * Fix infinite loop in broken file
        glib:
         * Fix adding annots in rotated pages
         * Add ability to reset forms
         * Several fixes to the documentation
        qt5:
         * Make it clear we require Qt 5.5
         * demo: Fix crash on broken files
         * Small documentation improvements
        utils:
         * pdftoppm: Add option to set display profile
         * pdftops: Add a -rasterize option with values always, never, or whenneeded
        build system:
         * Require cmake 3.5
         * More modern cmake way to link against curl

PR:		247736
Exp-run by:	antoine
2020-07-06 06:17:18 +00:00
Tobias C. Berner
99bd3bb02d graphics/poppler: update to 0.89.0
Release 0.89.0:
        core:
         * Add support for ResetForm action. Issue #225
         * Fix crash in PDFDoc::getSignatureFields when there's no Forms at all
         * Fix exporting to PS of some files with CID fonts
         * Use ICC profiles in PS output (if new enough lcms is used)
         * Allow almost-singular tiling pattern matrices. Issue #894
         * Fix memory leak when failing to load some fonts
         * CairoOutputDev: Use stroke opacity when clipping to a stroke path
         * CairoOutputDev: Fix tiling patterns when pattern cell is too far. Issue #190

        glib:
         * Add poppler_movie_get_aspect

        cpp:
         * Add the font infos to the text_box object

Exp-run by:	antoine
PR:		246848
2020-06-02 14:47:29 +00:00
Tobias C. Berner
0f970dac60 graphics/dspdfviewer: prepare for Qt5-5.15 2020-05-30 06:20:44 +00:00
Tobias C. Berner
1c19339682 graphics/poppler: update to 0.88.0
Release 0.88.0:

        core:
         * Support Widget Annotation Buttons not linked to any Form
         * SplashOuputDev: Use stroking opacity when clipping to a stroke path
         * Handle 1 bit RGB images in ICC colorspace
         * Internal code improvements

        qt5:
         * Add Document::signatures. Returns signatures not attached to any page
         * ArthurOutputDev: Fix font hinting
         * ArthurOutputDev: Set the opacity when filling with axial gradients
         * ArthurOutputDev: Implement the clipToStrokePath method
         * ArthurOutputDev: Use stroking opacity when clipping to a stroke path

        glib:
         * Add poppler_page_get_bounding_box
         * Add poppler_form_field_get_alternate_ui_name
         * Implement rotation for 'flagNoRotate' annots. Issue #767

        cpp:
         * Add non_raw_non_physical layout for page::text()

        utils:
         * pdftohtml: Fix noRoundedCoordinates->noroundcoord in man page
         * pdfsig: Show also signatures that aren't attached to any page
2020-05-02 10:00:12 +00:00
Tobias C. Berner
eeee6534ff graphics/dspdfviewer: Prepare for Qt5-5.14
PR:		244964
2020-04-04 13:10:57 +00:00
Tobias C. Berner
ff3b39857e graphics/poppler: update to 0.87.0
Release 0.87.0:
        core:
         * Fix crashes due to inconsistent vtables for Clang builds
         * Fix leak in broken files
         * Internal code improvements

        qt5:
         * Add option to get form choice for export value
         * ArthurOutputDev: Avoid division by zero in updateLineDash. Issue #695

        glib:
         * Internal code improvements

         utils:
         * pdftohtml: Fix memory leak in HtmlOutputDev::getLinkDest

PR:		245150
Exp-run by:	antoine
2020-04-02 04:41:02 +00:00
Tobias C. Berner
8e124cb8fb Update poppler to 0.86.1
Release 0.86.1:
        core:
         * Fix regression in Browse Link handling
         * Internal code improvements

Release 0.86.0:
        core:
         * Fix link content exfiltration attack
         * Splash: Implement gouraudTriangleShadedFill for some non parametrized shadings. Issue #881
         * Fix case unsensitive search for Old Hungarian, Warang Citi, Medefaidrin and Adlam
         * Internal code improvements

        glib:
         * Automatic handle of page's cropbox on annots. Issue #129
         * Fix memory leak if poppler_document_new_from_file fails
         * Minor speed optimization on poppler_page_get_annot_mapping

         utils:
         * pdfdetach: add 'savefile' option
         * pdftoppm/pdftocairo: Fix more odd/even mismatch

        qt5:
         * Fix loading from iodevice

PR:		244827
Exp-run by:	antoine
2020-03-21 12:57:09 +00:00
Tobias C. Berner
336f10c8b0 Bump revision of poppler dependencies
- poppler was updated in r525051, bump revisions
2020-02-03 19:32:51 +00:00
Tobias C. Berner
90a4ed701a graphics/poppler: update to 0.84.0
Release 0.84.0:
        core:
         * Fix crash when converting from Unicode to ASCII-7
         * Splash::scaleImageYdXu: Protect against crash if srcWidth is too big
         * JBIG2Stream: fix potential crash in malformed documents
         * JBIG2Stream: fix leak in reset() if called several times
         * Internal code improvements

        utils:
         * pdfimages: Add error message if first page is larger then number of pages.
         * pdfinfo: Improved paper size recognition
         * pdfsig: Fix exit code when dumping signatures
         * pdftocairo: Error out when even/odd selects 0 pages
         * pdftohtml: Fix memory leak
         * pdftoppm: Add an option to scale before rotate
         * pdftoppm: Add -hide-annotations option
         * pdftoppm: Error out when even/odd selects 0 pages
         * pdftops: Improve -optimizecolorspace

        qt5:
         * Code cleanups

        glib:
         * Fix compiler warnings

Release 0.83.0
        core:
         * Improve when a file is recognized as Linearized
         * Improve const-ness of the code
         * Make code a bit more readable/maintanable
         * Fix uninitialized memory uses in broken files

        utils:
         * pdffonts: Make code a bit more readable/maintanable
         * pdftohtml: Make code a bit more readable/maintanable

        qt5:
         * Remove a bunch of unused internal functions
         * trUtf8 -> tr (less warnings)

        build system:
         * make-glib-api-docs: switch to python3

PR:		243433
Exp-run by:	antoine
2020-01-22 17:59:22 +00:00
Jan Beich
701aa3bcf8 devel/boost-*: update to 1.72.0
Changes:	http://www.boost.org/users/history/version_1_72_0.html
PR:		241449
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D22136
2019-12-11 17:53:48 +00:00
Santhosh Raju
3abadb3ab1 graphics/dspdfviewer - Fixes broken build in 11.3-RELEASE.
Adds conditional to check for 11.3-RELEASE and 12.1-RELEASE since
both of them use Clang 8 now.

approved by:	philip (mentor)
2019-11-06 11:00:02 +00:00
Tobias C. Berner
3ca3ffe455 graphics/poppler: update to 0.82.0
Release 0.82.0:
        core:
         * Fix not being able to open some files. Issue #832
         * Fix crashes in malformed files
         * Fix memory leak on broken files
         * Minor performance improvements
         * Minor code improvements

        glib:
         * Add poppler_document_new_from_bytes
         * PopplerAttachment: Silence deprecation warnings for ctime/mtime

        build system:
         * pdf-inspector: Support builddir != srcdir
         * Install Cairo* headers if Cairo has been found

Thanks to adridg@ for fixing all the fallout.

Exp-run by:	antoine
PR:		241532
Approved by:	gnome (kwm, implicit)
2019-11-01 21:51:36 +00:00
Tobias C. Berner
f4566d704a graphics/poppler: update to 0.81.0
Release 0.81.0:
        core:
         * Splash: Always enable support for CMYK rasterization
         * CairoOutputDev: Check scaled dimensions for 0. Issue #737
         * BaseCryptStream: Fix potential uninitialized memory read
         * SplashBitmap: Fix wrong width condition for splashModeDeviceN8
         * Fix crashes in malformed files

PR:		240781
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-09-29 07:25:04 +00:00
Santhosh Raju
2a4da933b6 graphics/dspdfviewer: Fixes build with Qt 5.13
Submitted by:	adridg
Approved by:	philip (mentor)
2019-09-04 02:08:27 +00:00
Santhosh Raju
eb463c3c63 graphics/dspdfviewer: Makefile cleanup
- Cleans up the Makefile by running portlint(1) and portfmt(1).
- Updates the MAINTAINER email.

PR:		239991
Approved by:	philip (mentor)
2019-09-03 03:03:33 +00:00
Tobias C. Berner
0ee39c1b52 graphics/poppler: update to 0.80.0
Release 0.80.0:
core:
 * Annotations: Implement support for setting a different text in the appearance stream than the real text
 * Splash: Optionally use small_vector from boost
 * Fix memory leaks on broken files
 * Fix abort on broken files
 * Small code simplifications
 * Remove USE_FIXEDPOINT support. Issue #821

qt5:
 * Fix MSVC build
 * Add subsitute-font information
 * Fix since marker of some functions
 * Fix leak when aborting text extraction
 * Small code simplifications

glib:
 * Make print scaling getter visible
 * Make Duplex/NumCopies/PrintPageRange preference available in API
 * Implement Movie API

utils:
 * pdftotext: Add -nodiag flag to remove diagonal text on output

build system:
 * Mark external lib include dirs as SYSTEM

PR:		240176
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-09-01 20:46:38 +00:00
Jan Beich
befa71e0f3 devel/boost-*: update to 1.71.0
Changes:	http://www.boost.org/users/history/version_1_71_0.html
PR:		238827
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20774
2019-08-19 15:35:27 +00:00
Tobias C. Berner
a5b210399a graphics/poppler: update to 0.79.0
Release 0.79.0:
        core:
         * Fix regression on TextSelectionPainter
         * Fix parsing of DefaultAppearance
         * Fix memory leak in PostScriptFunction
         * Fix crashes in fuzzed files

        qt5:
         * Implemented support for setIcon by changing appearance
         * Added option to set the form available to print
         * QString::null is deprecated, use QString()
         * Replace deprecated qStableSort with std::stable_sort

        build system:
         * Turn README into README.md and expand it

PR:		239277
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-07-31 21:14:15 +00:00
Tobias C. Berner
4d160bfcf5 graphics/poppler: update to 0.78.0
Release 0.78.0:
        core:
         * Fix line annotation arrows for usage in dimensioning
         * Handle Ink annots without an InkList but with an AP
         * Fix typos preventing parsing of Movie start and duration
         * Fix crash on malformed files

        glib:
         * Add poppler_document_create_dests_tree()
         * Don't use the deprecated g_type_class_add_private()
         * Document the differences between render() and render_for_printing()
         * Fix introspection for poppler_document_new_from_data
         * Don't create PopplerInputStream with length 0. Issue #414
         * Document G_IO_ERROR as a possible error condition
         * docs: Add index for API new in 0.78

        build system:
         * Fixes cross compilation of gir in Void Linux
         * Add -Wshadow to the default warning flags
         * install pkg-config pc files if pkg-config is found

PR:		238857
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-06-29 08:55:17 +00:00
Tobias C. Berner
d163307e80 graphics/poppler: update to 0.77.0
Release 0.77.0:
        core:
         * Fix crash on signature handling. Issue #766
         * Fix small memory leak in SignatureHandler::getCertificateInfo
         * Splash: Restrict filling of overlapping boxes. Issue #750
         * Fix crash on malformed files

        qt5:
         * Fix optional content handling with exclusive layers

        cpp:
         * Make render_page thread-safe

        utils:
         * pdfsig: Fix small memory leak
         * pdftotext: Fix typo in manpage

PR:		238115
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-06-01 06:39:22 +00:00
Tobias C. Berner
753388101e graphics/poppler: update to 0.76.1
From Changelog at https://poppler.freedesktop.org/releases.html :

Release 0.76.1:
        core:
         * Make the mul tables be calculated at compile time with constexpr.
         * splash: Fix compile with SPLASH_CMYK enabled
         * Some typo fixing in error messages

        qt5:
         * Fix regression in annotation handling

        build system:
         * Fix some typos in build system output and comments

Release 0.76.0:

        core:
         * Fix regression on case-insensitive search. Issue #743
         * Remove GooList, use std::vector instead
         * Fix radiobutton reporting wrong state. Issue #159
         * Handle UTF16-LE strings
         * Don't error out if there's no DA in FreeText annotation
         * cairo: Compute correct coverage values for box filter.
         * cairo: Constrain number of cycles in rescale filter.
         * Read more fields from ViewerPreferences
         * Introduce and use Ref::INVALID
         * Fix crashes in broken files
         * Fix mismatched free/delete
         * Add missing include guards

        utils:
         * pdftohtml: Properly initialize HtmlOutputDev::page to avoid SIGSEGV upon error exit. Issue #742

All the required patches have been obtained via gentoo.

PR:		237846
Exp-run by:	antoine
Approved by:	kwm
2019-05-13 18:33:10 +00:00
Jan Beich
9b21a3a084 devel/boost-*: update to 1.70.0
Changes:	http://www.boost.org/users/history/version_1_70_0.html
PR:		235956
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D19303
2019-04-12 06:36:31 +00:00
Philip Paeps
d8328e0eec graphics/dspdfviewer: buildfix fox clang 8.0.0
PR:		236217
Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2019-03-07 04:15:18 +00:00
Jan Beich
0c483626a0 graphics/dspdfviewer: partially unbreak with Clang 8
../dspdfviewer.cpp:311:48: error: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Werror,-Wextra-semi-stmt]
  QSize newSize = window.getPreviewImageSize();;
                                               ^

PR:		236217
Approved by:	portmgr blanket
2019-03-04 19:24:51 +00:00
Tijl Coosemans
1bf487d3e7 Fix Qt5 symbol version scripts to put the catch-all clause first. When
a symbol matches multiple clauses the last one takes precedence.  If the
catch-all is last it captures everything.  In the case of Qt5 libraries
this caused all symbols to have a Qt_5 label while some should have
Qt_5_PRIVATE_API.  This only affects lld because GNU ld always gives the
catch-all lowest priority.

Older versions of Qt5Webengine exported some memory allocation symbols from
the bundled Chromium.  Version 5.9 stopped exporting these [1] but the
symbols were kept as weak wrappers for the standard allocation functions to
maintain binary compatibility. [2][3]  The problem is that the call to the
standard function in these weak wrappers is only resolved to the standard
function if there's a call to this standard function in other parts of
Qt5Webengine, because only then is there a non-weak symbol that takes
precedence over the weak one.  If there's no such non-weak symbol the call
in the weak wrapper resolves to the weak wrapper itself creating an infinite
call loop that overflows the stack and causes a crash.  Some of the
allocation functions are variants of C++ new and delete and it probably
depends on the compiler whether these variants are used in other parts of
Qt5Webengine.

Remove the weak wrappers (make them Linux specific).  This isn't binary
compatible but we are already breaking that with the changes to the symbol
versions.

[1] 5c2cbfccf9
[2] 2ed5054e3a
[3] 009f5ebb4b

Bump all ports that depend on Qt5.

PR:		234070
Exp-run by:	antoine
Approved by:	kde (adridg)
2019-01-16 11:13:44 +00:00
Tobias C. Berner
707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00
Jan Beich
7c879267dc devel/boost-*: update to 1.69.0
Changes:	http://www.boost.org/users/history/version_1_69_0.html
PR:		232525
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17645
2018-12-12 00:15:49 +00:00
Rene Ladan
8a502cb2d4 Remove compatibility code for FreeBSD < 11.2 from all ports.
Simplify some ports where DragonFlyBSD no longer needs to be special-cased.
Submitted by:	rene
Reviewed by:	bapt, jbeich
Differential Revision:	https://reviews.freebsd.org/D17724
2018-11-02 13:32:34 +00:00
Steve Wills
60371fe88c graphics/dspdfviewer: Fix build on 11.2
PR:		231934
Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2018-10-07 04:48:09 +00:00
Jan Beich
0b055d47f2 devel/boost-*: update to 1.68.0
- Switch to C++14 for libboost_system to support C++14 consumers

Changes:	http://www.boost.org/users/history/version_1_68_0.html
PR:		229569
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D16165
2018-08-09 06:58:30 +00:00
Tobias C. Berner
b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00
Philip Paeps
ce4003dd54 Fix build on 12.0-CURRENT >= 1200056 (LLVM update)
Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2018-06-07 13:36:45 +00:00
Jan Beich
cc95712fbe devel/boost-*: update to 1.67.0
Changes:	http://www.boost.org/users/history/version_1_67_0.html
PR:		227427
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D15030
2018-04-18 13:57:42 +00:00
Adriaan de Groot
b60ab85bf2 Fix graphics/dspdfviewer build with modern Clang. The error message
is in the (new) patch.

PR:		226524
Approved by:	tcberner (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D14652
2018-03-20 13:01:42 +00:00
Jan Beich
25beeff079 devel/boost-*: update to 1.66.0
Changes:	http://www.boost.org/users/history/version_1_66_0.html
PR:		223922
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D13279
2018-01-18 04:11:02 +00:00
Philip Paeps
c5b15f8bb4 Fix build on 11-STABLE >= 1100511 (LLVM update)
Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2017-12-05 11:43:41 +00:00
Jan Beich
98eb11b2f0 devel/boost-*: update to 1.65.1
Changes:	http://www.boost.org/users/history/version_1_65_1.html
PR:		218835
Approved by:	maintainer timeout (1.65.1: 2 weeks; 1.65.0: 1 month)
Tested by:	jhibbits (on powerpc64, earlier version)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D11582
2017-09-25 00:08:16 +00:00
Jan Beich
7e21a6476a devel/boost-*: enable C++11 features
PR:		218835
Obtained from:	https://github.com/DragonFlyBSD/DeltaPorts/pull/690
Approved by:	maintainer timeout (2 months)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D11582
2017-09-25 00:05:05 +00:00
Steve Wills
cdcf6a67a3 Bump PORTREVISION after recent poppler update 2017-08-24 13:45:13 +00:00
Philip Paeps
12aeaeecce Fix build on HEAD >= 1200039.
Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2017-08-06 12:17:52 +00:00
Jan Beich
b324ade02d devel/boost-*: update to 1.64.0
Changes:	http://www.boost.org/users/history/version_1_64_0.html
PR:		218835
Approved by:	office (bapt)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D10472
2017-05-02 06:48:10 +00:00
Philip Paeps
529ad4eaa5 - Fix build with LLVM 4.0 on HEAD
- Install manpage in the correct place [1]
  (bump PORTREVISION to reinstall package)

PR:		218767
Submitted by:	caso.ramiro@gmail.com [1]
		Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2017-04-29 10:26:23 +00:00
Philip Paeps
84305334b9 Fix minor nits in Makefile
Catch up with the new world order for projects hosted on github.com.

Submitted by:	danfe
Approved by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)
2017-04-15 20:55:08 +00:00