pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/podofo podofo: Update to 0.9.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dec14dfe0c39
branches:  trunk
changeset: 343706:dec14dfe0c39
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Nov 09 12:33:29 2019 +0000

description:
podofo: Update to 0.9.6

"As there are so many improvements, patches and fixes that made it into
this release, we are not able to list them, so please stick with the svn log."

diffstat:

 print/podofo/Makefile                                   |  11 +++-
 print/podofo/distinfo                                   |  15 ++---
 print/podofo/patches/patch-CMakeLists.txt               |  43 +---------------
 print/podofo/patches/patch-src_base_PdfCompilerCompat.h |  35 -------------
 print/podofo/patches/patch-src_base_PdfDefines.h        |  15 -----
 print/podofo/patches/patch-src_base_PdfVariant.h        |  24 ---------
 6 files changed, 18 insertions(+), 125 deletions(-)

diffs (202 lines):

diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/Makefile
--- a/print/podofo/Makefile     Sat Nov 09 12:02:38 2019 +0000
+++ b/print/podofo/Makefile     Sat Nov 09 12:33:29 2019 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2018/03/12 11:17:27 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2019/11/09 12:33:29 nia Exp $
 
-DISTNAME=      podofo-0.9.5
-PKGREVISION=   2
+DISTNAME=      podofo-0.9.6
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=podofo/}
 
@@ -13,12 +12,17 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 USE_TOOLS+=    pkg-config
+
 CMAKE_ARGS+=   -DPODOFO_BUILD_SHARED:BOOL=TRUE
 CMAKE_ARGS+=   -DPODOFO_BUILD_STATIC:BOOL=TRUE
 CMAKE_ARGS+=   -DFREETYPE_INCLUDE_DIR_FT2BUILD:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2
 CMAKE_ARGS+=   -DFREETYPE_INCLUDE_DIR_FTHEADER:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2/config
 CMAKE_ARGS+=   -DFREETYPE_LIB_PATHS:PATH=${BUILDLINK_PREFIX.freetype2}/lib
 
+# Avoid building unit tests.
+CMAKE_ARGS+=   -DCMAKE_DISABLE_FIND_PACKAGE_CppUnit=TRUE
+CMAKE_ARGS+=   -DCMAKE_DISABLE_FIND_PACKAGE_LUA=TRUE
+
 .include "options.mk"
 
 # tests-depend on cppunit (for unit tests)
@@ -29,5 +33,6 @@
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/distinfo
--- a/print/podofo/distinfo     Sat Nov 09 12:02:38 2019 +0000
+++ b/print/podofo/distinfo     Sat Nov 09 12:33:29 2019 +0000
@@ -1,15 +1,12 @@
-$NetBSD: distinfo,v 1.19 2018/07/22 22:36:17 wiz Exp $
+$NetBSD: distinfo,v 1.20 2019/11/09 12:33:29 nia Exp $
 
-SHA1 (podofo-0.9.5.tar.gz) = 25c84a9e4815197e967bdb93fc2de8e1654a2812
-RMD160 (podofo-0.9.5.tar.gz) = a557330766b1795dd010937eb5c08ce7df671122
-SHA512 (podofo-0.9.5.tar.gz) = d13b30bfebc89b809173cd2251eed1f15dfa90abb58371bfdce875797d40663923571824ad2b0b1d97aa1be212bdbb710c3a0439bc05bed7022b8eb75ca74705
-Size (podofo-0.9.5.tar.gz) = 1160799 bytes
-SHA1 (patch-CMakeLists.txt) = f6e51c220fcd1cca833cdf5e4d9c3e0da9116c1e
+SHA1 (podofo-0.9.6.tar.gz) = 54275025b1049e40177e35c7003e87ea092f277c
+RMD160 (podofo-0.9.6.tar.gz) = 71764cd85c7e443654689f84dd8c68fccb24e442
+SHA512 (podofo-0.9.6.tar.gz) = 35c1a457758768bdadc93632385f6b9214824fead279f1b85420443fb2135837cefca9ced476df0d47066f060e9150e12fcd40f60fa1606b177da433feb20130
+Size (podofo-0.9.6.tar.gz) = 995898 bytes
+SHA1 (patch-CMakeLists.txt) = c92ea81cde1af07ac3464d1a6a8df1f36f81a833
 SHA1 (patch-cmake_modules_FindFREETYPE.cmake) = 755d6d7ad73dea490479b90299728129bb1b0795
