mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
yaml_cpp, bump version, keep older library around (#9847)
This commit is contained in:
115621
dev-cpp/yaml_cpp/patches/yaml_cpp-0.8.0.patchset
Normal file
115621
dev-cpp/yaml_cpp/patches/yaml_cpp-0.8.0.patchset
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@ DESCRIPTION="yaml-cpp is a YAML parser and emitter in C++ matching the YAML \
|
||||
HOMEPAGE="https://github.com/jbeder/yaml-cpp"
|
||||
COPYRIGHT="2018 Jesse Beder"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="43e6a9fcb146ad871515f0d0873947e5d497a1c9c60c58cb102a97b47208b7c3"
|
||||
SOURCE_DIR="yaml-cpp-yaml-cpp-$portVersion"
|
||||
@@ -17,19 +17,14 @@ libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
yaml_cpp$secondaryArchSuffix = $portVersion
|
||||
yaml_cpp0.7$secondaryArchSuffix = $portVersion
|
||||
lib:libyaml_cpp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
yaml_cpp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libyaml_cpp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
yaml_cpp$secondaryArchSuffix == $portVersion base
|
||||
REPLACES="
|
||||
yaml_cpp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -65,8 +60,7 @@ INSTALL()
|
||||
prepareInstalledDevelLib libyaml-cpp
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
rm -rf $developDir $libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
76
dev-cpp/yaml_cpp/yaml_cpp0.8-0.8.0.recipe
Normal file
76
dev-cpp/yaml_cpp/yaml_cpp0.8-0.8.0.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
SUMMARY="A YAML parser and emitter in C++"
|
||||
DESCRIPTION="yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec."
|
||||
HOMEPAGE="https://github.com/jbeder/yaml-cpp"
|
||||
COPYRIGHT="2008-2015 Jesse Beder"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/jbeder/yaml-cpp/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="fbe74bbdcee21d656715688706da3c8becfd946d92cd44705cc6098bb23b3a16"
|
||||
SOURCE_FILENAME="yaml-cpp-$portVersion.tar.gz"
|
||||
SOURCE_DIR="yaml-cpp-$portVersion"
|
||||
PATCHES="yaml_cpp-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
yaml_cpp0.8$secondaryArchSuffix = $portVersion
|
||||
lib:libyaml_cpp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
yaml_cpp0.8${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libyaml_cpp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
yaml_cpp0.8$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgtest$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DYAML_BUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DYAML_CPP_BUILD_TOOLS=OFF \
|
||||
-DYAML_CPP_BUILD_TESTS=ON
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib libyaml-cpp
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build/test
|
||||
./yaml-cpp-tests
|
||||
}
|
||||
Reference in New Issue
Block a user