From d26d9abf4710c3a087c5ed6c409688c1567d24e7 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 25 Aug 2022 12:42:06 +0200 Subject: [PATCH] libnotify, new recipe (#7130) --- x11-libs/libnotify/libnotify-0.8.1.recipe | 103 ++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 x11-libs/libnotify/libnotify-0.8.1.recipe diff --git a/x11-libs/libnotify/libnotify-0.8.1.recipe b/x11-libs/libnotify/libnotify-0.8.1.recipe new file mode 100644 index 000000000..c54833d48 --- /dev/null +++ b/x11-libs/libnotify/libnotify-0.8.1.recipe @@ -0,0 +1,103 @@ +SUMMARY="Desktop notification library" +DESCRIPTION="libnotify is a library for sending desktop notifications to a notification daemon, \ +as defined in the org.freedesktop.Notifications Desktop Specification. These notifications can be \ +used to inform the user about an event or display some form of information without getting in the \ +user's way. + +It is also a simple wrapper to send cross-desktop Notifications for sandboxed applications using \ +the XDG Portal Notification API. + +## Notice + +For GLib based applications the GNotification API should be used instead." +HOMEPAGE="https://gitlab.gnome.org/GNOME/libnotify" +COPYRIGHT="2004 Christian Hammond + 2004 Mike Hearn + 2006 John (J5) Palmieri" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://download.gnome.org/sources/libnotify/0.8/libnotify-$portVersion.tar.xz" +CHECKSUM_SHA256="d033e6d4d6ccbf46a436c31628a4b661b36dca1f5d4174fe0173e274f4e62557" + +ARCHITECTURES="?all !x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="4.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libnotify$secondaryArchSuffix = $portVersion + cmd:notify_send + lib:libnotify$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgdk_3$secondaryArchSuffix + lib:libgdk_pixbuf_2.0$secondaryArchSuffix + lib:libgio_2.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libgtk_3$secondaryArchSuffix + " + +PROVIDES_devel=" + libnotify${secondaryArchSuffix}_devel = $portVersion + devel:libnotify$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libnotify$secondaryArchSuffix == $portVersion base + devel:libffi$secondaryArchSuffix + devel:libgdk_pixbuf_2.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libpcre2_8$secondaryArchSuffix + devel:libz$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgdk_3$secondaryArchSuffix + devel:libgtk_3$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:meson + cmd:gcc$secondaryArchSuffix + cmd:gtkdoc_scan + cmd:ninja + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + meson build --buildtype=release \ + --prefix=$prefix \ + --includedir=$includeDir \ + --libdir=$libDir \ + --localedir=$dataDir/locale \ + -Dman=false \ + -Dintrospection=disabled + ninja -C build +} + +INSTALL() +{ + ninja -C build install + + mkdir -p $dataDir + mv $prefix/share/gtk-doc $dataDir + rm -rf $prefix/share + + prepareInstalledDevelLib \ + libnotify + fixPkgconfig + + packageEntries devel \ + $developDir \ + $dataDir +} + +TEST() +{ + ninja -C build test +}