mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Merge pull request #1893 from JesseTG/jtg/spirit-po
Add a port for spirit-po
This commit is contained in:
commit
15288c7aed
4
ports/spirit-po/CONTROL
Normal file
4
ports/spirit-po/CONTROL
Normal file
@ -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
|
16
ports/spirit-po/portfile.cmake
Normal file
16
ports/spirit-po/portfile.cmake
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user