python/hypothesis: update to 6.121.0
[oi-userland.git] / components / text / hunspell-it / Makefile
blobf7755936fd62957cddd6c1013e2a075f3eb3352d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= hunspell-it
18 COMPONENT_VERSION= 2016.2.13
19 COMPONENT_PROJECT_URL= http://extensions.services.openoffice.org/
20 COMPONENT_SUMMARY= Myspell and Hunspell spell dictionary files for Italian
21 COMPONENT_LICENSE= GPLv3
22 COMPONENT_LICENSE_FILE= legacy/it_IT_COPYING
23 COMPONENT_FMRI= library/myspell/dictionary/it
24 COMPONENT_CLASSIFICATION = System/Localizations
26 COMPONENT_SRC= dict-it
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).oxt
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:74d24b4c11709111053860d825286c4f11436d5265756f6882a62170ec771941
30 COMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/aoo-extensions/files/1204/14/$(COMPONENT_ARCHIVE)
31 UNPACK_ARGS+= -r $(COMPONENT_SRC)
34 include $(WS_TOP)/make-rules/prep.mk
35 include $(WS_TOP)/make-rules/ips.mk
37 DESTDIR=/usr/share/spell/hunspell
38 LINKDIR=/usr/share/spell/myspell
39 FFDIR=/usr/lib/firefox/dictionaries
40 TBDIR=/usr/lib/thunderbird/dictionaries
42 $(SOURCE_DIR)/.installed: $(SOURCE_DIR)/.prep
43 [ -d $(PROTO_DIR)$(DESTDIR) ] || mkdir -p $(PROTO_DIR)$(DESTDIR)
44 [ -d $(PROTO_DIR)$(LINKDIR) ] || mkdir -p $(PROTO_DIR)$(LINKDIR)
45 [ -d $(PROTO_DIR)$(FFDIR) ] || mkdir -p $(PROTO_DIR)$(FFDIR)
46 [ -d $(PROTO_DIR)$(TBDIR) ] || mkdir -p $(PROTO_DIR)$(TBDIR)
47 cp $(COMPONENT_SRC)/dictionaries/it_IT.aff $(PROTO_DIR)$(DESTDIR)
48 cp $(COMPONENT_SRC)/dictionaries/it_IT.dic $(PROTO_DIR)$(DESTDIR)
49 for file in `cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
50 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(LINKDIR)/$$file; \
51 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(FFDIR)/$$file; \
52 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(TBDIR)/$$file; \
53 done
54 $(TOUCH) $@
56 build: $(SOURCE_DIR)/.prep
58 install: $(SOURCE_DIR)/.installed
60 clean::
61 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)