git: 75b436899d0c - main - x11/hyprls: add port: LSP server for Hyprland config files

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 07:48:46 UTC
The branch main has been updated by tagattie:

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

commit 75b436899d0c9c0c984ed335cf12b6a50d5118ba
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-09-05 07:47:03 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-09-05 07:48:35 +0000

    x11/hyprls: add port: LSP server for Hyprland config files
    
    An LSP server for Hyprland configuration files.
    
    Features:
    - Auto-complete
    - Hover
    - Go to definition
    - Color pickers
    - Document symbols
    
    WWW: https://gwen.works/hyprls
---
 x11/Makefile         |  1 +
 x11/hyprls/Makefile  | 30 ++++++++++++++++++++++++++++++
 x11/hyprls/distinfo  |  7 +++++++
 x11/hyprls/pkg-descr |  8 ++++++++
 4 files changed, 46 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index c94c8c79b4e5..342b35b5eea1 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -134,6 +134,7 @@
     SUBDIR += hypridle
     SUBDIR += hyprland-qtutils
     SUBDIR += hyprlock
+    SUBDIR += hyprls
     SUBDIR += hyprpaper
     SUBDIR += hyprpicker
     SUBDIR += hyprviz
diff --git a/x11/hyprls/Makefile b/x11/hyprls/Makefile
new file mode 100644
index 000000000000..0bbe3f6d224e
--- /dev/null
+++ b/x11/hyprls/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	hyprls
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.8.0
+CATEGORIES=	x11 wayland
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	LSP server for Hyprland config files
+WWW=		https://gwen.works/hyprls
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+USE_GITHUB=	nodefault
+GH_TUPLE=	hyprwm:hyprland-wiki:e0ea9da1f78890ead3233cc26e6f5fd3ffc91517:hyprland_wiki/hyprland-wiki
+
+GO_MODULE=	github.com/hyprland-community/hyprls
+GO_TARGET=	./cmd/hyprls
+
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	CONTRIBUTING.md README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11/hyprls/distinfo b/x11/hyprls/distinfo
new file mode 100644
index 000000000000..0d9487d6fd5e
--- /dev/null
+++ b/x11/hyprls/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1754980071
+SHA256 (go/x11_hyprls/hyprls-v0.8.0/v0.8.0.mod) = 143097be73aea79fff95679f4a779a0ea6049dd01408d329ef35ce315dfc345d
+SIZE (go/x11_hyprls/hyprls-v0.8.0/v0.8.0.mod) = 903
+SHA256 (go/x11_hyprls/hyprls-v0.8.0/v0.8.0.zip) = 4f56e2291aa1e52a038db3e9c32eaaf3155734ecaff74c3b664decf11df6595b
+SIZE (go/x11_hyprls/hyprls-v0.8.0/v0.8.0.zip) = 1898699
+SHA256 (go/x11_hyprls/hyprls-v0.8.0/hyprwm-hyprland-wiki-e0ea9da1f78890ead3233cc26e6f5fd3ffc91517_GH0.tar.gz) = bb14bcd9574676deeb115c5aec521440b5c631472efc1bfb504641d26a5c46a6
+SIZE (go/x11_hyprls/hyprls-v0.8.0/hyprwm-hyprland-wiki-e0ea9da1f78890ead3233cc26e6f5fd3ffc91517_GH0.tar.gz) = 415554
diff --git a/x11/hyprls/pkg-descr b/x11/hyprls/pkg-descr
new file mode 100644
index 000000000000..469c997d8693
--- /dev/null
+++ b/x11/hyprls/pkg-descr
@@ -0,0 +1,8 @@
+An LSP server for Hyprland configuration files.
+
+Features:
+- Auto-complete
+- Hover
+- Go to definition
+- Color pickers
+- Document symbols