aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-03-21 17:31:41 -0700
committerGitHub <noreply@github.com>2017-03-21 17:31:41 -0700
commit162a46bac9f7691782f0e6fd60f4268ba9f3e6fb (patch)
treeedbb5f3dbf4b7b08e9ceaa335298fa289bc3ae7d
parent8bf849d9ed60ab13ea84aa688ad3d484e36b6b66 (diff)
parent9375232c0ef99a7731873a91b2b429ab356ad031 (diff)
downloadvcpkg-162a46bac9f7691782f0e6fd60f4268ba9f3e6fb.tar.gz
vcpkg-162a46bac9f7691782f0e6fd60f4268ba9f3e6fb.zip
Merge pull request #482 from tfussell/master
Add xlnt port
-rw-r--r--ports/xlnt/CONTROL4
-rw-r--r--ports/xlnt/portfile.cmake31
2 files changed, 35 insertions, 0 deletions
diff --git a/ports/xlnt/CONTROL b/ports/xlnt/CONTROL
new file mode 100644
index 000000000..0a9a86c0a
--- /dev/null
+++ b/ports/xlnt/CONTROL
@@ -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 \ No newline at end of file
diff --git a/ports/xlnt/portfile.cmake b/ports/xlnt/portfile.cmake
new file mode 100644
index 000000000..b4a0f5e62
--- /dev/null
+++ b/ports/xlnt/portfile.cmake
@@ -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()