diff options
author | 2023-01-08 21:44:24 +0100 | |
---|---|---|
committer | 2023-01-08 21:48:56 +0100 | |
commit | 2f56219f14b8449eb2dbe233880f72a12dfddd98 (patch) | |
tree | 55e2080ace25c8e86e25510065c6a2f15b118848 /x11-misc/spnavcfg/spnavcfg-1.1.ebuild | |
parent | dev-python/platformdirs: Remove old (diff) | |
download | gentoo-2f56219f14b8449eb2dbe233880f72a12dfddd98.tar.gz gentoo-2f56219f14b8449eb2dbe233880f72a12dfddd98.tar.bz2 gentoo-2f56219f14b8449eb2dbe233880f72a12dfddd98.zip |
x11-misc/spnavcfg: 1.1 + EAPI 8
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'x11-misc/spnavcfg/spnavcfg-1.1.ebuild')
-rw-r--r-- | x11-misc/spnavcfg/spnavcfg-1.1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11-misc/spnavcfg/spnavcfg-1.1.ebuild b/x11-misc/spnavcfg/spnavcfg-1.1.ebuild new file mode 100644 index 000000000000..6d9bd749d265 --- /dev/null +++ b/x11-misc/spnavcfg/spnavcfg-1.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs qmake-utils + +DESCRIPTION="Qt-based GUI to configure a space navigator device" +HOMEPAGE="http://spacenav.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/spacenav/spacenavd%20config%20gui/${PN}%20${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPEND=">=dev-libs/libspnav-1[X] + dev-qt/qtcore + dev-qt/qtgui + dev-qt/qtwidgets + 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 +} + +PATCHES=( + "${FILESDIR}"/${P}-makefile.patch +) + +src_compile() { + local args=( + CC="$(tc-getCC)" + CXX="$(tc-getCXX)" + MOC="$(qt5_get_bindir)/moc" + RCC="$(qt5_get_bindir)/rcc" + UIC="$(qt5_get_bindir)/uic" + libpath="-L/usr/$(get_libdir)" + ) + emake "${args[@]}" +} |