Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
./vcpkg/vcpkg install $VCPKG_OPTIONS py-attrs
./vcpkg/vcpkg install $VCPKG_OPTIONS py-beautifulsoup4
./vcpkg/vcpkg install $VCPKG_OPTIONS py-fiona
./vcpkg/vcpkg install $VCPKG_OPTIONS py-pysfcgal
./vcpkg/vcpkg install $VCPKG_OPTIONS py-rasterio
./vcpkg/vcpkg install $VCPKG_OPTIONS py-shapely
./vcpkg/vcpkg install $VCPKG_OPTIONS py-jsonschema
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-attrs
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-beautifulsoup4
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-fiona
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-pysfcgal
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-rasterio
./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-shapely
# ./vcpkg/vcpkg.exe install $VCPKG_OPTIONS py-jsonschema
Expand Down
30 changes: 30 additions & 0 deletions ports/py-pysfcgal/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
set(VCPKG_BUILD_TYPE release)

vcpkg_from_pythonhosted(
OUT_SOURCE_PATH SOURCE_PATH
PACKAGE_NAME pysfcgal
VERSION ${VERSION}
SHA512 7cd31fdec7b85d309b0c64828758cd8568f5308f908f1432164053a419d3455dcb6fee0723113abaa70fcadc302a4b99961a51c9c691dc8c30cb40c55f8c86fe
FILENAME pysfcgal
)

set(ENV{SFCGAL_INCLUDE_PATH} "${CURRENT_INSTALLED_DIR}/include")
set(ENV{SFCGAL_LIBRARY_PATH} "${CURRENT_INSTALLED_DIR}/lib")

set(ENV{INCLUDE}
"${CURRENT_INSTALLED_DIR}/include;$ENV{INCLUDE}"
)

set(ENV{LIB}
"${CURRENT_INSTALLED_DIR}/lib;$ENV{LIB}"
)

vcpkg_python_build_and_install_wheel(
SOURCE_PATH "${SOURCE_PATH}"
)

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

vcpkg_python_test_import(MODULE "pysfcgal")

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
22 changes: 22 additions & 0 deletions ports/py-pysfcgal/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "py-pysfcgal",
"version": "2.2.0",
"description": "Python binding of SFCGAL. SFCGAL is a C++ wrapper library around CGAL with the aim of supporting ISO 191007:2013 and OGC Simple Features for 3D operations.",
"homepage": "https://sfcgal.gitlab.io/pysfcgal/",
"dependencies": [
"sfcgal",
{
"name": "py-cffi",
"host": true
},
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "vcpkg-python-scripts",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@
"baseline": "26.1",
"port-version": 2
},
"py-pysfcgal": {
"baseline": "2.2.0",
"port-version": 0
},
"py-pyspnego": {
"baseline": "0.12.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/p-/py-pysfcgal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "768f88400cf2e6852c2b3b3e8850529a3f336a7f",
"version": "2.2.0",
"port-version": 0
}
]
}
Loading