Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114482 - Hunspell system ebuild
Summary: Hunspell system ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Kevin F. Quinn (RETIRED)
URL: http://hunspell.sourceforge.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 16:17 UTC by Kevin F. Quinn (RETIRED)
Modified: 2006-03-06 11:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for v1.1.2 of hunspell (hunspell-1.1.2.ebuild,746 bytes, text/plain)
2005-12-04 16:18 UTC, Kevin F. Quinn (RETIRED)
Details
Ebuild patch for openoffice to use system hunspell as spellchecker (openoffice-2.0.1.ebuild-hunspell.patch,1.28 KB, patch)
2006-01-29 05:45 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2005-12-04 16:17:53 UTC
hunspell is a much enhanced version of myspell; I'll attach an ebuild
contributed by Attila Toth which I've updated for the current latest
version 1.1.2.

Hunspell is a significant enhancement of myspell, blessed by the myspell author
to replace myspell in Openoffice.org - see
http://lingucomponent.openoffice.org/ (last paragraph)
http://lingucomponent.openoffice.org/servlets/ReadMsg?list=dev&msgNo=1377
http://www.openoffice.org/issues/show_bug.cgi?id=52383

For the openoffice team, configure option --enable-hunspell will enable the
relevant UNO component, and --with-system-hunspell gets it to use the system
hunspell library rather than a version duplicated in openoffice.  I'd suggest
adding a 'hunspell' USE flag in openoffice to switch it on and add the
dependency on hunspell, but it's up to you of course.  Ultimately if hunspell
does displace myspell such use-flag stuff may disappear.

I've checked that it builds and works ok on my system, but haven't tried
integrating it with openoffice (Attila uses it ok).  Some things you may want to
consider:
1) whether the library include files should go in /usr/include or somewhere else
2) whether to change the default dictionary path from /usr/share/myspell to
/usr/lib/openoffice/share/dict/ooo, or something.
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2005-12-04 16:18:49 UTC
Created attachment 74073 [details]
Ebuild for v1.1.2 of hunspell
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2005-12-04 22:46:59 UTC
Very nice, doing system spell dictionaries was a high priority on my TODO-list
anyway, so this would be a great addition from an OpenOffice.org-view. The
current solution is quite bad as we don't have myspell dictionaries in the tree
and people have to install them through the DicOOo wizard, a global installation
is difficult.

If it works reliably - the last time I checked hunspell support in OOo still had
some issues - I'd like to add this without a use flag, I think this is one case
where we just want to have the right "default". What we also need, would be
ebuilds for the different languages.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2006-01-13 06:40:33 UTC
app-dicts-herd, could you please comment on this one?
Comment 4 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-29 05:02:27 UTC
OK; I'll take this one on since app-dicts haven't said anything.
Comment 5 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-29 05:45:49 UTC
Created attachment 78420 [details, diff]
Ebuild patch for openoffice to use system hunspell as spellchecker

For reference at the moment.  Perhaps it might be best to do the enable-hunspell/with-system-hunspell conditional on a local use flag, at least until we have the dictionary situation sorted out.

I've committed hunspell to the app-text category.  Note it's only ~x86 at the moment, ultimately obviously it needs at least the same arches as openoffice.

There are no hunspell/myspell/oo dictionary ebuilds yet, the situation there will take a while to sort out as it's not as simple as I first thought.
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2006-02-01 23:09:24 UTC
Just tried this out, works beautifully here with OOo. Good work, Kevin. Still, won't add this before 2.0.2 (unless you convince me to ;) ), would be great to have the dictionaries in place until then, to really enjoy the good stuff, this brings to us.

About the problems with the dictionaries: Take a look at how Debian solved this, maybe you can "borrow" something from there.
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2006-03-06 11:56:14 UTC
ok; ebuild is in (and since been bumped - just!).