Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 2021 15:30:36 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cb4dde7e1f4b - main - editors/mousepad: Add spelling support
Message-ID:  <202106031530.153FUaF8085318@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by madpilot:

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

commit cb4dde7e1f4bc930ee4faea4c575ed59eb6d8a6a
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2021-06-03 15:29:22 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2021-06-03 15:29:22 +0000

    editors/mousepad: Add spelling support
    
    - Add new SPELL option enabled by default to compile in spelling
      support
    - Remove unneeded dependency on xfconf
    - Also add missing INSTALLS_ICONS
    
    PR:     256303
---
 editors/mousepad/Makefile  | 18 ++++++++++++++----
 editors/mousepad/pkg-plist |  1 +
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/editors/mousepad/Makefile b/editors/mousepad/Makefile
index a54fc99e3148..610c7c8409ec 100644
--- a/editors/mousepad/Makefile
+++ b/editors/mousepad/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	mousepad
 PORTVERSION=	0.5.5
+PORTREVISION=	1
 CATEGORIES=	editors xfce
 MASTER_SITES=	XFCE/apps
 DIST_SUBDIR=	xfce4
@@ -12,22 +13,31 @@ COMMENT=	Simple text editor for the Xfce Desktop
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
+
 USES=		desktop-file-utils gettext-tools gmake gnome libtool perl5 \
 		pkgconfig tar:bzip2 xfce
-USE_GNOME=	cairo dconf gdkpixbuf2 glib20 gtk30 gtksourceview3 intlhack \
-		intltool
-USE_XFCE=	xfconf
+USE_GNOME=	cairo dconf gdkpixbuf2 glib20 gtk30 gtksourceview3 intltool
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
+INSTALLS_ICONS=	yes
 INSTALL_TARGET=	install-strip
 
 GLIB_SCHEMAS=	org.xfce.mousepad.gschema.xml
 
-OPTIONS_DEFINE=		NLS
+OPTIONS_DEFINE=		NLS SPELL
+OPTIONS_DEFAULT=	SPELL
 OPTIONS_SUB=		yes
 
+SPELL_DESC=		Spell checking plugin
+
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext-runtime
 
+SPELL_CONFIGURE_ENABLE=	plugin-gspell
+SPELL_LIB_DEPENDS=	libgspell-1.so:textproc/gspell \
+			libenchant-2.so:textproc/enchant2
+SPELL_VARS=		GLIB_SCHEMAS+=org.xfce.mousepad.plugins.gspell.gschema.xml
+
 .include <bsd.port.mk>
diff --git a/editors/mousepad/pkg-plist b/editors/mousepad/pkg-plist
index 0c2a92d3b181..bc953b801ad1 100644
--- a/editors/mousepad/pkg-plist
+++ b/editors/mousepad/pkg-plist
@@ -2,6 +2,7 @@ bin/mousepad
 lib/libmousepad.so
 lib/libmousepad.so.0
 lib/libmousepad.so.0.0.0
+%%SPELL%%lib/mousepad/plugins/libmousepad-plugin-gspell.so
 share/applications/mousepad-settings.desktop
 share/applications/mousepad.desktop
 share/icons/hicolor/128x128/apps/org.xfce.mousepad.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106031530.153FUaF8085318>