diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2017-10-01 23:12:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-01 23:12:40 -0700 |
| commit | 15288c7aed2326886f179c0b1ca8de7768101238 (patch) | |
| tree | 08b2803d94c6f7ee21772b54e169490c0de1701f | |
| parent | b2ec8fa522c89b789df9b4ee7b8576462eab7eaf (diff) | |
| parent | 99a7b186a018e260150f089218ef52073e0393de (diff) | |
| download | vcpkg-15288c7aed2326886f179c0b1ca8de7768101238.tar.gz vcpkg-15288c7aed2326886f179c0b1ca8de7768101238.zip | |
Merge pull request #1893 from JesseTG/jtg/spirit-po
Add a port for spirit-po
| -rw-r--r-- | ports/spirit-po/CONTROL | 4 | ||||
| -rw-r--r-- | ports/spirit-po/portfile.cmake | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/spirit-po/CONTROL b/ports/spirit-po/CONTROL new file mode 100644 index 000000000..b9857cea0 --- /dev/null +++ b/ports/spirit-po/CONTROL @@ -0,0 +1,4 @@ +Source: spirit-po +Version: 1.1.2 +Description: A header-only C++ library for localization using GNU gettext po files, based on Boost.Spirit. +Build-Depends: boost diff --git a/ports/spirit-po/portfile.cmake b/ports/spirit-po/portfile.cmake new file mode 100644 index 000000000..3fa1cb23b --- /dev/null +++ b/ports/spirit-po/portfile.cmake @@ -0,0 +1,16 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/spirit-po-1.1.2) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/cbeck88/spirit-po/archive/v1.1.2.zip" + FILENAME "spirit-po-1.1.2.zip" + SHA512 8a33126c199765b91e832c64e546f240d532858e051b217189778ad01ef584c67f0f4b2f9674cb7b4a877ec2a2b21b5eda35dc24a12da8eb7a7990bf63a4a774 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +file(INSTALL ${SOURCE_PATH}/include/spirit_po + DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +# spirit-po is header-only, so no vcpkg_{configure,install}_cmake + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/spirit-po RENAME copyright) |
