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-fr
18 COMPONENT_VERSION
= 7.0
19 COMPONENT_PROJECT_URL
= https
://www.dicollecte.org
/
20 COMPONENT_SUMMARY
= Myspell and Hunspell spell dictionary files for French
21 COMPONENT_LICENSE
= MPLv2.0
22 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
23 COMPONENT_FMRI
= library
/myspell
/dictionary
/fr
24 COMPONENT_CLASSIFICATION
= System
/Localizations
26 COMPONENT_SRC
= hunspell-french-dictionaries-v
$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).zip
28 COMPONENT_ARCHIVE_HASH
= sha256
:eb7ac36dc14b9c3e3c0cabae0f90304a137da8e6ae607bcaf56d65720fbd097f
29 COMPONENT_ARCHIVE_URL
= https
://www.dicollecte.org
/download
/fr
/$(COMPONENT_ARCHIVE
)
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 FRALIASES
= fr_BE fr_CA fr_CH fr_LU
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
)/fr-classique.aff
$(PROTO_DIR
)$(DESTDIR
)/fr_FR.aff
48 cp
$(COMPONENT_SRC
)/fr-classique.dic
$(PROTO_DIR
)$(DESTDIR
)/fr_FR.dic
49 for alias in
$(FRALIASES
); do\
50 ln
-fs fr_FR.aff
$(PROTO_DIR
)$(DESTDIR
)/$$alias.aff
; \
51 ln
-fs fr_FR.dic
$(PROTO_DIR
)$(DESTDIR
)/$$alias.dic
; \
53 for file in
`cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
54 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(LINKDIR
)/$$file; \
55 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(FFDIR
)/$$file; \
56 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(TBDIR
)/$$file; \
60 build
: $(SOURCE_DIR
)/.prep
62 install: $(SOURCE_DIR
)/.installed
65 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)
68 REQUIRED_PACKAGES
+= text
/aspell