151.4. libxlsxwriter-1.2.4
C library for writing Excel XLSX files
1.2.4-1 · BSD-2-Clause-Views AND BSD-3-Clause AND BSD-2-Clause AND MIT AND MPL-2.0 · 0.3 SBU · 1.0 MiB, 39 files · 41_system, 822 of 1047 · ports/core/office/libxlsxwriter
Homepage: https://libxlsxwriter.github.io/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/office.txt:
WHAT LETS THE SPREADSHEET HAND A FILE BACK IN THE FORMAT IT ARRIVED IN. sc-im READS .xlsx through libxml2 and libzip and gates its EXPORT on a pkg-config probe for
xlsxwriter; without this port that probe fails silently at build time and the finished program answersXLSX export support not compiled in.to a save.
Depends on: cmake, zlib, pkgconf, minizip.
Required by (1): sc-im.
Sources: libxlsxwriter-1.2.4.tar.gz (20.9 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libxlsxwriter'
build.sh:
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF \
-DUSE_DTOA_LIBRARY=ON -DUSE_SYSTEM_MINIZIP=ON
make
make DESTDIR=$PKG install
Libraries: libxlsxwriter.so.
Directories: /usr/include/xlsxwriter, /usr/share/licenses/libxlsxwriter.