1SUMMARY="A C library for parsing and emitting YAML"
2DESCRIPTION="LibYAML covers presenting and parsing processes. Thus LibYAML \
3defines the following two processors:
4* Parser, which takes an input stream of bytes and produces a sequence of \
5parsing events.
6* Emitter, which takes a sequence of events and produces a stream of bytes."
7HOMEPAGE="https://pyyaml.org/wiki/LibYAML"
8COPYRIGHT="2017-2018 Ingy d��t Net
9	2006-2016 Kirill Simonov"
10LICENSE="MIT"
11REVISION="2"
12SOURCE_URI="https://pyyaml.org/download/libyaml/yaml-$portVersion.tar.gz"
13CHECKSUM_SHA256="c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
14SOURCE_DIR="yaml-$portVersion"
15
16ARCHITECTURES="all"
17SECONDARY_ARCHITECTURES="x86_gcc2 x86"
18
19libVersion="2.0.9"
20libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
21
22PROVIDES="
23	libyaml$secondaryArchSuffix = $portVersion
24	lib:libyaml_0$secondaryArchSuffix = $libVersionCompat
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	"
29
30PROVIDES_devel="
31	libyaml${secondaryArchSuffix}_devel = $portVersion
32	devel:libyaml$secondaryArchSuffix = $libVersionCompat
33	devel:libyaml_0$secondaryArchSuffix = $libVersionCompat
34	"
35REQUIRES_devel="
36	libyaml$secondaryArchSuffix == $portVersion base
37	"
38
39BUILD_REQUIRES="
40	haiku${secondaryArchSuffix}_devel
41	"
42BUILD_PREREQUIRES="
43	cmd:aclocal
44	cmd:autoconf
45	cmd:awk
46	cmd:cmp
47	cmd:gcc$secondaryArchSuffix
48	cmd:ld$secondaryArchSuffix
49	cmd:libtoolize$secondaryArchSuffix
50	cmd:make
51	"
52
53defineDebugInfoPackage libyaml$secondaryArchSuffix \
54	"$libDir"/libyaml-0.so.$libVersion
55
56BUILD()
57{
58	autoreconf -fi
59	runConfigure ./configure --disable-static
60	make $jobArgs
61}
62
63INSTALL()
64{
65	make install
66
67	rm -f "$libDir"/*.la
68
69	prepareInstalledDevelLibs libyaml libyaml-0
70	fixPkgconfig
71
72	# devel package
73	packageEntries devel \
74		"$developDir"
75}
76
77TEST()
78{
79	make check
80}
81