Skip to content

Commit

Permalink
[py-pyyaml] New port
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Mar 14, 2024
1 parent 719f4a4 commit 5dd7ae2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ports/py-pyyaml/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
vcpkg_from_pythonhosted(
OUT_SOURCE_PATH SOURCE_PATH
PACKAGE_NAME PyYAML
VERSION ${VERSION}
SHA512 37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
17 changes: 17 additions & 0 deletions ports/py-pyyaml/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "py-pyyaml",
"version": "6.0.1",
"description": "YAML parser and emitter for Python",
"homepage": "https://pyyaml.org/",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "vcpkg-python-scripts",
"host": true
}
]
}

0 comments on commit 5dd7ae2

Please sign in to comment.