Skip to content
Closed
Show file tree
Hide file tree
Changes from 9 commits
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
20 changes: 20 additions & 0 deletions ports/libfaketime/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wolfcw/libfaketime
REF v${VERSION}
SHA512 07c431bee21e31343b680d1322dd529ea276e3cc4dbec61646c12bf5d0263163faf6186efeb36b199e24b655578a493c43e3b7a7acf8eba8b9ff84a1e94d618b
)

vcpkg_configure_make(SOURCE_PATH "${SOURCE_PATH}"
SKIP_CONFIGURE
COPY_SOURCE
)
vcpkg_install_make()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

# Handle copyright and usage
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
3 changes: 3 additions & 0 deletions ports/libfaketime/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libfaketime provides runtime libraries:

find_library(LIBFAKETIME NAMES faketime)
10 changes: 10 additions & 0 deletions ports/libfaketime/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "libfaketime",
"version": "0.9.10",
"description": "libfaketime modifies the system time for a single application",
"homepage": "https://github.com/wolfcw/libfaketime",
"license": "GPL-2.0-only",
"supports": "linux | osx",
"dependencies": [
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4372,6 +4372,10 @@
"baseline": "1.13.2",
"port-version": 2
},
"libfaketime": {
"baseline": "0.9.10",
"port-version": 0
},
"libffi": {
"baseline": "3.4.6",
"port-version": 0
Expand Down
14 changes: 14 additions & 0 deletions versions/l-/libfaketime.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should delete this file and revert the changes to baseline.json, run vcpkg x-add-version, and make and push a commit.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"versions": [
{
"git-tree": "3a3a6cebdf8e4dc052903a111d50c9ee1eb90289",
"version": "0.9.10",
"port-version": 0
},
{
"git-tree": "43c3d525b4e071c4265c512fda07775af3a0df6a",
"version": "0.9.10",
"port-version": 1
}
]
}