diff options
| author | William Woodruff <william@yossarian.net> | 2020-04-27 10:06:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 07:06:49 -0700 |
| commit | d525bf5b203e3595d5396f24adc2ea0aff70190a (patch) | |
| tree | 48eadc251fc326e669d5450d84859e67d79bd48a | |
| parent | 5852144908b2c714be6f0d343f1de01ca2ec7758 (diff) | |
| download | vcpkg-d525bf5b203e3595d5396f24adc2ea0aff70190a.tar.gz vcpkg-d525bf5b203e3595d5396f24adc2ea0aff70190a.zip | |
[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.
| -rw-r--r-- | ports/pe-parse/CONTROL | 5 | ||||
| -rw-r--r-- | ports/pe-parse/portfile.cmake | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/pe-parse/CONTROL b/ports/pe-parse/CONTROL new file mode 100644 index 000000000..c269edd7f --- /dev/null +++ b/ports/pe-parse/CONTROL @@ -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 diff --git a/ports/pe-parse/portfile.cmake b/ports/pe-parse/portfile.cmake new file mode 100644 index 000000000..f0dc4de83 --- /dev/null +++ b/ports/pe-parse/portfile.cmake @@ -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 +) |
