aboutsummaryrefslogtreecommitdiff
path: root/textproc/libvisio01
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-08-10 23:59:25 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-08-10 23:59:25 +0000
commit236314df92c7c769343ffdaa613dbb1b2d1b59dc (patch)
tree75e34cc0b884a210c86469d4355d420db7be985d /textproc/libvisio01
parenta4f858c6fbb3f7682bb72a7261bf98007d4e4f0c (diff)
downloadports-236314df92c7c769343ffdaa613dbb1b2d1b59dc.tar.gz
ports-236314df92c7c769343ffdaa613dbb1b2d1b59dc.zip
Update to 0.1.3.
Notes
Notes: svn path=/head/; revision=393927
Diffstat (limited to 'textproc/libvisio01')
-rw-r--r--textproc/libvisio01/Makefile3
-rw-r--r--textproc/libvisio01/distinfo4
-rw-r--r--textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp20
-rw-r--r--textproc/libvisio01/pkg-plist2
4 files changed, 14 insertions, 15 deletions
diff --git a/textproc/libvisio01/Makefile b/textproc/libvisio01/Makefile
index 3c6d8aab0d3f..42c1e84e0649 100644
--- a/textproc/libvisio01/Makefile
+++ b/textproc/libvisio01/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= libvisio
-PORTVERSION= 0.1.1
-PORTREVISION= 1
+PORTVERSION= 0.1.3
CATEGORIES= textproc devel
MASTER_SITES= http://dev-www.libreoffice.org/src/${PORTNAME}/
PKGNAMESUFFIX= 01
diff --git a/textproc/libvisio01/distinfo b/textproc/libvisio01/distinfo
index 1f86a879be72..a88a9beae32d 100644
--- a/textproc/libvisio01/distinfo
+++ b/textproc/libvisio01/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libvisio-0.1.1.tar.xz) = 4b510168d1465516fdf6e57c01e2f9eae1fc0ae232c74e44e70693bbc49227f1
-SIZE (libvisio-0.1.1.tar.xz) = 412752
+SHA256 (libvisio-0.1.3.tar.xz) = 943e03b1e6c969af4c2133a6671c9630adf3aaf8d460156744a28f58c9f47cd8
+SIZE (libvisio-0.1.3.tar.xz) = 479592
diff --git a/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
index 6a0c5177ec62..069ce6c2ffbc 100644
--- a/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
+++ b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
@@ -1,11 +1,11 @@
---- src/lib/VSDMetaData.cpp.orig 2015-01-01 16:11:45.000000000 -0500
-+++ src/lib/VSDMetaData.cpp 2015-02-02 17:20:34.953039000 -0500
-@@ -226,7 +226,7 @@
- uint64_t modifiedTime = readU64(input);
+--- src/lib/VSDMetaData.cpp.orig 2015-07-25 07:17:57 UTC
++++ src/lib/VSDMetaData.cpp
+@@ -302,7 +302,7 @@ bool libvisio::VSDMetaData::parseTimes(l
+ uint32_t firstDirSectorLocation = readU32(input);
- // modifiedTime is number of 100ns since Jan 1 1601
-- static const uint64_t epoch = 11644473600;
-+ static const uint64_t epoch = 11644473600ULL;
- time_t sec = (modifiedTime / 10000000) - epoch;
- const struct tm *time = localtime(&sec);
- if (time)
+ // Seek to the Root Directory Entry
+- size_t sectorSize = std::pow(2, sectorShift);
++ size_t sectorSize = 1UL << sectorShift;
+ input->seek((firstDirSectorLocation + 1) * sectorSize, librevenge::RVNG_SEEK_SET);
+ // DirectoryEntryName: 64 bytes
+ // DirectoryEntryNameLength: 2 bytes
diff --git a/textproc/libvisio01/pkg-plist b/textproc/libvisio01/pkg-plist
index ee5793a36c89..90cf07a56a3d 100644
--- a/textproc/libvisio01/pkg-plist
+++ b/textproc/libvisio01/pkg-plist
@@ -8,5 +8,5 @@ include/libvisio-0.1/libvisio/VisioDocument.h
include/libvisio-0.1/libvisio/libvisio.h
lib/libvisio-0.1.so
lib/libvisio-0.1.so.1
-lib/libvisio-0.1.so.1.0.1
+lib/libvisio-0.1.so.1.0.3
libdata/pkgconfig/libvisio-0.1.pc