Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ppmagic] Add new port #12253

Merged
merged 2 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ports/ppmagic/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: ppmagic
Version: 2c7894e3056c610d383027b2d48149ba9d4a1c62
Description: C/C++ preprocessor macros that you can use to simplify your life.
Homepage: https://github.com/kobalicek/ppmagic
13 changes: 13 additions & 0 deletions ports/ppmagic/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kobalicek/ppmagic
REF 2c7894e3056c610d383027b2d48149ba9d4a1c62
SHA512 4ab5f1dbef4c9b7892d8042e2a2b01df21a201b2b05a1b75a6ad594f50e2ec1c6a3e4782bb1d702266c90440df679d7eb24dfe595ce35680f7d263ec6c371a3b
HEAD_REF master
)

file(COPY ${SOURCE_PATH}/ppmagic.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)

configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)