mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
mtxclient, bump version, coeurl new recipe (#6812)
* Nheko: bump, wip * nheko: bump * mtxclient, bump version, coeurl new recipe
This commit is contained in:
84
dev-cpp/coeurl/coeurl-0.3.0.recipe
Normal file
84
dev-cpp/coeurl/coeurl-0.3.0.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="Asynchronous C++ http requests library via CURL"
|
||||
DESCRIPTION="Simple library to do http requests asynchronously via CURL in \
|
||||
C++. (Eventually as coroutines, once all the compilers I need to support \
|
||||
support them.)"
|
||||
HOMEPAGE="https://www.nheko.im/nheko-reborn/coeurl"
|
||||
COPYRIGHT="2021 Nicolas Werner"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://www.nheko.im/nheko-reborn/coeurl/-/archive/v$portVersion/coeurl-v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="48b07482364edcbed03e352f6b8b07e327c331eaa45707ad58e62930fa361382"
|
||||
SOURCE_DIR="coeurl-v$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
coeurl$secondaryArchSuffix = $portVersion
|
||||
lib:libcoeurl$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libevent_2.1$secondaryArchSuffix
|
||||
lib:libevent_core_2.1$secondaryArchSuffix
|
||||
lib:libevent_pthreads_2.1$secondaryArchSuffix
|
||||
lib:libfmt$secondaryArchSuffix
|
||||
lib:libspdlog$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
coeurl${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libcoeurl$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
coeurl$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libevent_2.1$secondaryArchSuffix
|
||||
devel:libevent_core_2.1$secondaryArchSuffix
|
||||
devel:libevent_pthreads_2.1$secondaryArchSuffix
|
||||
devel:libfmt$secondaryArchSuffix
|
||||
devel:libspdlog$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
meson \
|
||||
--prefix=$prefix \
|
||||
--includedir=$includeDir \
|
||||
--libexecdir=$binDir \
|
||||
--buildtype=release \
|
||||
_build
|
||||
ninja -C _build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C _build install
|
||||
|
||||
prepareInstalledDevelLib libcoeurl
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
ninja -C _build test
|
||||
}
|
||||
Reference in New Issue
Block a user