x11-misc/pscircle: add 1.4.0

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-02-13 16:01:58 +02:00
parent 3a9af2be4f
commit 890574c30c
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
3 changed files with 113 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST pscircle-1.3.1.tar.gz 6376531 BLAKE2B 27ab445eaacf5811bdb3eecb5ac24434f60a2e92acc5e267e0b4c19b0518276ba1c220d02bba0304b85b0426a7bf044145029c992092944481e73de6937e7e3d SHA512 cfb0345b6402c14d5a49913c9e7078dc75bd5fedd203d7d1228b0ac523addffbc8ccae670dcb724f6b9e9c7ffdd8cf84b795f74fe4a6885cb0b084432b910608 DIST pscircle-1.3.1.tar.gz 6376531 BLAKE2B 27ab445eaacf5811bdb3eecb5ac24434f60a2e92acc5e267e0b4c19b0518276ba1c220d02bba0304b85b0426a7bf044145029c992092944481e73de6937e7e3d SHA512 cfb0345b6402c14d5a49913c9e7078dc75bd5fedd203d7d1228b0ac523addffbc8ccae670dcb724f6b9e9c7ffdd8cf84b795f74fe4a6885cb0b084432b910608
DIST pscircle-1.4.0.tar.bz2 6231292 BLAKE2B cf59e66eaa87ef5b2feed7dfec9f28fc888b06484d0c75c6a7898e8044f59e562eaeec3bb803074edefaf97619d08b014e5304d5897bf093c59af4e7955b8b6b SHA512 26d493856cdf894d79af8df819ad700943fd3fea4be21270c58279af98adf906a5c7d783879155a03628346bef07dd5703f0cee543f5bb742f164e0d01147b64

View File

@ -0,0 +1,43 @@
From efdaf6cf070a8a57e116b42e87a6fe50b4614026 Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Tue, 13 Feb 2024 15:40:52 +0200
Subject: [PATCH] Enable tests with option
Signed-off-by: Alfred Wingate <parona@protonmail.com>
--- a/meson.build
+++ b/meson.build
@@ -118,6 +118,6 @@ executable(
install: true
)
-if get_option('buildtype').startswith('debug')
+if get_option('enable-tests')
subdir('tests')
endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,4 +4,10 @@ option(
value: true,
description : 'Use X11 for displaying image'
)
+option(
+ 'enable-tests',
+ type: 'boolean',
+ value: false,
+ description: 'Build tests'
+)
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -12,7 +12,7 @@ tests = [
add_languages('cpp')
-gtest_dep = dependency('gtest', main : true, required : false)
+gtest_dep = dependency('gtest', main : true)
if gtest_dep.found()
deps += gtest_dep
--
2.43.0

View File

@ -0,0 +1,69 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic meson savedconfig systemd
DESCRIPTION="Visualizes Linux processes in a radial tree"
HOMEPAGE="https://gitlab.com/mildlyparallel/pscircle"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/mildlyparallel/${PN}.git"
else
SRC_URI="https://gitlab.com/mildlyparallel/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-v${PV}"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="test X"
RESTRICT="!test? ( test )"
CDEPEND="
x11-libs/cairo[X?]
X? ( x11-libs/libX11 )
"
DEPEND="
${CDEPEND}
media-libs/libpng
test? (
dev-cpp/gtest
)
"
RDEPEND="
${CDEPEND}
"
PATCHES=(
"${FILESDIR}/pscircle-1.4.0-enable-tests-with-option.patch"
)
src_prepare() {
default
restore_config config.h.meson
}
src_configure() {
# Leads to test failures in argparser
filter-lto
local emesonargs=(
$(meson_use test enable-tests)
$(meson_use X enable-x11)
)
meson_src_configure
}
src_install() {
meson_src_install
einstalldocs
systemd_douserunit examples/pscircle.service
save_config config.h.meson
}