Merge pull request #482 from tfussell/master

Add xlnt port
This commit is contained in:
Robert Schumacher 2017-03-21 17:31:41 -07:00 committed by GitHub
commit 162a46bac9
2 changed files with 35 additions and 0 deletions

4
ports/xlnt/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: xlnt
Version: 0.9.4
Description: Cross-platform user-friendly xlsx library for C++14
Build-Depends: zlib, cryptopp, expat

31
ports/xlnt/portfile.cmake Normal file
View File

@ -0,0 +1,31 @@
include(vcpkg_common_functions)
set(XLNT_REV 9dccde4bff34cfbafbdc3811fdd05326ac6bd0aa)
set(XLNT_HASH 85bb651e42e33a829672ee76d14504fcbab683bb6b468d728837f1163b5ca1395c9aa80b3bed91a243e065599cdbf23cad769375f77792f71c173b02061771af)
set(XLNT_SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/xlnt-${XLNT_REV})
vcpkg_download_distfile(ARCHIVE
URLS https://github.com/tfussell/xlnt/archive/${XLNT_REV}.zip
FILENAME xlnt-${XLNT_REV}.zip
SHA512 ${XLNT_HASH}
)
vcpkg_extract_source_archive(${ARCHIVE})
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(STATIC OFF)
else()
set(STATIC ON)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${XLNT_SOURCE_PATH}
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${XLNT_SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xlnt RENAME copyright)
vcpkg_copy_pdbs()