From 37d3e1fd1ab0f77a94f2d4fa91d978112c66e28e Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Mon, 13 Nov 2023 10:43:16 +0100 Subject: [PATCH] testing/persistent-cache-cpp: new aport --- testing/persistent-cache-cpp/APKBUILD | 53 +++++++++++++++++++ .../remove-docs-html-from-makefile.patch | 22 ++++++++ 2 files changed, 75 insertions(+) create mode 100644 testing/persistent-cache-cpp/APKBUILD create mode 100644 testing/persistent-cache-cpp/remove-docs-html-from-makefile.patch diff --git a/testing/persistent-cache-cpp/APKBUILD b/testing/persistent-cache-cpp/APKBUILD new file mode 100644 index 00000000000..9da745abd3c --- /dev/null +++ b/testing/persistent-cache-cpp/APKBUILD @@ -0,0 +1,53 @@ +# Maintainer: Luca Weiss +# Contributor: Brandon Boese +pkgname=persistent-cache-cpp +pkgver=1.0.6 +pkgrel=0 +pkgdesc="Cache of key-value pairs with persistent storage for C++ 11" +url="https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp" +arch="all" +license="LGPL-3.0-only" +depends=" + dconf + " +depends_dev=" + boost-dev + leveldb-dev + " +makedepends=" + $depends_dev + cmake + cmake-extras + gtest-dev + samurai + " +checkdepends=" + xvfb-run + " +subpackages="$pkgname-dev $pkgname-doc" +source="https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/archive/$pkgver/persistent-cache-cpp-$pkgver.tar.gz + remove-docs-html-from-makefile.patch + " +options="!check" # 91% tests passed, 1 tests failed out of 11 + +build() { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=None + cmake --build build +} + +check() { + ctest --test-dir build --output-on-failure +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +fd87a2717adb4e4fe4eda56ea0e10b7e44db272bb256ee7e9ef1847a545d204fd54294f12da564bd920c1f7294f82960b2239d5dfbd520cfdf2f3b31fbf9bd4f persistent-cache-cpp-1.0.6.tar.gz +36ff4a45f203df026c595b0bdc39dd1a40a8fd43dbc30d06184bbfa9a34d26a469e2faca8574b7a18bfbdcd6da36a1f1dd7f486a01f59db4d7d1264506916f30 remove-docs-html-from-makefile.patch +" diff --git a/testing/persistent-cache-cpp/remove-docs-html-from-makefile.patch b/testing/persistent-cache-cpp/remove-docs-html-from-makefile.patch new file mode 100644 index 00000000000..f5d44564ca7 --- /dev/null +++ b/testing/persistent-cache-cpp/remove-docs-html-from-makefile.patch @@ -0,0 +1,22 @@ +From 3c00fe8ce7eb6e7e0fbe79457e0f424da0dd01dd Mon Sep 17 00:00:00 2001 +From: Brandon Boese +Date: Thu, 26 Oct 2023 02:45:23 -0400 +Subject: [PATCH] remove docs/html from makefile + +--- + CMakeLists.txt | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0f0d04f..7e8b0e8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -126,5 +126,3 @@ add_doxygen( + *::Priv + ALL + ) +-install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html +- DESTINATION share/doc/${LIBNAME}) +-- +2.42.0 +