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
13 # Copyright (c) 2023 Niklas Poslovski
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= hunspell-pl
19 COMPONENT_VERSION
= 2023.6.1
20 HUMAN_VERSION
= 20230601
21 COMPONENT_PROJECT_URL
= https
://sjp.pl
/slownik
/en
/
22 COMPONENT_SUMMARY
= Myspell and Hunspell spell dictionary files for Polish
23 COMPONENT_LICENSE
= MPL1.1
24 COMPONENT_FMRI
= library
/myspell
/dictionary
/pl
25 COMPONENT_CLASSIFICATION
= System
/Localizations
26 COMPONENT_SRC
= sjp-myspell-pl-
$(HUMAN_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).zip
28 COMPONENT_ARCHIVE_HASH
= sha256
:5c1a4422622fb594754423dc9dbd8c413f1657780720a7564c94b5f6345d9807
29 COMPONENT_ARCHIVE_URL
= https
://sjp.pl
/slownik
/ort
/$(COMPONENT_ARCHIVE
)
30 UNPACK_ARGS
+= -r
$(COMPONENT_SRC
)
32 COMPONENT_POST_UNPACK_ACTION
= unzip
$(SOURCE_DIR
)/pl_PL.zip
-d
$(SOURCE_DIR
)
34 include $(WS_MAKE_RULES
)/prep.mk
35 include $(WS_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
)/pl_PL.dic
$(PROTO_DIR
)$(DESTDIR
)
48 cp
$(COMPONENT_SRC
)/pl_PL.aff
$(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; \
56 build
: $(SOURCE_DIR
)/.prep
58 install: $(SOURCE_DIR
)/.installed
61 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)
64 REQUIRED_PACKAGES
+= text
/aspell