From bb171a0ffc44b2eafd5af871852f25c9367348bb Mon Sep 17 00:00:00 2001 From: LeiLeiLei Date: Sat, 21 Sep 2019 02:27:24 +0800 Subject: [PATCH] add sigslot (#8262) --- ports/sigslot/CONTROL | 3 +++ ports/sigslot/LICENSE | 8 ++++++++ ports/sigslot/portfile.cmake | 20 ++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 ports/sigslot/CONTROL create mode 100644 ports/sigslot/LICENSE create mode 100644 ports/sigslot/portfile.cmake diff --git a/ports/sigslot/CONTROL b/ports/sigslot/CONTROL new file mode 100644 index 00000000000..9b3e16b3753 --- /dev/null +++ b/ports/sigslot/CONTROL @@ -0,0 +1,3 @@ +Source: sigslot +Version: 1.0.0 +Description: Portable C++ type-safe, thread-safe signal/slot library for ISO C++, Unix/BSD/Linux and Win32. Sigslot allows C++ code to use the signal/slot paradigm made popular by, for example, Qt. diff --git a/ports/sigslot/LICENSE b/ports/sigslot/LICENSE new file mode 100644 index 00000000000..d706712aa6c --- /dev/null +++ b/ports/sigslot/LICENSE @@ -0,0 +1,8 @@ +License +The sigslot library has been placed in the public domain. This means that you are free to use it however you like. + +The author takes no responsibility or liability of any kind for any use that you may make of this library. + +If you screw up, it's your fault. + +If the library screws up, you got it for free, so you should have tested it better - it's still your responsibility. \ No newline at end of file diff --git a/ports/sigslot/portfile.cmake b/ports/sigslot/portfile.cmake new file mode 100644 index 00000000000..4993bf9e09c --- /dev/null +++ b/ports/sigslot/portfile.cmake @@ -0,0 +1,20 @@ +include(vcpkg_common_functions) + +vcpkg_download_distfile( + ARCHIVE + URLS + "https://downloads.sourceforge.net/project/sigslot/sigslot/1.0.0/sigslot-1-0-0.tar.gz" + FILENAME + "sigslot-1-0-0.tar.gz" + SHA512 + 3f16f94a653e49934ec1d695eac02234d15b203f42e9fa88723ee582a84670a645a89e5b87afe2378fa7a9eaef054049255bf3bd531ab1d6825a042641ba8906 + ) + +vcpkg_extract_source_archive(${ARCHIVE} ${CURRENT_BUILDTREES_DIR}) + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/sigslot/sigslot.h + DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(INSTALL ${CURRENT_PORT_DIR}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/sigslot + RENAME copyright)