aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2020-01-06 14:58:27 -0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2020-01-06 14:58:27 -0800
commitec2ceeba40c6da6af1c79b32afa822c0082e42f7 (patch)
treea8b105533a520c45e18c3938c51c06fb7265d776 /ports
parent71fd395f1a8336fbe4d26f008903c543020331b7 (diff)
downloadvcpkg-ec2ceeba40c6da6af1c79b32afa822c0082e42f7.tar.gz
vcpkg-ec2ceeba40c6da6af1c79b32afa822c0082e42f7.zip
[tfhe] Add new port (#8386)
* [tfhe] Add new port * Add the message for not support OSX * Update message and ci.baseline.txt
Diffstat (limited to 'ports')
-rw-r--r--ports/tfhe/CONTROL4
-rw-r--r--ports/tfhe/portfile.cmake21
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/tfhe/CONTROL b/ports/tfhe/CONTROL
new file mode 100644
index 000000000..434694396
--- /dev/null
+++ b/ports/tfhe/CONTROL
@@ -0,0 +1,4 @@
+Source: tfhe
+Version: 1.0.1
+Homepage: https://github.com/tfhe/tfhe
+Description: TFHE is open-source software distributed under the terms of the Apache 2.0 license. \ No newline at end of file
diff --git a/ports/tfhe/portfile.cmake b/ports/tfhe/portfile.cmake
new file mode 100644
index 000000000..7a40d0ace
--- /dev/null
+++ b/ports/tfhe/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux" ON_TARGET "Windows" "osx")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tfhe/tfhe
+ REF v1.0.1
+ SHA512 1d625eb00bf6a36fd86cfad8e1763d7030dd73d68f2422d1678f51352708e9275f0ce69c23fb0d9fec30fba00e1ca4a3df29fb4fc6dfe3b7f16e0d350aa7f170
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/src
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file