diff --git a/dev-cpp/coeurl/coeurl-0.3.0.recipe b/dev-cpp/coeurl/coeurl-0.3.0.recipe new file mode 100644 index 000000000..683286d2a --- /dev/null +++ b/dev-cpp/coeurl/coeurl-0.3.0.recipe @@ -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 +} diff --git a/dev-libs/mtxclient/mtxclient-0.5.1.recipe b/dev-libs/mtxclient/mtxclient-0.9.2.recipe similarity index 77% rename from dev-libs/mtxclient/mtxclient-0.5.1.recipe rename to dev-libs/mtxclient/mtxclient-0.9.2.recipe index 99ece9301..d378502b4 100644 --- a/dev-libs/mtxclient/mtxclient-0.5.1.recipe +++ b/dev-libs/mtxclient/mtxclient-0.9.2.recipe @@ -3,9 +3,9 @@ DESCRIPTION="mtxclient is a C++ library implementing the Matrix protocol" HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient" COPYRIGHT="2018 Konstantinos Sideris" LICENSE="MIT" -REVISION="2" +REVISION="1" SOURCE_URI="https://github.com/Nheko-Reborn/mtxclient/archive/v$portVersion.tar.gz" -CHECKSUM_SHA256="9478d870296ebe7679c90f563cb798eb3cdd3f9c4578ceea5af75b66f456baaa" +CHECKSUM_SHA256="f55827fdba226c6fc409cf000c72b13cc6d069ec1300283a7239aa19c90c5f56" SOURCE_FILENAME="mtxclient-v$portVersion.tar.gz" ARCHITECTURES="all !x86_gcc2" @@ -14,19 +14,20 @@ SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" -boostMinimumVersion="1.70.0" - PROVIDES=" mtxclient$secondaryArchSuffix = $portVersion lib:libmatrix_client$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix - lib:libboost_iostreams$secondaryArchSuffix - lib:libboost_system$secondaryArchSuffix - lib:libboost_thread$secondaryArchSuffix + lib:libcoeurl$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libevent_core_2.1$secondaryArchSuffix + lib:libfmt$secondaryArchSuffix lib:libolm$secondaryArchSuffix + lib:libre2$secondaryArchSuffix + lib:libspdlog$secondaryArchSuffix lib:libssl$secondaryArchSuffix " @@ -41,10 +42,12 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:nlohmann_json - devel:libboost_iostreams$secondaryArchSuffix >= $boostMinimumVersion - devel:libboost_system$secondaryArchSuffix >= $boostMinimumVersion - devel:libboost_thread$secondaryArchSuffix >= $boostMinimumVersion + devel:libcoeurl$secondaryArchSuffix + devel:libcurl$secondaryArchSuffix + devel:libevent_core_2.1$secondaryArchSuffix devel:libolm$secondaryArchSuffix + devel:libre2$secondaryArchSuffix + devel:libspdlog$secondaryArchSuffix devel:libssl$secondaryArchSuffix " BUILD_PREREQUIRES="