aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwinsoft666 <46803815+winsoft666@users.noreply.github.com>2020-01-18 08:12:40 +0800
committerVictor Romero <romerosanchezv@gmail.com>2020-01-17 16:12:40 -0800
commit08c8214d68edda04cd9da8eda1b2271da00c8628 (patch)
treeb9cb017868a35d47a4153edee3fd894bde955cf2
parent38b959022cec1b865489d97a697eda84b49cc4e5 (diff)
downloadvcpkg-08c8214d68edda04cd9da8eda1b2271da00c8628.tar.gz
vcpkg-08c8214d68edda04cd9da8eda1b2271da00c8628.zip
[teemo] new port. (#9684)
-rw-r--r--ports/teemo/CONTROL5
-rw-r--r--ports/teemo/portfile.cmake41
-rw-r--r--scripts/ci.baseline.txt4
3 files changed, 50 insertions, 0 deletions
diff --git a/ports/teemo/CONTROL b/ports/teemo/CONTROL
new file mode 100644
index 000000000..2ee045a35
--- /dev/null
+++ b/ports/teemo/CONTROL
@@ -0,0 +1,5 @@
+Source: teemo
+Version: 1.2
+Build-Depends: curl[non-http], cpprestsdk
+Description: C++ File Download Library, support Multithreading, Breakpoint Transmission, Speed Limit, Real-time Speed.
+Homepage: https://github.com/winsoft666/teemo \ No newline at end of file
diff --git a/ports/teemo/portfile.cmake b/ports/teemo/portfile.cmake
new file mode 100644
index 000000000..df79626c0
--- /dev/null
+++ b/ports/teemo/portfile.cmake
@@ -0,0 +1,41 @@
+vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP" "osx")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO winsoft666/teemo
+ REF 15edb1705d18ee78b32516a8ae52d6b10507af62
+ SHA512 7dbe917d48b1e8c4b004bad33d8a82524e501d8bec6cdeca4e89ebbe8ed79fa484028c3afd365347e31fa83f64a6f0f5a42ea0063baa7c0985824fb3dffcc8f2
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" TEEMO_STATIC)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DTEEMO_STATIC:BOOL=${TEEMO_STATIC}
+ -DBUILD_TESTS:BOOL=OFF
+)
+
+vcpkg_install_cmake()
+
+if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/teemo)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/teemo)
+elseif(EXISTS ${CURRENT_PACKAGES_DIR}/share/teemo)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/teemo)
+endif()
+
+file(READ ${CURRENT_PACKAGES_DIR}/include/teemo.h TEEMO_H)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ string(REPLACE "#ifdef TEEMO_STATIC" "#if 1" TEEMO_H "${TEEMO_H}")
+else()
+ string(REPLACE "#ifdef TEEMO_STATIC" "#if 0" TEEMO_H "${TEEMO_H}")
+endif()
+file(WRITE ${CURRENT_PACKAGES_DIR}/include/teemo.h "${TEEMO_H}")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+vcpkg_copy_pdbs() \ No newline at end of file
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index ab88ed6f6..255607e56 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1631,6 +1631,10 @@ tcl:arm64-windows=ignore
tcl:x64-uwp=ignore
tcl:x64-linux=ignore
tcl:x64-osx=ignore
+teemo:x64-uwp=fail
+teemo:arm-uwp=fail
+teemo:arm64-windows=fail
+teemo:x64-osx=fail
telnetpp:arm-uwp=fail
telnetpp:x64-uwp=fail
tensorflow-cc:arm64-windows=fail