diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-10-19 15:54:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-19 15:54:07 -0700 |
| commit | 0b101d35832c0e8aaac42cdf7b2f0f582685e209 (patch) | |
| tree | e68e1a170f761ca3aa55854d15abdc75c0154bb7 | |
| parent | ec99ffb694f51cd5ef2dd8529dfbfa2bdc381478 (diff) | |
| parent | 63e1b7ea92424bfd46bfe2bfe89a19c9654cf679 (diff) | |
| download | vcpkg-0b101d35832c0e8aaac42cdf7b2f0f582685e209.tar.gz vcpkg-0b101d35832c0e8aaac42cdf7b2f0f582685e209.zip | |
Merge pull request #182 from KindDragon/utf8cpp
[utf8cpp] Initial addition
| -rw-r--r-- | ports/utfcpp/CONTROL | 3 | ||||
| -rw-r--r-- | ports/utfcpp/portfile.cmake | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ports/utfcpp/CONTROL b/ports/utfcpp/CONTROL new file mode 100644 index 000000000..619e8b2b3 --- /dev/null +++ b/ports/utfcpp/CONTROL @@ -0,0 +1,3 @@ +Source: utfcpp +Version: 2.3.4 +Description: UTF-8 with C++ in a Portable Way diff --git a/ports/utfcpp/portfile.cmake b/ports/utfcpp/portfile.cmake new file mode 100644 index 000000000..760d4107c --- /dev/null +++ b/ports/utfcpp/portfile.cmake @@ -0,0 +1,14 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/utfcpp-2.3.4) +vcpkg_download_distfile(ARCHIVE_FILE + URLS "https://github.com/nemtrif/utfcpp/archive/v2.3.4.tar.gz" + FILENAME "utfcpp-2.3.4.tar.gz" + SHA512 1baa67c4efb926bba97dfbc869ac057d5d6cf67e94879fc0854ec3d75a5bae7c47cb3e9fd9cbc7bed9ca5daf40f173c0349bce2f6aa34a400bdf77d01522ff2f +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +# Put the licence file where vcpkg expects it +file(INSTALL ${SOURCE_PATH}/source/utf8.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/utfcpp RENAME copyright) + +# Copy the utf8-cpp header files +file(COPY ${SOURCE_PATH}/source/ DESTINATION ${CURRENT_PACKAGES_DIR}/include) |
