From 85b9e6b82cf32ffa5422eaa707e93369fca8b194 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Tue, 29 Jun 2010 12:30:27 -0500 Subject: libraries/podofo: Updated for version 0.8.1. Signed-off-by: Robby Workman --- libraries/podofo/podofo-0.8.1-casts.patch | 19 +++++++++++++++++++ libraries/podofo/podofo.SlackBuild | 4 +++- libraries/podofo/podofo.info | 6 +++--- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 libraries/podofo/podofo-0.8.1-casts.patch diff --git a/libraries/podofo/podofo-0.8.1-casts.patch b/libraries/podofo/podofo-0.8.1-casts.patch new file mode 100644 index 0000000000000..4c2441b2744c4 --- /dev/null +++ b/libraries/podofo/podofo-0.8.1-casts.patch @@ -0,0 +1,19 @@ +diff --git a/test/unit/EncryptTest.cpp b/test/unit/EncryptTest.cpp index e0b4801..3355175 100644 +--- a/test/unit/EncryptTest.cpp ++++ b/test/unit/EncryptTest.cpp +@@ -326,9 +326,9 @@ void EncryptTest::testEnableAlgorithms() + + PdfObject object; + object.GetDictionary().AddKey(PdfName("Filter"), PdfName("Standard")); +- object.GetDictionary().AddKey(PdfName("V"), 4L); +- object.GetDictionary().AddKey(PdfName("R"), 4L); +- object.GetDictionary().AddKey(PdfName("P"), 1L); ++ object.GetDictionary().AddKey(PdfName("V"), static_cast(4L)); ++ object.GetDictionary().AddKey(PdfName("R"), static_cast(4L)); ++ object.GetDictionary().AddKey(PdfName("P"), static_cast(1L)); + object.GetDictionary().AddKey(PdfName("O"), PdfString("")); + object.GetDictionary().AddKey(PdfName("U"), PdfString("")); + + + + diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild index f19cfe906c080..0dbed99651c59 100644 --- a/libraries/podofo/podofo.SlackBuild +++ b/libraries/podofo/podofo.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali PRGNAM=podofo -VERSION="0.8.0" +VERSION=0.8.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -51,6 +51,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +patch -p1 < $CWD/podofo-0.8.1-casts.patch + mkdir build && cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX=/usr \ diff --git a/libraries/podofo/podofo.info b/libraries/podofo/podofo.info index e1019280cc0d6..6a448a26a2f0e 100644 --- a/libraries/podofo/podofo.info +++ b/libraries/podofo/podofo.info @@ -1,8 +1,8 @@ PRGNAM="podofo" -VERSION="0.8.0" +VERSION="0.8.1" HOMEPAGE="http://podofo.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/podofo/podofo-0.8.0.tar.gz" -MD5SUM="b73b4f2f3525a2dcd632f5e0054cab63" +DOWNLOAD="http://downloads.sourceforge.net/podofo/podofo-0.8.1.tar.gz" +MD5SUM="1d5cc8c03e2942266f96a7e8bf09dd0e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Larry Hajali" -- cgit v1.2.3