From bd332c57b03803b525a84a881522df5040e14d9c Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 18 Jan 2024 15:37:11 +0200 Subject: [PATCH] app-misc/cli-visualizer: add 1.8_p20220323 Signed-off-by: Alfred Wingate --- app-misc/cli-visualizer/Manifest | 1 + .../cli-visualizer-1.8_p20220323.ebuild | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 app-misc/cli-visualizer/cli-visualizer-1.8_p20220323.ebuild diff --git a/app-misc/cli-visualizer/Manifest b/app-misc/cli-visualizer/Manifest index 43487d0..9b186a5 100644 --- a/app-misc/cli-visualizer/Manifest +++ b/app-misc/cli-visualizer/Manifest @@ -1 +1,2 @@ DIST cli-visualizer-1.8.tar.gz 55083 BLAKE2B 0179ef2f0f1a4f928b5e1030eda499c706ee9207918b5ead0054472c1ba3bf293418b1a622868855496f483967754a88dd7a0c545e41b045c55466134157a90c SHA512 e64b729818f870896cc1fdbdccb80ee141d00118df4f50696919ff04d90503c913953fa76082bd09db1fca16a047d1255908852e3cfc6b3b5ac5fbb841833415 +DIST cli-visualizer-1.8_p20220323.tar.gz 58820 BLAKE2B 3369693ed1357ab69b3e591b1e4971484b5d5af76fea22efd3c656052577af3e0f7ec9f98382ab22968726fba854209b44d0aa0332d370b92b29c9cc7a3cc8b8 SHA512 13e0c2699c52d03233cef7f42dccef98945b645d452ac4e897d8a9edcb214e35359969a4b0def513f83a930eeeafdbdffd5a27e24b7bf4e4fa1ac85a99c41634 diff --git a/app-misc/cli-visualizer/cli-visualizer-1.8_p20220323.ebuild b/app-misc/cli-visualizer/cli-visualizer-1.8_p20220323.ebuild new file mode 100644 index 0000000..996548c --- /dev/null +++ b/app-misc/cli-visualizer/cli-visualizer-1.8_p20220323.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="CLI based audio visualizer" +HOMEPAGE="https://github.com/dpayne/cli-visualizer" +COMMIT="b98068ffbe55210ab4828556d243e13e79ba889d" +SRC_URI="https://github.com/dpayne/cli-visualizer/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + media-libs/libpulse + media-libs/portaudio + sci-libs/fftw:3.0= + sys-libs/ncurses:=[tinfo] + test? ( + dev-cpp/gtest + ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare + + # Handle automagic, upstream uses find_program and find_library instead find_package forcing this approach + sed -i \ + -e '/find_program(CCACHE_FOUND ccache)/d' \ + -e '/find_library(JEMALLOC_FOUND NAMES jemalloc)/d' \ + -e '/ExternalProject_Add(googletest/,/)$/d' \ + -e '/if(VIS_WITH_TESTS)/afind_package(GTest REQUIRED)' \ + -e '/set(GTEST_INCLUDE_DIRS ${EXTERNAL_PROJECTS_INCLUDE_DIR})/,/add_dependencies(${GMOCK_MAIN_LIBRARY} ${GTEST_LIBRARY})/d' \ + -e 's/target_link_libraries(${PROJECT_TEST_NAME} gtest gmock pthread)/target_link_libraries(${PROJECT_TEST_NAME} GTest::gtest GTest::gmock pthread)/' \ + CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DVIS_WITH_TESTS=$(usex test) + -DVIS_WITH_PERF_TESTS=OFF # possible false positive when under heavy load + -DVIS_RUN_CLANG_FORMAT=OFF + -DVIS_RUN_CLANG_TIDY=OFF + ) + + cmake_src_configure +}