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

[libfaketime] Add new port #38490

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions ports/libfaketime/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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)
dudoslav marked this conversation as resolved.
Show resolved Hide resolved
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
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": [

Check failure on line 2 in versions/l-/libfaketime.json

View check run for this annotation

Azure Pipelines / microsoft.vcpkg.pr (x86_windows)

versions/l-/libfaketime.json#L2

versions/l-/libfaketime.json(2,): error : while parsing versions for libfaketime from version/l-/libfaketime.json
{
"git-tree": "3a3a6cebdf8e4dc052903a111d50c9ee1eb90289",
"version": "0.9.10",
"port-version": 0
},
{
"git-tree": "43c3d525b4e071c4265c512fda07775af3a0df6a",
"version": "0.9.10",
"port-version": 1
}
]
}