summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-29 12:30:27 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-29 12:30:27 -0500
commit85b9e6b82cf32ffa5422eaa707e93369fca8b194 (patch)
tree04d3e541e17ad6173273cba5e21ae1da20e74719
parentcf2d7af313ebec965a0a7a739b4bf62234f4fd87 (diff)
downloadslackbuilds-85b9e6b82cf32ffa5422eaa707e93369fca8b194.tar.gz
libraries/podofo: Updated for version 0.8.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/podofo/podofo-0.8.1-casts.patch19
-rw-r--r--libraries/podofo/podofo.SlackBuild4
-rw-r--r--libraries/podofo/podofo.info6
3 files changed, 25 insertions, 4 deletions
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 0000000000..4c2441b274
--- /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<pdf_int64>(4L));
++ object.GetDictionary().AddKey(PdfName("R"), static_cast<pdf_int64>(4L));
++ object.GetDictionary().AddKey(PdfName("P"), static_cast<pdf_int64>(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 f19cfe906c..0dbed99651 100644
--- a/libraries/podofo/podofo.SlackBuild
+++ b/libraries/podofo/podofo.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
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 e1019280cc..6a448a26a2 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"