Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Feb 5, 2025
1 parent f78c6c9 commit d996fac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions ports/plutosvg/find-package-plutovg.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c83a15d..8abc9be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ FetchContent_Declare(plutovg
FIND_PACKAGE_ARGS 0.0.3
)

-FetchContent_MakeAvailable(plutovg)
+find_package(plutovg REQUIRED)

set(plutosvg_sources source/plutosvg.c)
set(plutosvg_headers source/plutosvg.h)
2 changes: 2 additions & 0 deletions ports/plutosvg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 31f989aef2329ac41c19f8c4852f5a1d5c37dc7726192d230ba2a74262bdc6356facf3295b4d8a05f2be79ba313bcc3f01bd52e4024382c9ce09e259a5421440
HEAD_REF master
PATCHES
find-package-plutovg.diff
)

vcpkg_cmake_configure(
Expand Down
2 changes: 0 additions & 2 deletions ports/plutovg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 e68e6c186d7577bd17e5c46c3109fbeaba0bd0698599c401d195430c3375170d5d5ed45379fdc2c6f1fea817e1ae01cddaf6b3de9130f5896b8adc9f2bab105b
HEAD_REF master
PATCHES
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPLUTOVG_BUILD_EXAMPLES=OFF
-DBUILD_SHARED_LIBS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
Expand Down
2 changes: 1 addition & 1 deletion versions/p-/plutosvg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "08d8622e01e343badb679c27698af33b7044b1d4",
"git-tree": "a96836663d364b88887ffa1d327f47e45b3236ff",
"version": "0.0.4",
"port-version": 0
}
Expand Down
2 changes: 1 addition & 1 deletion versions/p-/plutovg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "4982b70bf616619bfd9f75a1c34376a6c7e9bea0",
"git-tree": "ccdaf45cf0cc6c8c2a8763e0f442979fce2605bf",
"version": "0.0.12",
"port-version": 0
}
Expand Down

0 comments on commit d996fac

Please sign in to comment.