Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/libnotify/launch-context.c b/libnotify/launch-context.c
index facb43c..9469042 100644
--- a/libnotify/launch-context.c
+++ b/libnotify/launch-context.c
@@ -49,8 +49,8 @@ notification_app_launch_context_finalize (GObject *object)

static char *
notification_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
- GAppInfo *,
- GList *)
+ GAppInfo *gai,
+ GList *gl)
{
NotificationAppLaunchContext *self = NOTIFICATION_APP_LAUNCH_CONTEXT (context);

13 changes: 13 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libnotify/0002-fix-static-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/libnotify/meson.build b/libnotify/meson.build
index b50d9cc..118c34c 100644
--- a/libnotify/meson.build
+++ b/libnotify/meson.build
@@ -55,7 +55,7 @@ notify_dep = declare_dependency(
sources: headers + [enum_types[1]],
)

-libnotify_lib = shared_library(LIBNAME,
+libnotify_lib = library(LIBNAME,
dependencies: notify_dep,
sources: [
sources,
53 changes: 53 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libnotify/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
string(REGEX MATCH [[^[0-9][0-9]*\.[1-9][0-9]*]] VERSION_MAJOR_MINOR ${VERSION})
vcpkg_download_distfile(ARCHIVE
URLS
"https://download.gnome.org/sources/${PORT}/${VERSION_MAJOR_MINOR}/${PORT}-${VERSION}.tar.xz"
"https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/${PORT}/${VERSION_MAJOR_MINOR}/${PORT}-${VERSION}.tar.xz"
FILENAME "GNOME-${PORT}-${VERSION}.tar.xz"
SHA512 0fedd230d3c8b9bd3c783794e690752cf6388fc178854267effe3ba26aaa9248415cdf0ab994f596ace8bef59e0c1e41196f42a225221d7f0e1efc54683c310a
)

vcpkg_extract_source_archive(SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
0001-fix-parameter-name-omitted-error.patch
0002-fix-static-build.patch
)

vcpkg_list(SET RELEASE_OPTIONS)
if("introspection" IN_LIST FEATURES)
vcpkg_list(APPEND RELEASE_OPTIONS -Dintrospection=enabled)
vcpkg_get_gobject_introspection_programs(PYTHON3 GIR_COMPILER GIR_SCANNER)
else()
vcpkg_list(APPEND RELEASE_OPTIONS -Dintrospection=disabled)
endif()

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dtests=false
-Dman=false
-Dgtk_doc=false
-Ddocbook_docs=disabled
OPTIONS_RELEASE
${RELEASE_OPTIONS}
Comment on lines +17 to +33

Copilot AI Jan 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name RELEASE_OPTIONS is inconsistent with the naming convention used in other similar ports in this repository. Other GNOME library ports (gdk-pixbuf at line 22 and gtk3 at line 35) use OPTIONS_RELEASE for this purpose. Consider renaming RELEASE_OPTIONS to OPTIONS_RELEASE to maintain consistency across the codebase, even though both approaches are functionally equivalent.

Copilot uses AI. Check for mistakes.
OPTIONS_DEBUG
-Dintrospection=disabled
ADDITIONAL_BINARIES
"g-ir-compiler='${GIR_COMPILER}'"
"g-ir-scanner='${GIR_SCANNER}'"
"glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'"
"glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'"
)

vcpkg_install_meson()

vcpkg_copy_pdbs()

vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
40 changes: 40 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libnotify/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "libnotify",
"version": "0.8.8",
"port-version": 1,
"description": "A library for sending desktop notifications",
"homepage": "https://gitlab.gnome.org/GNOME/libnotify",
"license": "LGPL-2.1-or-later",
"supports": "linux",
"dependencies": [
{
"name": "gdk-pixbuf",
"default-features": false
},
"glib",
{
"name": "glib",
"host": true
},
{
"name": "vcpkg-tool-meson",
"host": true
}
],
"features": {
"introspection": {
"description": "Enable GObject introspection",
"supports": "!static",
"dependencies": [
{
"name": "gdk-pixbuf",
"default-features": false,
"features": [
"introspection"
]
},
"gobject-introspection"
]
}
}
}
Loading