Skip to content

Commit

Permalink
[gumbo] update to 0.12.2 and switch homepage (#42737)
Browse files Browse the repository at this point in the history
Co-authored-by: Mengna-Li <v-limengna@microsoft.com>
  • Loading branch information
Mengna-Li and Mengna-Li authored Dec 17, 2024
1 parent c368dab commit 2dc91c6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
18 changes: 11 additions & 7 deletions ports/gumbo/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/gumbo-parser
REF v0.10.1
SHA512 bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1
HEAD_REF master
vcpkg_download_distfile(ARCHIVE
URLS "https://codeberg.org/gumbo-parser/gumbo-parser/archive/${VERSION}.tar.gz"
FILENAME "gumbo-${VERSION}.tar.gz"
SHA512 258d93c0404b7dc35e1088cded02a394b2cbd0d08f3e7d0a3e32d859c2032efcc831687c7bc749e9bddb60d4f910bab741007bed1117d486a0d3fd194e22f4e7
)

vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
SOURCE_BASE "${VERSION}"
)

file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
Expand All @@ -25,4 +29,4 @@ vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gumbo" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/COPYING")
5 changes: 2 additions & 3 deletions ports/gumbo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "gumbo",
"version": "0.10.1",
"port-version": 6,
"version": "0.12.2",
"description": "An HTML5 parsing library in pure C99",
"homepage": "https://github.com/google/gumbo-parser",
"homepage": "https://codeberg.org/gumbo-parser/gumbo-parser",
"license": "Apache-2.0",
"dependencies": [
{
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3357,8 +3357,8 @@
"port-version": 0
},
"gumbo": {
"baseline": "0.10.1",
"port-version": 6
"baseline": "0.12.2",
"port-version": 0
},
"gz-cmake3": {
"baseline": "3.4.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gumbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6496c7f2e0f20c7f2c469d77e29a02877714b96b",
"version": "0.12.2",
"port-version": 0
},
{
"git-tree": "b0b57c7286bdadcc64d0e4b2f5b5aca951bb1749",
"version": "0.10.1",
Expand Down

0 comments on commit 2dc91c6

Please sign in to comment.