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 2022 Niklas Poslovski
15 USE_DEFAULT_TEST_TRANSFORMS
= yes
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= gspell
19 COMPONENT_MAJOR_VERSION
= 1.12
20 COMPONENT_VERSION
= $(COMPONENT_MAJOR_VERSION
).2
22 COMPONENT_SUMMARY
= A flexible API to implement the spell checking in a GTK
+ application
23 COMPONENT_PROJECT_URL
= https
://gitlab.gnome.org
/GNOME
/gspell
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
26 COMPONENT_ARCHIVE_HASH
= sha256
:b4e993bd827e4ceb6a770b1b5e8950fce3be9c8b2b0cbeb22fdf992808dd2139
27 COMPONENT_ARCHIVE_URL
= https
://download.gnome.org
/sources
/$(COMPONENT_NAME
)/$(COMPONENT_MAJOR_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= library
/desktop
/gspell
29 COMPONENT_CLASSIFICATION
= Applications
/Accessories
30 COMPONENT_LICENSE
= LGPLv2.1
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 CONFIGURE_OPTIONS
+= MAKE
=gmake
37 # Disable everything provided by library/desktop/gspell-3:
39 # - introspection files
41 CONFIGURE_OPTIONS
+= --disable-nls
42 CONFIGURE_OPTIONS
+= --disable-introspection
43 CONFIGURE_OPTIONS
+= --disable-vala
45 # Drop everything provided by library/desktop/gspell-3:
50 COMPONENT_POST_INSTALL_ACTION
+= \
51 $(RM
) -r
$(PROTOUSRBINDIR
) ; \
52 $(RM
) -r
$(PROTOUSRINCDIR
) ; \
53 $(RM
) -r
$(PROTOUSRLIBDIR64
)/libgspell-1.so
; \
54 $(RM
) -r
$(PROTOUSRLIBDIR64
)/pkgconfig
;
56 # Testing needs an X server
57 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
58 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
59 COMPONENT_TEST_ENV
+= DISPLAY
=:0
60 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
62 # Manually added test dependencies
63 # According to the test sources aspell is deprecated and superceded by hunspell.
64 # One of the tests is failing with aspell which won't be fixed.
65 # We might want to replace aspell (used by enchant) with hunspell later.
66 #TEST_REQUIRED_PACKAGES += library/myspell/dictionary/en
67 TEST_REQUIRED_PACKAGES
+= text
/aspell
/en
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES
+= $(ICU_LIBRARY_PKG
)
71 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
72 REQUIRED_PACKAGES
+= library
/desktop
/pango
73 REQUIRED_PACKAGES
+= library
/glib2
74 REQUIRED_PACKAGES
+= library
/spell-checking
/enchant
75 REQUIRED_PACKAGES
+= system
/library