With this, textsuggest-server can be more easily added as a
'Startup Application' in gnome-tweaks.
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/textsuggest/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 17 Mar 2019 11:34:32 -0000 1.3
+++ Makefile 25 Mar 2019 10:15:21 -0000
@@ -3,6 +3,7 @@
COMMENT = auto-complete and text expansion in X11
V = 4.2.0
+REVISION = 1
DISTNAME = TextSuggest-v${V}
PKGNAME = textsuggest-${V}
CATEGORIES = x11
@@ -64,5 +65,11 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/textsuggest/dictionaries
ln -s /usr/share/dict/words \
${PREFIX}/share/textsuggest/dictionaries/English.txt
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps
+ ${INSTALL_DATA} ${WRKBUILD}/img/TextSuggest.svg \
+ ${PREFIX}/share/icons/hicolor/scalable/apps
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${FILESDIR}/textsuggest-server.desktop \
+ ${PREFIX}/share/applications
.include <bsd.port.mk>
Index: files/textsuggest-server.desktop
===================================================================
RCS file: files/textsuggest-server.desktop
diff -N files/textsuggest-server.desktop
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/textsuggest-server.desktop 25 Mar 2019 10:15:31 -0000
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=TextSuggest Server
+Comment=auto-complete and text expansion
+GenericName=TextSuggest Server
+Exec=textsuggest-server
+Terminal=false
+X-MultipleArgs=false
+Type=Application
+Icon=/usr/local/share/icons/hicolor/scalable/apps/TextSuggest.svg
+Categories=Application;System
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/textsuggest/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 14 Mar 2019 14:47:07 -0000 1.1.1.1
+++ pkg/PLIST 25 Mar 2019 10:15:21 -0000
@@ -4,6 +4,10 @@
libexec/textsuggest/
@bin libexec/textsuggest/command
@bin libexec/textsuggest/math_expression
+share/applications/textsuggest-server.desktop
+share/icons/hicolor/scalable/apps/TextSuggest.svg
share/textsuggest/
share/textsuggest/dictionaries/
share/textsuggest/dictionaries/English.txt
+@tag gtk-update-icon-cache %D/share/icons/hicolor
+@tag update-desktop-database