Diff spnavcfg-1.0 with a spnavcfg-1.1

/usr/portage/x11-misc/spnavcfg/spnavcfg-1.1.ebuild 2023-10-09 14:52:35.948368513 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit toolchain-funcs qmake-utils
7 7

  
8
DESCRIPTION="GTK-based GUI to configure a space navigator device"
8
DESCRIPTION="Qt-based GUI to configure a space navigator device"
9 9
HOMEPAGE="http://spacenav.sourceforge.net/"
10 10
SRC_URI="mirror://sourceforge/project/spacenav/spacenavd%20config%20gui/${PN}%20${PV}/${P}.tar.gz"
11 11

  
......
25 25
	>=app-misc/spacenavd-1[X]"
26 26

  
27 27
src_configure() {
28
	econf --disable-debug --disable-opt
28
	# Note: Makefile uses $(add_cflags) inside $(CXXFLAGS)
29
	CFLAGS="${CFLAGS}" \
30
		LDFLAGS="${LDFLAGS}" \
31
		econf --disable-debug --disable-opt
29 32
}
30 33

  
34
PATCHES=(
35
	"${FILESDIR}"/${P}-makefile.patch
36
)
37

  
31 38
src_compile() {
32 39
	local args=(
33 40
		CC="$(tc-getCC)"
41
		CXX="$(tc-getCXX)"
34 42
		MOC="$(qt5_get_bindir)/moc"
35 43
		RCC="$(qt5_get_bindir)/rcc"
36 44
		UIC="$(qt5_get_bindir)/uic"
45
		libpath="-L/usr/$(get_libdir)"
37 46
	)
38 47
	emake "${args[@]}"
39 48
}
Thank you!