x11-wm/cosmic-comp: unbreak text in title bar and context menu

This commit is contained in:
Jan Beich 2024-12-13 03:41:37 +01:00
parent b1a5b588e9
commit a2394dacc2
2 changed files with 27 additions and 1 deletions

View file

@ -1,7 +1,7 @@
PORTNAME= cosmic-comp PORTNAME= cosmic-comp
DISTVERSIONPREFIX= epoch- DISTVERSIONPREFIX= epoch-
DISTVERSION= 1.0.0-alpha.4 DISTVERSION= 1.0.0-alpha.4
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= x11-wm wayland CATEGORIES= x11-wm wayland
MAINTAINER= jbeich@FreeBSD.org MAINTAINER= jbeich@FreeBSD.org
@ -47,6 +47,10 @@ post-patch:
# /sys by default is a symlink to /usr/src/sys # /sys by default is a symlink to /usr/src/sys
@${REINPLACE_CMD} -e 's,/sys,${LINUXBASE}&,' \ @${REINPLACE_CMD} -e 's,/sys,${LINUXBASE}&,' \
${WRKSRC}/src/debug.rs ${WRKSRC}/src/debug.rs
# https://github.com/RazrFalcon/fontdb/issues/61
@${REINPLACE_CMD} -e 's,/usr/share,${DATADIR:H},' \
-e 's,/etc,${LOCALBASE}&,' \
${WRKSRC_crate_fontdb}/src/lib.rs
post-install: post-install:
# Install extras similar to ${WRKSRC}/Makefile # Install extras similar to ${WRKSRC}/Makefile

View file

@ -0,0 +1,22 @@
https://github.com/pop-os/cosmic-text/pull/336
--- ../cosmic-text-4fe90bb6126c22f589b46768d7754d65ae300c5e/src/font/fallback/mod.rs.orig 2024-09-23 13:53:29 UTC
+++ ../cosmic-text-4fe90bb6126c22f589b46768d7754d65ae300c5e/src/font/fallback/mod.rs
@@ -9,7 +9,7 @@ use self::platform::*;
use self::platform::*;
-#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows",)))]
+#[cfg(not(any(unix, target_os = "windows")))]
#[path = "other.rs"]
mod platform;
@@ -17,7 +17,7 @@ mod platform;
#[path = "macos.rs"]
mod platform;
-#[cfg(target_os = "linux")]
+#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
#[path = "unix.rs"]
mod platform;