Skip to content

Commit

Permalink
Add json-glib new port
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Feb 2, 2025
1 parent 0ca64b4 commit 260d635
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
41 changes: 41 additions & 0 deletions ports/json-glib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
vcpkg_download_distfile(ARCHIVE
URLS https://download.gnome.org/sources/json-glib/1.10/json-glib-${VERSION}.tar.xz
FILENAME "json-glib-${VERSION}.tar.xz"
SHA512 e1c0e33b17333cf94beb381f505c1819090a11b616dcc23a883f231029dff277c2482823278cbf7b8a07e237d45cbfc7b05f132e1234beff609a739fd5704c6e
)

vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
)

vcpkg_find_acquire_program(PKGCONFIG)

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
-Dintrospection=disabled
-Ddocumentation=disabled
-Dtests=false
-Dinstalled_tests=false
-Dconformance=false
-Dman=false
-Dnls=disabled
)

vcpkg_install_meson()

vcpkg_copy_pdbs()

vcpkg_fixup_pkgconfig()

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSES/LGPL-2.1-or-later.txt" "${SOURCE_PATH}/LICENSES/CC0-1.0.txt" "${SOURCE_PATH}/LICENSES/MIT.txt")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_copy_tools(
TOOL_NAMES json-glib-format json-glib-validate
AUTO_CLEAN
)
14 changes: 14 additions & 0 deletions ports/json-glib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "json-glib",
"version": "1.10.6",
"description": "Implements a full JSON parser and generator using GLib and GObject, and integrates JSON with GLib data types.",
"homepage": "https://wiki.gnome.org/Projects/JsonGlib",
"license": "LGPL-2.1-or-later",
"dependencies": [
"glib",
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3856,6 +3856,10 @@
"baseline": "0.3.4",
"port-version": 0
},
"json-glib": {
"baseline": "1.10.6",
"port-version": 0
},
"json-rpc-cxx": {
"baseline": "0.3.2",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/j-/json-glib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "486e21dedf6be065f71f18f1f5cf44c268bc44bf",
"version": "1.10.6",
"port-version": 0
}
]
}

0 comments on commit 260d635

Please sign in to comment.