Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2026 14:07:17 +0000
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bfef2faa5a7f - main - databases/sabiql: Fix opening E-R diagrams
Message-ID:  <69a44815.22ded.63fcb748@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bfef2faa5a7fe50018f7e2abf4674c82b19bd30a

commit bfef2faa5a7fe50018f7e2abf4674c82b19bd30a
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-03-01 14:05:46 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-03-01 14:05:46 +0000

    databases/sabiql: Fix opening E-R diagrams
    
    - Add a patch to allow opening generated E-R diagrams via xdg-open
    - Bump PORTREVISION
---
 databases/sabiql/Makefile                            |  3 +++
 databases/sabiql/files/patch-src_infra_export_dot.rs | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/databases/sabiql/Makefile b/databases/sabiql/Makefile
index b258f13e53a7..37d16227eaf1 100644
--- a/databases/sabiql/Makefile
+++ b/databases/sabiql/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	sabiql
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.5.3
+PORTREVISION=	1
 CATEGORIES=	databases
 
 MAINTAINER=	nivit@FreeBSD.org
@@ -17,6 +18,8 @@ LICENSE_TEXT_UNICODE=	See https://www.unicode.org/copyright.html
 LICENSE_PERMS_CDLA20=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 LICENSE_PERMS_UNICODE=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
+RUN_DEPENDS=	xdg-open:devel/xdg-utils
+
 USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	riii111
diff --git a/databases/sabiql/files/patch-src_infra_export_dot.rs b/databases/sabiql/files/patch-src_infra_export_dot.rs
new file mode 100644
index 000000000000..7eea3a70a0b0
--- /dev/null
+++ b/databases/sabiql/files/patch-src_infra_export_dot.rs
@@ -0,0 +1,11 @@
+--- src/infra/export/dot.rs.orig	2026-02-25 15:32:51 UTC
++++ src/infra/export/dot.rs
+@@ -62,7 +62,7 @@ impl ViewerLauncher for SystemViewerLauncher {
+                 .spawn()
+                 .map_err(ViewerError::LaunchFailed)?;
+         }
+-        #[cfg(target_os = "linux")]
++        #[cfg(any(target_os = "freebsd", target_os = "linux"))]
+         {
+             Command::new("xdg-open")
+                 .arg(path)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69a44815.22ded.63fcb748>