Myspell doesn't work with oxt dictionaries provided by OpenOffice.org extensions (http://extensions.services.openoffice.org/dictionary). I've tried to make updated ebuilds to myspell-pt, using the extensions (see http://bugs.gentoo.org/show_bug.cgi?id=221733 or http://bugs.gentoo.org/show_bug.cgi?id=151076)... The oxt file is a zip file, but Portage doesn't know it. I think this is a problem, because new dictionaries are available mainly in oxt formats, and zip formats only to OpenOffice.org 2. Reproducible: Always Actual Results: * Vero_pt_BR_V207AOC.oxt RMD160 SHA1 SHA256 size ;-) ... [ ok ] * oo3x-pt-PT.oxt RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking Vero_pt_BR_V207AOC.oxt to /var/tmp/portage/app-dicts/myspell-pt-9.10.13/work unpack Vero_pt_BR_V207AOC.oxt: file format not recognized. Ignoring. Expected Results: Unpacking of oxt
This is expected, because myspell really does not work with oxt dictionaries... or do you mean that it is possible to make it workable somehow?
(In reply to comment #1) > This is expected, because myspell really does not work with oxt dictionaries... > or do you mean that it is possible to make it workable somehow? > Oxt files are zip files: unzip -l Vero_pt_BR_V207AOC.oxt Archive: Vero_pt_BR_V207AOC.oxt Length Date Time Name --------- ---------- ----- ---- 366 09-22-2008 17:35 META-INF/manifest.xml 4327 01-08-2010 22:14 description.xml 1300 07-02-2009 09:02 dictionaries.xcu 3081 12-14-2009 21:32 hyph_pt_BR.dic 968260 01-09-2010 11:33 pt_BR.aff 4571588 01-09-2010 11:25 pt_BR.dic 2600 09-22-2008 17:35 README_en.TXT 11482 01-08-2010 22:11 README_hyph_pt_BR.TXT 9099 01-08-2010 22:05 README_pt_BR.TXT --------- ------- 5572103 9 files The problem to me, is that oxt is the actual format adopted by OpenOffice.org. So, in my opinion is highly desirable that Myspell eclass was able to work with oxt files. I don't know how to do this workaround and how to start. I've tried to use src_prepare() to rename the oxt file to give it a zip extension, but aparently Portage tries to unpack the file before src_prepare(). I think there is a configuration to Portage informing the command associated with a file, but I couldn't find it. So I think the better way to improve dictionaries in future is using oxt files and configurating Portage to open this kind of file with unzip. How I can start to do this?
Write custom src_unpack function for myspell.eclass which will do that. For example, take a look on /usr/lib/portage/bin/ebuild.sh unpack() function.
Created attachment 273417 [details, diff] patch to myspell.eclass to support *.oxt openoffice extensions for example see bug #305725
Created attachment 305303 [details] Updated myspell.class Updated eclass file, with provided patch. Worked here with an updated myspell-pt! Please, gentoo developers: update main tree!!!
The eclass myspell-r2 is provided in main tree for this purposes. Example ebuilds are myspell-cs, myspell-ca or myspell-sk.