[pe-parse] Add new port (#11012)

* [pe-parse] Add new port

* pe-parse/CONTROL: Fix version, remove dep

* pe-parse/portfile: Formatting

* pe-parse/CONTROL: Add pe-parse's homepage

* pe-parse/CONTROL: Don't support UWP

This isn't a platform pe-parse intends to support.
This commit is contained in:
William Woodruff 2020-04-27 10:06:49 -04:00 committed by GitHub
parent 5852144908
commit d525bf5b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

5
ports/pe-parse/CONTROL Normal file
View File

@ -0,0 +1,5 @@
Source: pe-parse
Version: 1.2.0
Description: pe-parse is a principled, lightweight C/C++ PE parser
Homepage: https://github.com/trailofbits/pe-parse
Supports: !uwp

View File

@ -0,0 +1,27 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO trailofbits/pe-parse
REF v1.2.0
SHA512 916ec515585ba1e83e2c6ae29667fd25bd4cac90c39e587ae6847dc9d503186e8853bd80f4e2a99177a3214f5c51eceff85fa610cadbc2bc1d3a79251e8ce942
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DBUILD_COMMAND_LINE_TOOLS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/pe-parse TARGET_PATH share/pe-parse)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(
INSTALL
"${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/pe-parse"
RENAME copyright
)