-SHA1 (patch-src_base_PdfCompilerCompat.h) = 965cc15853f9829fad0e018651a7640914108c67
-SHA1 (patch-src_base_PdfDefines.h) = 1526aacbe680adaa6f147aafb3303ec2f45991e7
 SHA1 (patch-src_base_PdfMemoryManagement.cpp) = 9303daf1e471106d9d22e42230db650dba5f1006
-SHA1 (patch-src_base_PdfVariant.h) = 8e9c206738716fd51a1d56f34e7aa35cc6718d48
 SHA1 (patch-src_doc_PdfImage.cpp) = 844250a772d40ba3ea2322ea623990b87b27c664
 SHA1 (patch-test_CMakeLists.txt) = 846871dac995ff80544ad9096574eddd776e324f
 SHA1 (patch-test_TokenizerTest_CMakeLists.txt) = 588f0f26aa5c8d6a1d1e6119680b9ee7416781d6
diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/patches/patch-CMakeLists.txt
--- a/print/podofo/patches/patch-CMakeLists.txt Sat Nov 09 12:02:38 2019 +0000
+++ b/print/podofo/patches/patch-CMakeLists.txt Sat Nov 09 12:33:29 2019 +0000
@@ -1,45 +1,10 @@
-$NetBSD: patch-CMakeLists.txt,v 1.3 2016/08/01 13:39:34 adam Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.4 2019/11/09 12:33:29 nia Exp $
 
-Make LUA optional (PR/43054). Make sure man pages are installed
-at the right place.
-Dont look for CppUnit as we dont want to build tests.
+Install man pages to correct directory.
 
---- CMakeLists.txt.orig        2016-06-08 20:55:08.000000000 +0000
+--- CMakeLists.txt.orig        2018-07-08 10:33:27.000000000 +0000
 +++ CMakeLists.txt
-@@ -377,7 +377,7 @@ ENDIF(PNG_FOUND)
- 
- IF(NOT PODOFO_BUILD_LIB_ONLY)
- 
--FIND_PACKAGE(CppUnit)
-+# FIND_PACKAGE(CppUnit)
- 
- IF(CppUnit_FOUND)
-   MESSAGE("Found cppunit. Unit tests will be built.")
-@@ -426,7 +426,9 @@ ELSE(WANT_FONTCONFIG)
- ENDIF(WANT_FONTCONFIG)
- 
- IF(NOT PODOFO_BUILD_LIB_ONLY)
--FIND_PACKAGE(LUA)
-+IF(DEFINED LUA_ENABLED)
-+      FIND_PACKAGE(LUA)
-+ENDIF(DEFINED LUA_ENABLED)
- IF(LUA_FOUND)
-       # If we have lua, we can build podofoimpose.
-       MESSAGE("Lua found - PoDoFoImpose and PoDoFoColor will be built with Lua support")
-@@ -502,15 +504,16 @@ IF(FONTCONFIG_FOUND AND WANT_FONTCONFIG)
-   INCLUDE_DIRECTORIES(${FONTCONFIG_INCLUDE_DIR})
- ENDIF(FONTCONFIG_FOUND AND WANT_FONTCONFIG)
- 
--SET(PODOFO_LIB
--    podofo
--    ${PODOFO_LIB_DEPENDS}
--    )
-+IF(DEFINED PODOFO_BUILD_SHARED)
-+      SET(PODOFO_LIB podofo_shared ${PODOFO_LIB_DEPENDS})
-+ELSE(DEFINED PODOFO_BUILD_SHARED)
-+      SET(PODOFO_LIB podofo_static ${PODOFO_LIB_DEPENDS})
-+ENDIF(DEFINED PODOFO_BUILD_SHARED)
- 
+@@ -530,7 +530,7 @@ ENDIF(WIN32 OR PODOFO_BUILD_STATIC)
  #
  # Setup directories we will need
  #
diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/patches/patch-src_base_PdfCompilerCompat.h
--- a/print/podofo/patches/patch-src_base_PdfCompilerCompat.h   Sat Nov 09 12:02:38 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-src_base_PdfCompilerCompat.h,v 1.3 2017/09/25 22:26:27 joerg Exp $
-
-Ensure alloca exists, even in standard modes on NetBSD.
-
-Merge r1825.
-
---- src/base/PdfCompilerCompat.h.orig  2017-01-11 20:32:50.000000000 +0000
-+++ src/base/PdfCompilerCompat.h
-@@ -74,6 +74,9 @@
- #if defined(_WIN32)
- #include <malloc.h>
- #endif
-+#ifdef __NetBSD__
-+#define       alloca  __builtin_alloca
-+#endif
- 
- // Disable usage of min() and max() macros 
- #if defined(_WIN32) && !defined(__MINGW32__)
-@@ -198,16 +201,6 @@ namespace PoDoFo {
- 
- #endif // defined(_WIN32)
- 
--// Visual C++ 2015 (_MSC_VER 1900) still uses __cplusplus = 199711 so, we need both tests
--// this shrinks enum types from sizeof(int) to sizeof(char) which creates significant
--// space savings on PdfObject / PdfVariant
--#if (defined(_MSC_VER) && _MSC_VER < 1900) || (!defined(_MSC_VER) &&  __cplusplus < 201103)
--#define PODOFO_ENUM_UINT8
--#else 
--#define PODOFO_ENUM_UINT8     : uint8_t
--#endif 
--
--
- /**
-  * \page PoDoFo PdfCompilerCompat Header
-  * 
diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/patches/patch-src_base_PdfDefines.h
--- a/print/podofo/patches/patch-src_base_PdfDefines.h  Sat Nov 09 12:02:38 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_base_PdfDefines.h,v 1.1 2017/09/25 22:26:27 joerg Exp $
-
-Merge r1825.
-
---- src/base/PdfDefines.h.orig 2017-09-25 13:21:28.667585186 +0000
-+++ src/base/PdfDefines.h
-@@ -194,7 +194,7 @@ const EPdfWriteMode ePdfWriteMode_Defaul
-  *
-  * Remember to update PdfVariant::GetDataTypeString() when adding members here.
-  */
--enum EPdfDataType PODOFO_ENUM_UINT8 {
-+enum EPdfDataType {
-     ePdfDataType_Bool,                  /**< Boolean datatype: Accepts the values "true" and "false" */
-     ePdfDataType_Number,                /**< Number datatype for integer values */
-     ePdfDataType_Real,                  /**< Real datatype for floating point numbers */
diff -r 0483f3a927a5 -r dec14dfe0c39 print/podofo/patches/patch-src_base_PdfVariant.h
--- a/print/podofo/patches/patch-src_base_PdfVariant.h  Sat Nov 09 12:02:38 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_base_PdfVariant.h,v 1.1 2017/09/25 22:26:27 joerg Exp $
-
-Merge r1825.
-
---- src/base/PdfVariant.h.orig 2017-09-25 13:20:57.927586504 +0000
-+++ src/base/PdfVariant.h
-@@ -513,7 +513,7 @@ class PODOFO_API PdfVariant {
-      *  required to access the correct member of 
-      *  the union UVariant.
-      */
--    EPdfDataType m_eDataType;
-+    pdf_int8 m_eDataType;
- 
-     // No touchy. Only for use by PdfVariant's internal tracking of the delayed
-     // loading state. Use DelayedLoadDone() to test this if you need to.
-@@ -574,7 +574,7 @@ EPdfDataType PdfVariant::GetDataType() c
- {
-     DelayedLoad();
- 
--    return m_eDataType;
-+    return static_cast<EPdfDataType>(m_eDataType);
- }
- 
- // -----------------------------------------------------



Home | Main Index | Thread Index | Old Index