diff --git a/x11/sirula/Makefile b/x11/sirula/Makefile index 6760dbe031c0..405833ecafc0 100644 --- a/x11/sirula/Makefile +++ b/x11/sirula/Makefile @@ -1,30 +1,28 @@ PORTNAME= sirula DISTVERSIONPREFIX= v DISTVERSION= 1.0.0 PORTREVISION= 21 CATEGORIES= x11 wayland MAINTAINER= ports@FreeBSD.org COMMENT= Simple app launcher for Wayland written in Rust WWW= https://github.com/DorianRudolph/sirula LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= could not compile osstrtools - LIB_DEPENDS= libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell USES= cargo gnome USE_GITHUB= yes USE_GNOME= cairo gdkpixbuf2 gtk30 GH_ACCOUNT= DorianRudolph PLIST_FILES= bin/${PORTNAME} post-patch: # Respect PREFIX for system config @${REINPLACE_CMD} -e 's,/usr/share,${DATADIR:H},' \ -e 's,/etc,${PREFIX}&,' \ ${WRKSRC_crate_xdg}/src/lib.rs .include diff --git a/x11/sirula/files/patch-osstrtools b/x11/sirula/files/patch-osstrtools new file mode 100644 index 000000000000..3b367d97416b --- /dev/null +++ b/x11/sirula/files/patch-osstrtools @@ -0,0 +1,11 @@ +--- cargo-crates/osstrtools-0.2.2/src/lib.rs.orig 2024-01-01 16:19:06 UTC ++++ cargo-crates/osstrtools-0.2.2/src/lib.rs +@@ -751,7 +751,7 @@ impl WinOsStr for OsStr { + + fn as_bytes<'s>(&'s self) -> &'s [u8] { + // This should be fine in any case, as OsStr is just a &[u8] +- unsafe { (bytes as *const _).cast:() } ++ unsafe { (bytes as *const _).cast() } + } + } +