add sigslot (#8262)

This commit is contained in:
LeiLeiLei 2019-09-21 02:27:24 +08:00 committed by Phil Christensen
parent 358ec0954d
commit bb171a0ffc
3 changed files with 31 additions and 0 deletions

3
ports/sigslot/CONTROL Normal file
View File

@ -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.

8
ports/sigslot/LICENSE Normal file
View File

@ -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.

View File

@ -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)