app-misc/piper: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-10-22 19:58:06 +02:00
parent 18655ca779
commit f47b02ba1e
3 changed files with 0 additions and 144 deletions
-1
View File
@@ -1,2 +1 @@
DIST piper-0.7.tar.gz 271658 BLAKE2B 8d3d411cc771a286ae0d7654b6d70f394e11edb182924619195b947d0d54df4db308e94aceebe0754ddd446538f1dce2ccb88dbf1cd44595b614d852e7394698 SHA512 fcbc30a4954ea6b0aa67c66052eab1e6b2d3039c927eeddcfc8b03d00f1c91e8f0ae80788ba0e4f053a612b03f594e74fd119dd11f52dd47608c99602e7e4940
DIST piper-0.8.tar.gz 318558 BLAKE2B 170426c35899841a3317d0cd37d253fab524848fbe5ebf1c2e670c56c962bf9f7a39bccd1dea43bbf0d5c6a158e795df63e84ddb0422fec4fd92142d70fccbc8 SHA512 c0a05262262a1284911c976ab934653f8a3699066ef1d791669169c1e6c5db62dba0fcccc32d6bc68b996a2c2b8e96a6567761d01417a03d7dbb41010dd95cd8
@@ -1,66 +0,0 @@
Upstream commit https://github.com/libratbag/piper/commit/603d68726364cea5e71ef1f0153e3641ec889063, backported to 0.7
From 603d68726364cea5e71ef1f0153e3641ec889063 Mon Sep 17 00:00:00 2001
From: Tobias Kortkamp <tobias.kortkamp@gmail.com>
Date: Mon, 1 Aug 2022 15:57:28 +0200
Subject: [PATCH] Fix tests for out-of-source builds
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When the build directory is not _under_ the source directory then
flake8 cannot find the local config file and it will try to check
piper.in which fails per 1ed66262b77ebd9fe188894d36842527da39508a
To fix this I propose to
1. pass the config to flake8 explicitly
2. remove piper.in from the args list since it is excluded in the
flake8 config anyway
3. check the generated $build/piper.devel and $build/piper too per
1ed66262b77ebd9fe188894d36842527da39508a
4. merge the --ignore in meson.build with the config
Steps to reproduce:
```
$ meson ../build
$ ninja -C../build test
...
[17/18] Running all tests.
1/5 piper:all / files-in-git SKIP 0.01s exit status 77
2/5 piper / validate appdata file OK 0.04s
3/5 piper / svg-lookup-check OK 0.10s
4/5 piper / check-svg OK 0.18s
5/5 piper / flake8 FAIL 1.00s exit status 1
>>> MALLOC_PERTURB_=32 /gnu/store/yhhvrj6bns3ws85d338ah3bsc8jv4x64-profile/bin/flake8 --ignore=E501,W504 /home/tobias/ghq/github.com/libratbag/piper/piper /home/tobias/ghq/github.com/libratbag/piper/piper.in
――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――
/home/tobias/ghq/github.com/libratbag/piper/piper.in:11:19: E999 SyntaxError: invalid syntax
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
```
diff --git a/.flake8 b/.flake8
index 8f1ba6f..170b294 100644
--- a/.flake8
+++ b/.flake8
@@ -1,3 +1,3 @@
[flake8]
-ignore = E402,E501
+ignore = E402,E501,W504
exclude = .git,__pycache__,build,data,piper/piper.py,piper.in
diff --git a/piper-0.7/meson.build b/piper-0.7/meson.build
index 21963d8..03f0c3e 100644
--- a/meson.build
+++ b/meson.build
@@ -115,9 +115,10 @@ if enable_tests
flake8 = find_program('flake8')
if flake8.found()
test('flake8', flake8,
- args: ['--ignore=E501,W504',
+ args: ['--config=' + join_paths(meson.current_source_dir(), '.flake8'),
join_paths(meson.current_source_dir(), 'piper'),
- join_paths(meson.current_source_dir(), 'piper.in')])
+ join_paths(meson.current_build_dir(), 'piper'),
+ join_paths(meson.current_build_dir(), 'piper.devel')])
endif
test_svg_files = find_program('tests/check-svg.py')
-77
View File
@@ -1,77 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit meson python-single-r1 xdg
DESCRIPTION="GTK application to configure gaming devices"
HOMEPAGE="https://github.com/libratbag/piper"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/libratbag/piper.git"
else
SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
BDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/lxml[${PYTHON_USEDEP}]
')
virtual/pkgconfig
test? (
$(python_gen_cond_dep '
dev-python/flake8[${PYTHON_USEDEP}]
')
dev-libs/appstream
)
"
RDEPEND="
${PYTHON_DEPS}
>=dev-libs/gobject-introspection-1.82.0-r2
>=dev-libs/libratbag-0.14
<dev-libs/libratbag-0.18
gnome-base/librsvg[introspection]
x11-libs/gdk-pixbuf[introspection]
x11-libs/gtk+:3[introspection]
$(python_gen_cond_dep '
dev-python/evdev[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
')
"
DEPEND="
${RDEPEND}
dev-libs/libevdev
virtual/libudev
"
PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" )
src_configure() {
python_setup
local emesonargs=(
$(meson_use test tests)
)
meson_src_configure
}
src_install() {
meson_src_install
python_optimize
python_fix_shebang "${ED}"/usr/bin/
}