1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
5 KEYWORDS= textproc devel
7 SDESC[standard]= Import filter and tools for MS Visio Diagrams
8 HOMEPAGE= https://wiki.documentfoundation.org/DLP/Libraries/libvisio
12 SITES[main]= https://dev-www.libreoffice.org/src/libvisio/
13 DISTFILE[1]= libvisio-0.1.7.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= gperf:primary:standard
21 boost-libraries:dev:standard
22 cppunit:single:standard
24 librevenge:dev:standard
25 BUILDRUN_DEPENDS= librevenge:primary:standard
28 USES= perl:build pkgconfig gmake libtool mbsdfix
29 GNOME_COMPONENTS= libxml2
32 LICENSE_FILE= MPL:{{WRKSRC}}/COPYING.MPL
35 FPC_EQUIVALENT= textproc/libvisio01
38 CONFIGURE_ARGS= --disable-test
42 INSTALL_TARGET= install-strip
46 [FILE:88:descriptions/desc.single]
47 This package contains a library and tools for parsing the visio file
53 8faf8df870cb27b09a787a1959d6c646faa44d0d8ab151883df408b7166bea4c 854296 libvisio-0.1.7.tar.xz
56 [FILE:257:manifests/plist.single]
64 include/libvisio-%%VER%%/libvisio/
69 libvisio-%%VER%%.so.%%SOMAJOR%%
70 libvisio-%%VER%%.so.%%SOVERSION%%
71 lib/pkgconfig/libvisio-%%VER%%.pc
74 [FILE:493:patches/patch-src__lib__VSDMetaData.cpp]
75 --- src/lib/VSDMetaData.cpp.orig 2017-10-21 14:38:56 UTC
76 +++ src/lib/VSDMetaData.cpp
77 @@ -312,7 +312,7 @@ bool libvisio::VSDMetaData::parseTimes(l
78 uint32_t firstDirSectorLocation = readU32(input);
80 // Seek to the Root Directory Entry
81 - size_t sectorSize = std::pow(2, sectorShift);
82 + size_t sectorSize = 1UL << sectorShift;
83 input->seek((firstDirSectorLocation + 1) * sectorSize, librevenge::RVNG_SEEK_SET);
84 // DirectoryEntryName: 64 bytes
85 // DirectoryEntryNameLength: 2 bytes