mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 07:10:32 -04:00
* Switch to MuPDF as default renderer for PDF files and give users the choice to choose alternate or additional PDF renderers (Ghostscript, Poppler and Xpdf) * Make further dependencies optional but leave them as default to keep in sync with upstream's defaults * Limit the port to Python 2.7 because Python 3 is not (yet) supported and add "python" to CATEGORIES to make searching somewhat easier * Introduce a patch to prevent possible runtime errors if graphics/py-pillow is updated to 6.0.0 [1] [2] * Pet portlint * Take maintainership Notable changes since 0.11.1: * Many zoom mode related changes * Many video related changes * Made Impressive suitable for Raspberry Pi-based digital signage * Fixed --auto mode that was broken in 0.11.2 (only worked properly for the first page) * Fixed excessive mouse sensitivity in full-screen mode * Fixed crashes when clicking hyperlinks in some PDFs * Fixed non-working hyperlinks when more than one input document is specified * Added new MuPDF renderer, uses no temporary files or named pipes on POSIX with MuPDF >= 1.4 * Can now use MuPDF's mutool instead of pdftk to get basic file information and unpack PDF files (for hyperlink decoding) * pdftk is no longer required to open "modern" PDF files * Only page title extraction still needs pdftk * Input files are now checked for playability (to prevent users from accidentally playing .info files) * Fixed non-responsiveness to any controls on slow systems where rendering a page takes longer than the --auto interval * First page is now shown as early as possible (before fonts etc. have been preloaded) * Fixed occasional re-rendering of pages that have already been rendered * Fixed 'keys' PageProp that was broken since 0.11.0 * Fixed crash in --verbose mode * Changed shebang line to 'python2' to avoid issues with Linux distributions that use Python 3.x by default http://impressive.sourceforge.net/news.php PR: 237426 (related) [1] Obtained from: Upstream [2]
18 lines
1,020 B
Python
18 lines
1,020 B
Python
--- impressive.py.orig 2018-02-04 20:31:39 UTC
|
|
+++ impressive.py
|
|
@@ -6332,7 +6332,14 @@ def run_main():
|
|
print >>sys.stderr, "Impressive version:", __version__
|
|
print >>sys.stderr, "Python version:", sys.version
|
|
print >>sys.stderr, "PyGame version:", pygame.__version__
|
|
- print >>sys.stderr, "PIL version:", Image.VERSION
|
|
+ if hasattr(Image, "__version__"): # Pillow >= 5.2
|
|
+ print >>sys.stderr, "PIL version: Pillow", Image.__version__
|
|
+ elif hasattr(Image, "PILLOW_VERSION"): # Pillow < 7.0
|
|
+ print >>sys.stderr, "PIL version: Pillow", Image.PILLOW_VERSION
|
|
+ elif hasattr(Image, "VERSION"): # classic PIL or Pillow 1.x
|
|
+ print >>sys.stderr, "PIL version: classic", Image.VERSION
|
|
+ else:
|
|
+ print >>sys.stderr, "PIL version: unknown"
|
|
if PDFRenderer:
|
|
print >>sys.stderr, "PDF renderer:", PDFRenderer.name
|
|
else:
|