diff --git a/editors/ghostwriter/Makefile b/editors/ghostwriter/Makefile
index 5e0820ff54e78abacdfa68c4c14674d9a7526bb5..7879f9e051780113c1c5f0cbed16c2d7dda1be1d 100644
--- a/editors/ghostwriter/Makefile
+++ b/editors/ghostwriter/Makefile
@@ -1,25 +1,25 @@
 PORTNAME=	ghostwriter
 DISTVERSION=	2.2.0
-CATEGORIES=	editors
+CATEGORIES=	editors kde
 
 MAINTAINER=	madpilot@FreeBSD.org
 COMMENT=	Distraction-free Markdown editor
-WWW=		https://wereturtle.github.io/ghostwriter/
+WWW=		https://ghostwriter.kde.org/
 
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
 
-USES=		compiler:c++11-lang desktop-file-utils pkgconfig qmake qt:5
-USE_GITHUB=	yes
-GH_ACCOUNT=	wereturtle
+USES=		compiler:c++11-lang desktop-file-utils kde:5 pkgconfig qmake qt:5
 USE_QT=		core gui svg webchannel webengine widgets buildtools:build \
 		linguisttools:build
 
 # cf. PR 224488
 LDFLAGS+=	-Wl,--as-needed
 
+KDE_INVENT=	151268bcfdca57bba4944caa7172dde9549f0622 office
+
 post-configure:
 	@${REINPLACE_CMD} -e 's|^\(build/release/qrc_QtAwesomeFree.cpp:[^\\]*\)\\|\1|' \
 		-e '/3rdparty\/QtAwesome\/fonts\/Font/d' \
diff --git a/editors/ghostwriter/distinfo b/editors/ghostwriter/distinfo
index cfffbb3b604d8c370360a3f62eb53e91fbdc26e4..e59d6558302b1687fbdfe83fc2cfa1f53d3a08c6 100644
--- a/editors/ghostwriter/distinfo
+++ b/editors/ghostwriter/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1663483631
-SHA256 (wereturtle-ghostwriter-2.2.0_GH0.tar.gz) = bb1968a157fe6a30e75cd18b0222154e1e1b20011ba460b20088e8ab61df0955
-SIZE (wereturtle-ghostwriter-2.2.0_GH0.tar.gz) = 7756775
+TIMESTAMP = 1668073469
+SHA256 (office-ghostwriter-151268bcfdca57bba4944caa7172dde9549f0622_GL0.tar.gz) = bbaccaf2fd4170dcb3b69d9d89af4b35e242d11cbff62680ec05fcfbe3ee0047
+SIZE (office-ghostwriter-151268bcfdca57bba4944caa7172dde9549f0622_GL0.tar.gz) = 7758672