Files
haikuports/dev-libs/libyaml/libyaml-0.2.1.recipe
2018-12-03 08:26:55 +01:00

78 lines
1.7 KiB
Bash

SUMMARY="A C library for parsing and emitting YAML"
DESCRIPTION="LibYAML covers presenting and parsing processes. Thus LibYAML \
defines the following two processors:
* Parser, which takes an input stream of bytes and produces a sequence of \
parsing events.
* Emitter, which takes a sequence of events and produces a stream of bytes."
HOMEPAGE="https://pyyaml.org/wiki/LibYAML"
COPYRIGHT="2017-2018 Ingy döt Net
2006-2016 Kirill Simonov"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pyyaml.org/download/libyaml/yaml-$portVersion.tar.gz"
CHECKSUM_SHA256="78281145641a080fb32d6e7a87b9c0664d611dcb4d542e90baf731f51cbb59cd"
SOURCE_DIR="yaml-$portVersion"
PATCHES="libyaml-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="2.0.5"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libyaml$secondaryArchSuffix = $portVersion
lib:libyaml_0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libyaml${secondaryArchSuffix}_devel = $portVersion
devel:libyaml$secondaryArchSuffix = $libVersionCompat
devel:libyaml_0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libyaml$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage libyaml$secondaryArchSuffix \
"$libDir"/libyaml-0.so.$libVersion
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/*.la
prepareInstalledDevelLibs libyaml libyaml-0
fixPkgconfig
# devel package
packageEntries devel \
"$developDir"
}
TEST()
{
make check
}