|
From: <fri...@us...> - 2010-01-25 14:13:07
|
Revision: 10026
http://zaf.svn.sourceforge.net/zaf/?rev=10026&view=rev
Author: friedelwolff
Date: 2010-01-25 14:13:00 +0000 (Mon, 25 Jan 2010)
Log Message:
-----------
Add support for building a Mozilla .xpi file for the hunspell system
Modified Paths:
--------------
trunk/dict/utils/Makefile.language
Modified: trunk/dict/utils/Makefile.language
===================================================================
--- trunk/dict/utils/Makefile.language 2010-01-25 14:10:47 UTC (rev 10025)
+++ trunk/dict/utils/Makefile.language 2010-01-25 14:13:00 UTC (rev 10026)
@@ -62,7 +62,7 @@
TARGET_ASPELL=aspell/$(LANG).wl aspell/$(LANG).rws aspell/$(ASPELL_DIST_NAME) aspell/proc aspell/configure aspell/$(LANG).cwl aspell/info aspell/Makefile aspell/Makefile.pre aspell/$(LANG).multi aspell/*.alias aspell/COPYING aspell/README aspell/$(ASPELL_PACK_NAME)
-TARGETS_HUNSPELL=hunspell/wordlist.$(CHARSET) hunspell/hunspell-$(LANG)_$(REGION)-$(VERSION).zip hunspell/hunspell-pack-$(LANG)-$(REGION)-$(VERSION).zip hunspell/$(LANG)_$(REGION).dic hunspell/spell.txt hunspell/VERSION_$(LANG)_$(REGION).txt
+TARGETS_HUNSPELL=hunspell/wordlist.$(CHARSET) hunspell/hunspell-$(LANG)_$(REGION)-$(VERSION).zip hunspell/hunspell-pack-$(LANG)-$(REGION)-$(VERSION).zip hunspell/$(LANG)_$(REGION).dic hunspell/spell.txt hunspell/VERSION_$(LANG)_$(REGION).txt hunspell/install.js hunspell/install.rdf hunspell/spell-$(LANG)-$(REGION)-$(VERSION).xpi hunspell/$(LANG)_$(REGION).dic hunspell/README-$(LANG)-$(REGION).txt hunspell/dictionaries
TARGET_AUTOCORR=acor/acor_$(LANG)-$(REGION).dat*
@@ -207,10 +207,40 @@
cd myspell/ ;\
ls ;\
rm -f spell-$(LANG)-$(REGION)-$(VERSION).xpi ;\
- zip -r spell-$(LANG)-$(REGION)-$(VERSION).xpi dictionaries/ README-$(LANG)-$(REGION).txt install.js install.rdf :\
+ zip -r spell-$(LANG)-$(REGION)-$(VERSION).xpi dictionaries/ README-$(LANG)-$(REGION).txt install.js install.rdf ;\
#=============================================================================
+# Mozilla XPI (hunspell)
+#=============================================================================
+
+hunspell/README-$(LANG)-$(REGION).txt: hunspell/README_$(LANG)_$(REGION).txt
+ cp $^ $@
+
+# Customise the install.js
+hunspell/install.js: ../utils/mozilla/install.js.2.in
+ sed "s/{LANG}/$(LANG)/; s/{REGION}/$(REGION)/; s/{LANGNAME}/$(LANGNAME)/; s/{REGIONNAME}/$(REGIONNAME)/; s/{VERSION}/$(VERSION)/" < $< > $@
+
+hunspell/install.rdf: ../utils/mozilla/install.rdf.in
+ sed "s/{LANG}/$(LANG)/; s/{REGION}/$(REGION)/; s/{LANGNAME}/$(LANGNAME)/; s/{REGIONNAME}/$(REGIONNAME)/; s/{VERSION}/$(VERSION)/" < $< > $@
+
+hunspell/dictionaries/$(LANG)-$(REGION).dic: hunspell/$(LANG)_$(REGION).dic
+ cp $^ $@
+
+hunspell/dictionaries/$(LANG)-$(REGION).aff: hunspell/$(LANG)_$(REGION).aff
+ cp $^ $@
+
+hunspell/dictionaries:
+ mkdir -p hunspell/dictionaries
+
+hunspell/spell-$(LANG)-$(REGION)-$(VERSION).xpi: hunspell/install.js hunspell/install.rdf hunspell/README-$(LANG)-$(REGION).txt hunspell/dictionaries hunspell/dictionaries/$(LANG)-$(REGION).dic hunspell/dictionaries/$(LANG)-$(REGION).aff
+ cd hunspell/ ;\
+ ls ;\
+ rm -f spell-$(LANG)-$(REGION)-$(VERSION).xpi ;\
+ zip -r spell-$(LANG)-$(REGION)-$(VERSION).xpi dictionaries/ README-$(LANG)-$(REGION).txt install.js install.rdf ;\
+
+
+#=============================================================================
# Ispell Rules
#=============================================================================
@@ -265,7 +295,7 @@
rm -rf $(TARGETS_HUNSPELL)
# make hunspell will make the required zip files
-hunspell: hunspell/hunspell-$(LANG)_$(REGION)-$(VERSION).zip hunspell/hunspell-pack-$(LANG)-$(REGION)-$(VERSION).zip
+hunspell: hunspell/hunspell-$(LANG)_$(REGION)-$(VERSION).zip hunspell/hunspell-pack-$(LANG)-$(REGION)-$(VERSION).zip hunspell/spell-$(LANG)-$(REGION)-$(VERSION).xpi
# this is a package that is usable for offline installation
hunspell/hunspell-pack-$(LANG)-$(REGION)-$(VERSION).zip: hunspell/hunspell-$(LANG)_$(REGION)-$(VERSION).zip hunspell/spell.txt
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|