diff --git a/x11/swaync/Makefile b/x11/swaync/Makefile index 1edcd0765599..0358d76b8b39 100644 --- a/x11/swaync/Makefile +++ b/x11/swaync/Makefile @@ -1,50 +1,52 @@ PORTNAME= swaync DISTVERSIONPREFIX= v PORTVERSION= 0.7.3 CATEGORIES= x11 wayland +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= a9db8b7fcb19.patch:-p1 # https://github.com/ErikReider/SwayNotificationCenter/issues/209 + MAINTAINER= jbeich@FreeBSD.org COMMENT= Simple Wayland notification daemon with GTK panel WWW= https://github.com/ErikReider/SwayNotificationCenter LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libjson-glib-1.0.so:devel/json-glib \ libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell \ libhandy-1.so:x11-toolkits/libhandy USES= compiler:c11 gnome localbase:ldflags meson pkgconfig \ python:build shebangfix vala:build USE_GITHUB= yes USE_GNOME= cairo gdkpixbuf2 gtk30 introspection:build GH_ACCOUNT= ErikReider GH_PROJECT= SwayNotificationCenter SHEBANG_FILES= build-aux/meson/postinstall.py GLIB_SCHEMAS= org.erikreider.swaync.gschema.xml -CFLAGS+= -Wno-error=int-conversion # https://github.com/ErikReider/SwayNotificationCenter/issues/209 OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT=MANPAGES MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc MANPAGES_MESON_TRUE= man-pages MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz \ man/man1/${PORTNAME}-client.1.gz \ man/man5/${PORTNAME}.5.gz post-patch: # Extract (snapshot) version from the port instead of meson.build @${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \ -e '/project_version/s/@0@/${DISTVERSIONFULL}/' \ ${WRKSRC}/src/meson.build # Let @sample handle default files under etc/ @${REINPLACE_CMD} -e "s,'/',get_option('prefix')," \ -e "/output.*json/s/'[^']*/&.sample/" \ -e "/inst.*css/s/'[^']*/&', rename: &.sample/1" \ ${WRKSRC}/src/meson.build # Respect PREFIX in manpages @${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \ ${WRKSRC}/man/${PORTNAME}.1.scd .include diff --git a/x11/swaync/distinfo b/x11/swaync/distinfo index f6ef8436190e..73cf3d766721 100644 --- a/x11/swaync/distinfo +++ b/x11/swaync/distinfo @@ -1,3 +1,5 @@ TIMESTAMP = 1669658225 SHA256 (ErikReider-SwayNotificationCenter-v0.7.3_GH0.tar.gz) = c17553ac00e3824ea6c9c2ebf777d9e1c73e0cb46dd663b91eab04c71303ced6 SIZE (ErikReider-SwayNotificationCenter-v0.7.3_GH0.tar.gz) = 3155355 +SHA256 (a9db8b7fcb19.patch) = c63569f6e587df30898d5c279f29b959d01677ef62600599ffc0a7297a84050f +SIZE (a9db8b7fcb19.patch) = 717