mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
libnotify, new recipe (#7130)
This commit is contained in:
103
x11-libs/libnotify/libnotify-0.8.1.recipe
Normal file
103
x11-libs/libnotify/libnotify-0.8.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user