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

Mass update #42

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
39 changes: 20 additions & 19 deletions ports/gdal/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "gdal",
"version-semver": "3.9.2",
"port-version": 1,
"description": "The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data",
"homepage": "https://gdal.org",
"license": null,
Expand Down Expand Up @@ -41,25 +42,6 @@
"default-features"
],
"features": {
"python": {
"description": "Build python bindings",
"dependencies": [
"python3",
"py-numpy",
{
"name": "swig",
"host": true
},
{
"name": "py-setuptools",
"host": true
},
{
"name": "vcpkg-python-scripts",
"host": true
}
]
},
"aws-ec2-windows": {
"description": "Optimized detection of AWS EC2 Windows hosts",
"dependencies": [
Expand Down Expand Up @@ -269,6 +251,25 @@
"libpq"
]
},
"python": {
"description": "Build python bindings",
"dependencies": [
"py-numpy",
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "swig",
"host": true
},
{
"name": "vcpkg-python-scripts",
"host": true
}
]
},
"qhull": {
"description": "Use QHULL library",
"dependencies": [
Expand Down
16 changes: 16 additions & 0 deletions ports/py-certifi/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO certifi/python-certifi
REF 2024.02.02
SHA512 e62f1741fd9bb10a976f5e864a4946f00e1df1b92082e66fe146ee3275036c365d1e98ed023614a1da07ab2a7a58bc333c77c71586ea50a992eb7d5b54a515e5
HEAD_REF main
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

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

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

vcpkg_python_test_import(MODULE "certifi")
15 changes: 15 additions & 0 deletions ports/py-certifi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "py-certifi",
"version-date": "2024-02-02",
"description": "A carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts.",
"homepage": "https://github.com/certifi/python-certifi",
"license": null,
"dependencies": [
"py-semantic-version",
{
"name": "py-setuptools",
"host": true
},
"vcpkg-python-scripts"
]
}
30 changes: 30 additions & 0 deletions ports/py-contourpy/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2001-2022
# David M. Beazley (Dabeaz LLC)
# All rights reserved.
#
# Latest version: https://github.com/dabeaz/ply
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of David Beazley or Dabeaz LLC may be used to
# endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 changes: 12 additions & 0 deletions ports/py-contourpy/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 contourpy
VERSION ${VERSION}
SHA512 1804b5512cbccef38e86a1d28c91e7a19a72cf9baeaede0873abd7ed7c46f78e3a81a1e7fa87b91cbeef96d55930db6527fbbff905803ad393170e3ed709e0b0
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

vcpkg_install_copyright(FILE_LIST "${CURRENT_PORT_DIR}/copyright")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
17 changes: 17 additions & 0 deletions ports/py-contourpy/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "py-contourpy",
"version": "1.3.0",
"description": "Python library for calculating contours in 2D quadrilateral grids",
"homepage": "https://contourpy.readthedocs.io/",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "vcpkg-python-scripts",
"host": true
}
]
}
15 changes: 15 additions & 0 deletions ports/py-cppy/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
set(name cppy-${VERSION})
set(wheelname ${name}-py3-none-any.whl)

vcpkg_download_distfile(
wheel
URLS https://github.com/nucleic/cppy/releases/download/${VERSION}/${wheelname}
FILENAME ${wheelname}
SHA512 033dc1fca6e0c6b75017d64b92208b32da35a1106d9d1fff6520ee27e5472d69be3ba77c22ce46b4d68e21a4166871519ed1f4aebbb130e5d579af6472b20efb
)

vcpkg_python_install_wheel(WHEEL "${wheel}")

vcpkg_install_copyright(FILE_LIST "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}/${name}.dist-info/LICENSE")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
14 changes: 14 additions & 0 deletions ports/py-cppy/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "py-cppy",
"version": "1.2.1",
"description": "A collection of C++ headers which make it easier to write Python C extension modules",
"homepage": "https://cppy.readthedocs.io/en/latest/",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"vcpkg-python-scripts"
]
}
15 changes: 15 additions & 0 deletions ports/py-cycler/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO matplotlib/cycler
REF v${VERSION}
SHA512 f1d264de9c5e63515649aefb5937ef7a85d781c07b1c7c8fe291c969565abb18eb48d6d62f77d278746c60900c93700cbb095d280e09de768aedc2463e60d9a2
HEAD_REF main
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

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

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

