rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / text / hunspell-cs / Makefile
blobfb3009e1df21e97e00dbe23cbedcaea7fdf8f0d8
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-cs
18 COMPONENT_VERSION= 2006.10.30
19 COMPONENT_REVISION= 1
20 COMPONENT_PROJECT_URL= http://wiki.services.openoffice.org/wiki/Dictionaries
21 COMPONENT_SUMMARY= Myspell and Hunspell spell dictionary files for Czech
22 COMPONENT_LICENSE= LGPLv2.1
23 COMPONENT_FMRI= library/myspell/dictionary/cs
24 COMPONENT_CLASSIFICATION = System/Localizations
26 COMPONENT_SRC= cs_CZ
27 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).zip
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:b10c18624c2d37924f3bd8e6d7ffbd9fbb3c543c288495582d0d99dcb5cda94c
30 COMPONENT_ARCHIVE_URL= http://ftp.tc.edu.tw/pub/openoffice/contrib/dictionaries/$(COMPONENT_SRC).zip
31 UNPACK_ARGS+=-r $(COMPONENT_SRC)
33 include $(WS_MAKE_RULES)/prep.mk
34 include $(WS_MAKE_RULES)/ips.mk
36 DESTDIR=/usr/share/spell/hunspell
37 LINKDIR=/usr/share/spell/myspell
38 FFDIR=/usr/lib/firefox/dictionaries
39 TBDIR=/usr/lib/thunderbird/dictionaries
41 $(SOURCE_DIR)/.installed: $(SOURCE_DIR)/.prep
42 [ -d $(PROTO_DIR)$(DESTDIR) ] || mkdir -p $(PROTO_DIR)$(DESTDIR)
43 [ -d $(PROTO_DIR)$(LINKDIR) ] || mkdir -p $(PROTO_DIR)$(LINKDIR)
44 [ -d $(PROTO_DIR)$(FFDIR) ] || mkdir -p $(PROTO_DIR)$(FFDIR)
45 [ -d $(PROTO_DIR)$(TBDIR) ] || mkdir -p $(PROTO_DIR)$(TBDIR)
46 for file in $(COMPONENT_SRC)/*.{aff,dic}; do \
47 cp $$file $(PROTO_DIR)$(DESTDIR)/; \
48 done
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)