aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libnotify
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libnotify')
-rw-r--r--vcpkg/ports/libnotify/0001-fix-parameter-name-omitted-error.patch15
-rw-r--r--vcpkg/ports/libnotify/portfile.cmake48
-rw-r--r--vcpkg/ports/libnotify/vcpkg.json39
3 files changed, 102 insertions, 0 deletions
diff --git a/vcpkg/ports/libnotify/0001-fix-parameter-name-omitted-error.patch b/vcpkg/ports/libnotify/0001-fix-parameter-name-omitted-error.patch
new file mode 100644
index 0000000..1b5a2a6
--- /dev/null
+++ b/vcpkg/ports/libnotify/0001-fix-parameter-name-omitted-error.patch
@@ -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);
+
diff --git a/vcpkg/ports/libnotify/portfile.cmake b/vcpkg/ports/libnotify/portfile.cmake
new file mode 100644
index 0000000..cc1602d
--- /dev/null
+++ b/vcpkg/ports/libnotify/portfile.cmake
@@ -0,0 +1,48 @@
+vcpkg_from_gitlab(
+ GITLAB_URL "https://gitlab.gnome.org"
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO "GNOME/libnotify"
+ REF "${VERSION}"
+ HEAD_REF "master"
+ SHA512 731f874676347e18b45eb63ae6a968bce8b34d57aadef444733b73a51b3b29297751699f3aeae9dfd2779afffc7e9c15d3a4141504cfe6cd46f51f79d3ee85d5
+ PATCHES
+ 0001-fix-parameter-name-omitted-error.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}
+ 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")
diff --git a/vcpkg/ports/libnotify/vcpkg.json b/vcpkg/ports/libnotify/vcpkg.json
new file mode 100644
index 0000000..5954322
--- /dev/null
+++ b/vcpkg/ports/libnotify/vcpkg.json
@@ -0,0 +1,39 @@
+{
+ "name": "libnotify",
+ "version": "0.8.7",
+ "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"
+ ]
+ }
+ }
+}