x11-misc/spnavcfg: 1.3 with Qt 6

Closes: https://bugs.gentoo.org/947620
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
Sebastian Pipping
2025-06-12 14:35:49 +02:00
parent 0057919b75
commit 61bfaada25
3 changed files with 48 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST spnavcfg-1.1.tar.gz 497896 BLAKE2B 874489904970182f6f56d0a7bd63cc3847f101729b2c6866677fc0c17fab4bad42132ac0f93a39ef9a35654acde8ef6cd42a462756dd7f0c3914424a5fc54dd2 SHA512 4d5c9dc37d1906dbc99535a758554d9419e20ad773adcf2d2062795a8e194a88b68c360341a08e3ac236df08a2e389c4475f341b5bac662a4526dada0bb891a6
DIST spnavcfg-1.2.tar.gz 499631 BLAKE2B 226e1a1a871bea973b01b1119a69af9169fc6a5d381951646e47f99d5063f88ebbc57f456ff8e61f90037834aa61b4e4c7c9d8adfa9ec7d44bc8846101172ba0 SHA512 cbfce46db025385b675c999b17abefcf3ebd96cfcb95e940c3cd54f956d257f21e70d892c016e748bebedbd01317f2c737803625d24f5ec49253a29cab99cc19
DIST spnavcfg-1.3.tar.gz 501293 BLAKE2B f4e69691d90fabf7ea7a0a18d88ceb5433419b24fd99dfeba963c7934f90e36693ad8a660673e7c393690d072cd14d2ee8c26018b24ea07664ae8076eeb8dc46 SHA512 be44c7df80da369b35783ea2a99873d8288305215d73928526597ef5b100da490e548b6d26b774198f558b36dea75cea5c945c682679a4b28ecc6478bbda4808
+1
View File
@@ -11,6 +11,7 @@
It allows convenient configuration of a space navigator device.
</longdescription>
<upstream>
<remote-id type="github">FreeSpacenav/spnavcfg</remote-id>
<remote-id type="sourceforge">spacenav</remote-id>
</upstream>
</pkgmetadata>
+46
View File
@@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs xdg-utils
DESCRIPTION="Qt-based GUI to configure a space navigator device"
HOMEPAGE="https://spacenav.sourceforge.net/"
SRC_URI="https://github.com/FreeSpacenav/spnavcfg/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
COMMON_DEPEND=">=dev-libs/libspnav-1.2[X]
dev-qt/qtbase:6[gui,widgets]
x11-libs/libX11"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig"
RDEPEND="${COMMON_DEPEND}
>=app-misc/spacenavd-1[X]"
src_configure() {
# Note: Makefile uses $(add_cflags) inside $(CXXFLAGS)
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
econf --disable-debug --disable-opt --qt6
}
src_compile() {
local args=(
CC="$(tc-getCC)"
CXX="$(tc-getCXX)"
libpath="-L/usr/$(get_libdir)"
)
emake "${args[@]}"
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}