vcpkg_python_test_import(MODULE "cycler")
15 changes: 15 additions & 0 deletions ports/py-cycler/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "py-cycler",
"version": "0.12.1",
"description": "cycler: composable cycles",
"homepage": "https://matplotlib.org/cycler/",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"python3",
"vcpkg-python-scripts"
]
}
16 changes: 16 additions & 0 deletions ports/py-dateutil/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
string(REGEX REPLACE "^py-" "" package "${PORT}")
vcpkg_from_pythonhosted(
OUT_SOURCE_PATH SOURCE_PATH
PACKAGE_NAME python-${package}
VERSION ${VERSION}
SHA512 7dd550d646477c8c3953a42aabe4c0aa3f4d1f74f6fed018a1a429270f41aa2c6832df264e67510d380d149eaa436c1b613544c8026c180c2241f15205ca6d36
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

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

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

string(REGEX REPLACE "-" "_" test_package "${package}")
vcpkg_python_test_import(MODULE "${test_package}")
15 changes: 15 additions & 0 deletions ports/py-dateutil/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "py-dateutil",
"version": "2.9.0",
"description": "Useful extensions to the standard Python datetime features",
"homepage": "https://github.com/dateutil/dateutil",
"license": null,
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"py-six",
"vcpkg-python-scripts"
]
}
30 changes: 30 additions & 0 deletions ports/py-fonttools/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2001-2022
# David M. Beazley (Dabeaz LLC)
# All rights reserved.
#
# Latest version: https://github.com/dabeaz/ply
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of David Beazley or Dabeaz LLC may be used to
# endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 changes: 12 additions & 0 deletions ports/py-fonttools/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 fonttools
VERSION ${VERSION}
SHA512 c031bef5cb8850f7d30bbd64b746e5ff4e15d3a11ebc0fc2365bcfcb9c173e09d520a3c82b05aa76d6a8fcb404037f070f937f25baeacf88e98673857aed9700
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

vcpkg_install_copyright(FILE_LIST "${CURRENT_PORT_DIR}/copyright")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
17 changes: 17 additions & 0 deletions ports/py-fonttools/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "py-fonttools",
"version": "4.53.1",
"description": "A library to manipulate font files from Python.",
"homepage": "https://github.com/fonttools/fonttools",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "vcpkg-python-scripts",
"host": true
}
]
}
2 changes: 2 additions & 0 deletions ports/py-gpep517/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ file(COPY "${SOURCE_PATH}/gpep517" DESTINATION "${CURRENT_PACKAGES_DIR}/${PYTHON
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

vcpkg_python_test_import(MODULE "gpep517")
18 changes: 13 additions & 5 deletions ports/py-gpep517/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
{
"name": "py-gpep517",
"version": "16",
"port-version": 1,
"description": "Python package builder and installer for non-pip-centric world",
"homepage": "https://github.com/projg2/gpep517",
"license": "MIT",
"dependencies": [
"py-flit-core",
"py-installer",
"python3",
{
"name": "vcpkg-python-scripts",
"name": "py-flit-core",
"host": true
}
},
{
"name": "py-installer",
"host": true
},
{
"name": "python3",
"host": true,
"default-features": false
},
"vcpkg-python-scripts"
]
}
33 changes: 33 additions & 0 deletions ports/py-kiwisolver/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nucleic/kiwi
REF ${VERSION}
SHA512 889e106c27915cb773bc13969605812c1ca01a139e992d2b3517eb20989ae41392bfdcdd63184a7777b13eff5109d167869087ea09149b1527e56a3455213b14
HEAD_REF master
)


file(WRITE "${SOURCE_PATH}/py/src/version.h"
"\n\
/* ----------------------------------------------------------------------------\n\
| Copyright (c) 2013-2021, Nucleic Development Team.\n\
|\n\
| Distributed under the terms of the Modified BSD License.\n\
|\n\
| The full license is in the file LICENSE, distributed with this software.\n\
| ---------------------------------------------------------------------------*/\n\
\n\
#pragma once\n\
\n\
#define PY_KIWI_VERSION \"${VERSION}\"\n\
\n"
)

vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")

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

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

vcpkg_python_test_import(MODULE "kiwisolver")

15 changes: 15 additions & 0 deletions ports/py-kiwisolver/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "py-kiwisolver",
"version": "1.4.5",
"description": "Efficient C++ implementation of the Cassowary constraint solving algorithm",
"homepage": "https://kiwisolver.readthedocs.io/en/latest/",
"license": null,
"dependencies": [
"py-cppy",
{
"name": "py-setuptools",
"host": true
},
"vcpkg-python-scripts"
]
}
Loading
Loading