rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / text / hunspell-es / Makefile
blob8b8f60ba9977f9a40d931a9ac48587ba6b0a1e53
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-es
18 COMPONENT_VERSION= 2006.3.6
19 COMPONENT_PROJECT_URL= http://wiki.services.openoffice.org/wiki/Dictionaries
20 COMPONENT_SUMMARY= Myspell and Hunspell spell dictionary files for Spanish
21 COMPONENT_LICENSE= LGPL
22 COMPONENT_FMRI= library/myspell/dictionary/es
23 COMPONENT_CLASSIFICATION = System/Localizations
25 COMPONENT_SRC= es_ES
26 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).zip
27 COMPONENT_ARCHIVE_HASH= \
28 sha256:5af9d57cc747d40601a9355ec16026271b6a7cc8968ec92325705630f02daad0
29 COMPONENT_ARCHIVE_URL= http://ftp.tc.edu.tw/pub/openoffice/contrib/dictionaries/$(COMPONENT_SRC).zip
30 UNPACK_ARGS+=-r $(COMPONENT_SRC)
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/ips.mk
35 DESTDIR=/usr/share/spell/hunspell
36 LINKDIR=/usr/share/spell/myspell
37 FFDIR=/usr/lib/firefox/dictionaries
38 TBDIR=/usr/lib/thunderbird/dictionaries
40 ESALIASES = es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN \
41 es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE
43 $(SOURCE_DIR)/.installed: $(SOURCE_DIR)/.prep
44 [ -d $(PROTO_DIR)$(DESTDIR) ] || mkdir -p $(PROTO_DIR)$(DESTDIR)
45 [ -d $(PROTO_DIR)$(LINKDIR) ] || mkdir -p $(PROTO_DIR)$(LINKDIR)
46 [ -d $(PROTO_DIR)$(FFDIR) ] || mkdir -p $(PROTO_DIR)$(FFDIR)
47 [ -d $(PROTO_DIR)$(TBDIR) ] || mkdir -p $(PROTO_DIR)$(TBDIR)
48 for file in $(COMPONENT_SRC)/*.{aff,dic}; do \
49 cp $$file $(PROTO_DIR)$(DESTDIR)/; \
50 done
51 for alias in $(ESALIASES); do\
52 ln -fs es_ES.aff $(PROTO_DIR)$(DESTDIR)/$$alias.aff; \
53 ln -fs es_ES.dic $(PROTO_DIR)$(DESTDIR)/$$alias.dic; \
54 done
55 for file in `cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
56 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(LINKDIR)/$$file; \
57 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(FFDIR)/$$file; \
58 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(TBDIR)/$$file; \
59 done
60 $(TOUCH) $@
62 build: $(SOURCE_DIR)/.prep
64 install: $(SOURCE_DIR)/.installed
66 clean::
67 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)