Index: head/textproc/libvisio01/Makefile =================================================================== --- head/textproc/libvisio01/Makefile (revision 393926) +++ head/textproc/libvisio01/Makefile (revision 393927) @@ -1,32 +1,31 @@ # $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 MAINTAINER= office@FreeBSD.org COMMENT= Library and tools for parsing the visio file format structure LICENSE= LGPL21 MPL GPLv2 LICENSE_COMB= dual BUILD_DEPENDS= ${LOCALBASE}/include/boost/spirit/include/classic_core.hpp:${PORTSDIR}/devel/boost-libs LIB_DEPENDS= libicui18n.so:${PORTSDIR}/devel/icu \ librevenge-0.0.so:${PORTSDIR}/textproc/librevenge CONFIGURE_ARGS= --disable-tests --disable-werror --without-docs CPPFLAGS+= -I${LOCALBASE}/include GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_PERL5= build USE_GNOME= libxml2 USES= gmake gperf libtool pathfix perl5 pkgconfig tar:xz INSTALL_TARGET= install-strip post-patch: @${REINPLACE_CMD} -e "s,zlib,,g" ${WRKSRC}/libvisio.pc.in .include Index: head/textproc/libvisio01/distinfo =================================================================== --- head/textproc/libvisio01/distinfo (revision 393926) +++ head/textproc/libvisio01/distinfo (revision 393927) @@ -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 Index: head/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp =================================================================== --- head/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp (revision 393926) +++ head/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp (revision 393927) @@ -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 Index: head/textproc/libvisio01/pkg-plist =================================================================== --- head/textproc/libvisio01/pkg-plist (revision 393926) +++ head/textproc/libvisio01/pkg-plist (revision 393927) @@ -1,12 +1,12 @@ bin/vsd2raw bin/vsd2text bin/vsd2xhtml bin/vss2raw bin/vss2text bin/vss2xhtml 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