1SUMMARY="Unicode character picker and font browser"
2DESCRIPTION="This program allows you to browse through all the available Unicode characters and \
3categories for the installed fonts, and to examine their detailed properties.
4It is an easy way to find the character you might only know by its Unicode name or code point."
5HOMEPAGE="https://gitlab.gnome.org/GNOME/gucharmap/"
6COPYRIGHT="2004 Noah Levitt
7	1991-2022 Unicode, Inc.
8	2007-2022 Christian Persch
9	2016, 2020 DaeHyun Sung"
10LICENSE="GNU GPL v3
11	GNU FDL v3.1
12	Unicode"
13REVISION="1"
14SOURCE_URI="https://gitlab.gnome.org/GNOME/gucharmap/-/archive/$portVersion/gucharmap-$portVersion.tar.bz2"
15CHECKSUM_SHA256="6e0d035c010400108340e810c585465ebe0f2ff2edb16ae473ff4a1f814b4dbe"
16PATCHES="gucharmap-15.0.1.patchset"
17
18ARCHITECTURES="all !x86_gcc2"
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	gucharmap$secondaryArchSuffix = $portVersion
23	cmd:gucharmap = $portVersion
24	lib:libgucharmap_2_90$secondaryArchSuffix = $portVersion
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	unicode_character_database
29	lib:libatk_1.0$secondaryArchSuffix
30	lib:libcairo$secondaryArchSuffix
31	lib:libfreetype$secondaryArchSuffix
32	lib:libgio_2.0$secondaryArchSuffix
33	lib:libglib_2.0$secondaryArchSuffix
34	lib:libgtk_3$secondaryArchSuffix
35	lib:libintl$secondaryArchSuffix
36	lib:libpango_1.0$secondaryArchSuffix
37	lib:libpcre2_8$secondaryArchSuffix
38	"
39
40PROVIDES_devel="
41	gucharmap${secondaryArchSuffix}_devel = $portVersion
42	devel:libgucharmap_2_90$secondaryArchSuffix = $portVersion
43	"
44REQUIRES_devel="
45	gucharmap$secondaryArchSuffix == $portVersion base
46	"
47
48BUILD_REQUIRES="
49	haiku${secondaryArchSuffix}_devel
50	devel:libatk_1.0$secondaryArchSuffix
51	devel:libcairo$secondaryArchSuffix
52	devel:libfreetype$secondaryArchSuffix
53	devel:libgio_2.0$secondaryArchSuffix
54	devel:libglib_2.0$secondaryArchSuffix
55	devel:libgtk_3$secondaryArchSuffix
56	devel:libintl$secondaryArchSuffix
57	devel:libpango_1.0$secondaryArchSuffix
58	devel:libpcre2_8$secondaryArchSuffix
59	"
60BUILD_PREREQUIRES="
61	unicode_character_database
62	cmd:cmake
63	cmd:gcc$secondaryArchSuffix
64	cmd:itstool
65	cmd:make
66	cmd:meson
67	cmd:ninja
68	cmd:pkg_config$secondaryArchSuffix
69	"
70
71BUILD()
72{
73	meson Build --buildtype=release \
74		--prefix=/$prefix \
75		--libdir=$libDir \
76		--datadir=$dataDir \
77		--includedir=$includeDir \
78		--localedir=$dataDir/locale \
79		-Ducd_path=$portPackageLinksDir/unicode_character_database/data/unicode/ucd \
80		-Ddocs=false \
81		-Dgir=false \
82		-Dvapi=false
83	make -C Build
84}
85
86INSTALL()
87{
88	make -C Build install
89
90	prepareInstalledDevelLib libgucharmap_2_90
91	fixPkgconfig
92
93	packageEntries devel \
94		$developDir
95}
96