From b5b568ce2f45981161aa438622004799aa3f7a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 28 Oct 2022 01:19:11 +0200 Subject: FreeBSD: Update for final release R14.0.13. Add ports for several applications. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- freebsd/core/tdegraphics/distinfo | 6 +- .../files/patch-bp000-poppler-2203.diff | 81 ---------------------- freebsd/core/tdegraphics/pkg-plist | 16 +++++ 3 files changed, 19 insertions(+), 84 deletions(-) delete mode 100644 freebsd/core/tdegraphics/files/patch-bp000-poppler-2203.diff (limited to 'freebsd/core/tdegraphics') diff --git a/freebsd/core/tdegraphics/distinfo b/freebsd/core/tdegraphics/distinfo index 2aeb5e724..c7c40daf4 100644 --- a/freebsd/core/tdegraphics/distinfo +++ b/freebsd/core/tdegraphics/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1650670749 -SHA256 (TDE/core/tdegraphics-trinity_14.0.12.orig.tar.xz) = 3907498560f6e48ec97b32c1b51b14e150ceaf7a6092fd5e6a200f8b726a5df9 -SIZE (TDE/core/tdegraphics-trinity_14.0.12.orig.tar.xz) = 5803536 +TIMESTAMP = 1666470290 +SHA256 (TDE/core/tdegraphics-trinity_14.0.13.orig.tar.xz) = 8938782f5da7b505475f1cc0ae79d1c3f8c443f1a4910a05fbabe32ff2a6ddfb +SIZE (TDE/core/tdegraphics-trinity_14.0.13.orig.tar.xz) = 5808680 diff --git a/freebsd/core/tdegraphics/files/patch-bp000-poppler-2203.diff b/freebsd/core/tdegraphics/files/patch-bp000-poppler-2203.diff deleted file mode 100644 index aa170d53e..000000000 --- a/freebsd/core/tdegraphics/files/patch-bp000-poppler-2203.diff +++ /dev/null @@ -1,81 +0,0 @@ -commit 9adc0f647c04e84792be63d913274633cc2ecd65 -Author: Slávek Banko -Date: Sat Apr 30 01:48:37 2022 +0200 - - Add support for Poppler >= 22.03. - - Signed-off-by: Slávek Banko - -diff --git a/config.h.cmake b/config.h.cmake -index 7c1ab17a..fea46aaf 100644 ---- a/config.h.cmake -+++ b/config.h.cmake -@@ -1,6 +1,7 @@ - #cmakedefine VERSION "@VERSION@" - - // poppler-tqt -+#cmakedefine HAVE_POPPLER_2203 - #cmakedefine HAVE_POPPLER_2112 - #cmakedefine HAVE_POPPLER_2111 - #cmakedefine HAVE_POPPLER_2108 -diff --git a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake -index fa82dd3c..def19529 100644 ---- a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake -+++ b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake -@@ -24,7 +24,7 @@ check_cxx_source_compiles(" - HAVE_POPPLER_030 ) - tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) - --foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 21.08 21.11 21.12 ) -+foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 21.08 21.11 21.12 22.03 ) - string( REPLACE "." "" _poppler_str "${_poppler_ver}" ) - if( NOT DEFINED HAVE_POPPLER_${_poppler_str} ) - message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str}" ) -diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp -index 78e8befe..86e831ee 100644 ---- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp -+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp -@@ -50,7 +50,11 @@ Document *Document::load(const TQString &filePath) - #endif - } - -+# if defined(HAVE_POPPLER_2203) -+ DocumentData *doc = new DocumentData(std::make_unique(TQFile::encodeName(filePath)), {}); -+# else - DocumentData *doc = new DocumentData(new GooString(TQFile::encodeName(filePath)), NULL); -+# endif - Document *pdoc; - if (doc->doc.isOk() || doc->doc.getErrorCode() == errEncrypted) { - pdoc = new Document(doc); -@@ -84,10 +88,15 @@ bool Document::unlock(const TQCString &password) - { - if (data->locked) { - /* racier then it needs to be */ -+# if defined(HAVE_POPPLER_2203) -+ DocumentData *doc2 = new DocumentData(std::make_unique(data->doc.getFileName()), -+ GooString(password.data())); -+# else - GooString *filename = new GooString(data->doc.getFileName()); - GooString *pwd = new GooString(password.data()); - DocumentData *doc2 = new DocumentData(filename, pwd); - delete pwd; -+# endif - if (!doc2->doc.isOk()) { - delete doc2; - } else { -diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h -index c98d02b8..f1096ceb 100644 ---- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h -+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h -@@ -104,7 +104,11 @@ class LinkDestinationData { - - class DocumentData { - public: -+# if defined(HAVE_POPPLER_2203) -+ DocumentData(std::unique_ptr &&filePath, const std::optional &password) : doc(std::move(filePath), password), m_fontInfoScanner(0), m_outputDev(0) {} -+# else - DocumentData(GooString *filePath, GooString *password) : doc(filePath,password), m_fontInfoScanner(0), m_outputDev(0) {} -+# endif - - ~DocumentData() - { diff --git a/freebsd/core/tdegraphics/pkg-plist b/freebsd/core/tdegraphics/pkg-plist index 6087f69d5..9dd5508a8 100644 --- a/freebsd/core/tdegraphics/pkg-plist +++ b/freebsd/core/tdegraphics/pkg-plist @@ -1201,6 +1201,22 @@ share/icons/hicolor/scalable/apps/kfaxview.svgz share/icons/hicolor/scalable/apps/kolourpaint.svgz share/icons/hicolor/scalable/apps/kpdf.svgz share/icons/hicolor/scalable/apps/ksnapshot.svgz +share/man/man1/kcolorchooser.1.gz +share/man/man1/kcoloredit.1.gz +share/man/man1/kdvi.1.gz +share/man/man1/kfax.1.gz +share/man/man1/kfaxview.1.gz +share/man/man1/kghostview.1.gz +share/man/man1/kolourpaint.1.gz +share/man/man1/kooka.1.gz +share/man/man1/kpdf.1.gz +share/man/man1/kpovmodeler.1.gz +share/man/man1/kruler.1.gz +share/man/man1/ksnapshot.1.gz +share/man/man1/kuickshow.1.gz +share/man/man1/kview.1.gz +share/man/man1/kviewshell.1.gz +share/man/man1/tdeiconedit.1.gz share/mimelnk/text/mrml.desktop share/services/camera.protocol share/services/djvumultipage.desktop -- cgit v1.2.1