aboutsummaryrefslogtreecommitdiff
path: root/ports/mapbox-polylabel
diff options
context:
space:
mode:
authorMathis Logemann <mathisloge@gmail.com>2021-04-01 19:04:08 +0200
committerGitHub <noreply@github.com>2021-04-01 10:04:08 -0700
commit338964e3ffd130f094c98f07ccbbb53578f8d633 (patch)
treedd9b619378cdb7d729ff310b546871e847c928e9 /ports/mapbox-polylabel
parent13640c56717dec1bba16c6eb0815d3889dbe1c4d (diff)
downloadvcpkg-338964e3ffd130f094c98f07ccbbb53578f8d633.tar.gz
vcpkg-338964e3ffd130f094c98f07ccbbb53578f8d633.zip
[mapbox-geometry,mapbox-polylabel,geojson-vt-cpp,geojson-cpp] new ports (#16838)
* added geometry * added mapbox-polylabel * added versions * add port geojson-vt-cpp * add version * fix formatting * fix version * eh ok * version... * add geojson * add version * false version * fix internal version * use semver string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * fix versions * added mapbox prefix to name. fixed description * changed versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/mapbox-polylabel')
-rw-r--r--ports/mapbox-polylabel/portfile.cmake15
-rw-r--r--ports/mapbox-polylabel/vcpkg.json10
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/mapbox-polylabel/portfile.cmake b/ports/mapbox-polylabel/portfile.cmake
new file mode 100644
index 000000000..a0c711699
--- /dev/null
+++ b/ports/mapbox-polylabel/portfile.cmake
@@ -0,0 +1,15 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mapbox/polylabel
+ REF v1.0.4
+ SHA512 c337577545e072dbc43b5fc822e7a4fc9585051e24f6af76a3525faee7ab5c332915c43401629ad2e8f1f142f9e920f65347609607aec9394fd6bbc5d4936564
+ HEAD_REF master
+)
+
+# Copy header files
+file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/mapbox-polylabel/vcpkg.json b/ports/mapbox-polylabel/vcpkg.json
new file mode 100644
index 000000000..bb26bf642
--- /dev/null
+++ b/ports/mapbox-polylabel/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "mapbox-polylabel",
+ "version-semver": "1.0.4",
+ "description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)",
+ "homepage": "https://github.com/mapbox/polylabel",
+ "dependencies": [
+ "mapbox-geometry",
+ "mapbox-variant"
+ ]
+}