FreeBSD Bugzilla – Attachment 225418 Details for
Bug 256303
editors/mousepad: Add spell-checking plugin and more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add spell-cheking plugin
mousepad.diff (text/plain), 2.60 KB, created by
Olivier Duchateau
on 2021-05-31 17:38:42 UTC
(
hide
)
Description:
Add spell-cheking plugin
Filename:
MIME Type:
Creator:
Olivier Duchateau
Created:
2021-05-31 17:38:42 UTC
Size:
2.60 KB
patch
obsolete
>diff --git a/editors/mousepad/Makefile b/editors/mousepad/Makefile >index a54fc99e3..b5dd8e4d9 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,11 +13,11 @@ 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 >@@ -24,10 +25,27 @@ INSTALL_TARGET= install-strip > > GLIB_SCHEMAS= org.xfce.mousepad.gschema.xml > >-OPTIONS_DEFINE= NLS >+OPTIONS_DEFINE= NLS 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_SUB_FILES= pkg-message >+ >+.include <bsd.port.options.mk> >+ >+.if ${PORT_OPTIONS:MSPELL} >+GLIB_SCHEMAS+= org.xfce.mousepad.plugins.gspell.gschema.xml >+.endif >+ >+post-patch-SPELL-on: >+ @${REINPLACE_CMD} -i '' -e 's|en_US||' \ >+ ${WRKSRC}/plugins/gspell-plugin/org.xfce.mousepad.plugins.gspell.gschema.xml >+ > .include <bsd.port.mk> >diff --git a/editors/mousepad/files/pkg-message.in b/editors/mousepad/files/pkg-message.in >new file mode 100644 >index 000000000..f303fd856 >--- /dev/null >+++ b/editors/mousepad/files/pkg-message.in >@@ -0,0 +1,21 @@ >+[ >+{ >+ type: remove >+ message: <<EOM >+Remove the default language (if defined): >+ gsettings reset org.xfce.mousepad.plugins.gspell.preferences \ >+ default-language >+EOM >+} >+{ >+ type: install >+ message: <<EOM >+Install dictionaries for your prefered language: >+ pkg search hunspell >+ >+Then configure the spell-checking plugin (e.g. for French users): >+ gsettings set org.xfce.mousepad.plugins.gspell.preferences \ >+ default-language 'fr_FR' >+EOM >+} >+] >diff --git a/editors/mousepad/pkg-plist b/editors/mousepad/pkg-plist >index 0c2a92d3b..bc953b801 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256303
:
225418
|
225452