1SUMMARY="A GObject plugins library"
2DESCRIPTION="libpeas is a gobject-based plugins engine, and is targetted at giving every \
3application the chance to assume its own extensibility. It also has a set of features \
4including, but not limited to:
5
6* multiple extension points
7* on demand (lazy) programming language support for C, Python and Lua
8*simplicity of the APIS"
9HOMEPAGE="https://wiki.gnome.org/Projects/Libpeas"
10COPYRIGHT="Steve Fr��cinaux
11	Ignacio Casal Quinteiro
12	"
13LICENSE="GNU LGPL v2.1"
14REVISION="1"
15SOURCE_URI="https://gitlab.gnome.org/GNOME/libpeas/-/archive/libpeas-$portVersion/libpeas-libpeas-$portVersion.tar.gz"
16SOURCE_DIR="libpeas-libpeas-$portVersion"
17CHECKSUM_SHA256="514b0576d9a56460915490bdb61dcb88634fdacfb2801e28dcbb9a730348858f"
18
19ARCHITECTURES="all !x86_gcc2"
20SECONDARY_ARCHITECTURES="x86"
21
22PROVIDES="
23	libpeas$secondaryArchSuffix = $portVersion compat >= 1
24	lib:libpeas_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0
25	lib:libpeas_gtk_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	lib:libcairo$secondaryArchSuffix
30	lib:libcairo_gobject$secondaryArchSuffix
31	lib:libgdk_pixbuf_2.0$secondaryArchSuffix
32	lib:libgirepository_1.0$secondaryArchSuffix
33	lib:libglib_2.0$secondaryArchSuffix
34	lib:libgtk_3$secondaryArchSuffix
35	lib:libpango_1.0$secondaryArchSuffix
36	lib:libintl$secondaryArchSuffix
37	"
38
39PROVIDES_devel="
40	libpeas${secondaryArchSuffix}_devel = $portVersion compat >= 1
41	devel:libpeas_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0
42	devel:libpeas_gtk_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0
43	"
44REQUIRES_devel="
45	libpeas$secondaryArchSuffix == $portVersion base
46	devel:libgtk_3$secondaryArchSuffix
47	devel:libgirepository_1.0$secondaryArchSuffix
48	devel:libglib_2.0$secondaryArchSuffix
49	"
50
51BUILD_REQUIRES="
52	haiku${secondaryArchSuffix}_devel
53	devel:libgirepository_1.0$secondaryArchSuffix
54	devel:libglib_2.0$secondaryArchSuffix
55	devel:libgtk_3$secondaryArchSuffix
56	"
57BUILD_PREREQUIRES="
58	cmd:cmake
59	cmd:find
60	cmd:gcc$secondaryArchSuffix
61	cmd:gperf
62	cmd:make
63	cmd:meson
64	cmd:ninja
65	cmd:perl
66	cmd:pkg_config$secondaryArchSuffix
67	cmd:python3
68	cmd:valac
69	"
70
71BUILD()
72{
73	meson \
74		--buildtype=release \
75		--prefix=$prefix \
76		--libdir=$libDir \
77		--libexecdir=$binDir \
78		--datadir=$dataDir \
79		--localedir=$dataDir/locale \
80		--includedir=$includeDir \
81		--sysconfdir=$settingsDir \
82		-Ddemos=false \
83		-Dintrospection=true \
84		-Dvapi=true \
85		_build
86
87	cd _build
88	ninja
89}
90
91INSTALL()
92{
93	cd _build
94	ninja install
95
96	prepareInstalledDevelLibs libpeas-1.0 libpeas-gtk-1.0
97
98	fixPkgconfig
99
100	# devel package
101	packageEntries devel \
102		$developDir
103}
104