aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-01-16 18:57:34 -0800
committerGitHub <noreply@github.com>2017-01-16 18:57:34 -0800
commit60b0eb3da4db83658e1075c0b1b15cfa7f506c53 (patch)
tree2fb2e1035886a55d4f6b5e982cecaf2ab0ece87e
parent08f5e2f04fa98b657bc92d4fc692f13f36b10f65 (diff)
parent23c6f5f2a7d7a1f7a6a131c39837929d170edc23 (diff)
downloadvcpkg-60b0eb3da4db83658e1075c0b1b15cfa7f506c53.tar.gz
vcpkg-60b0eb3da4db83658e1075c0b1b15cfa7f506c53.zip
Merge pull request #548 from mwoelk83/master
add cereal port
-rw-r--r--ports/cereal/CONTROL3
-rw-r--r--ports/cereal/portfile.cmake18
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/cereal/CONTROL b/ports/cereal/CONTROL
new file mode 100644
index 000000000..3c598a735
--- /dev/null
+++ b/ports/cereal/CONTROL
@@ -0,0 +1,3 @@
+Source: cereal
+Version: 1.2.1
+Description: a header-only C++11 serialization library (built in support for binary, XML and JSon)
diff --git a/ports/cereal/portfile.cmake b/ports/cereal/portfile.cmake
new file mode 100644
index 000000000..ccdf13fd4
--- /dev/null
+++ b/ports/cereal/portfile.cmake
@@ -0,0 +1,18 @@
+#header-only library
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cereal-1.2.1)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/USCiLab/cereal/archive/v1.2.1.tar.gz"
+ FILENAME "cereal-1.2.1.tar.gz"
+ SHA512 f0050f27433a4b544e7785aa94fc7b14a57eed6d542e25d3d0fda4d27cf55ea55e796be2138bf80809c96c392436513fe42764b3a456938395bf7f7177dd1c73
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cereal)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/cereal/LICENSE ${CURRENT_PACKAGES_DIR}/share/cereal/copyright)
+
+# Copy the cereal header files
+execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory
+ ${SOURCE_PATH}/include/cereal/
+ ${CURRENT_PACKAGES_DIR}/include/cereal)