x11-misc/spnavcfg: Drop old (EAPI 6)

Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-3.0.17, Repoman-3.0.2
This commit is contained in:
Sebastian Pipping
2021-03-13 14:46:10 +01:00
parent 8dd0615e35
commit caedbf4de6
3 changed files with 0 additions and 88 deletions

View File

@@ -1,2 +1 @@
DIST spnavcfg-0.3.1.tar.gz 215460 BLAKE2B f2bd35022399ec085d5c8b08c7514fdac8e974b33e9923a79446fa9552827d5986abf136fdb95ed31d7dbec419eb34ce13039955c6255cff971ffedcd3cc8a02 SHA512 b5e0ef2036eebc971298d95e8a91bd89ade956933919a4a5dc062fd977ff159bba392b0092ac36142fb317a9758c26319b07680b473f9957eda0163146be5408
DIST spnavcfg-0.3.tar.gz 214774 BLAKE2B aee45a796bd95761e4a7fe922cc5b65185c894e2fa366dea6d7677fc5ac3b7e0345b89eedef7bf8e446c598d66f161bb66fa695c07b433f5a6b7dce5055b6256 SHA512 a3411c32a6c7de2fd1cfa7960e1b0dade88e8c37435a39ded864b4b6f12fd3c8f518dad7a4ac5b465517484e74b3586f12d47e780f655fd7e4c3fea8d6186c80

View File

@@ -1,60 +0,0 @@
From e994e67a6a5c4722bdc8140528a4dd258c785402 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Wed, 18 Jan 2017 18:45:11 +0100
Subject: [PATCH] Respect custom CFLAGS/LDFLAGS
Based on spnavcfg-0.2.1-custom-flags.patch
---
Makefile.in | 4 ++--
configure | 13 +++++++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 06f23a6..296dd5d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -7,8 +7,8 @@ warn = -Wall
CC = gcc
SED = sed
INSTALL = install
-CFLAGS = -pedantic $(warn) $(dbg) $(opt) `pkg-config --cflags gtk+-2.0 gmodule-export-2.0`
-LDFLAGS = `pkg-config --libs gtk+-2.0 gmodule-export-2.0` -lX11
+CFLAGS = $(user_cflags) `pkg-config --cflags gtk+-2.0 gmodule-export-2.0`
+LDFLAGS = $(user_ldflags) `pkg-config --libs gtk+-2.0 gmodule-export-2.0` -lX11
$(bin): $(obj)
$(CC) -o $@ $(obj) $(LDFLAGS)
diff --git a/configure b/configure
index e211d92..0fed776 100755
--- a/configure
+++ b/configure
@@ -43,6 +43,12 @@ done
echo " prefix: $PREFIX"
echo " optimize for speed: $OPT"
echo " include debugging symbols: $DBG"
+if [ -n "$CFLAGS" ]; then
+ echo " cflags: $CFLAGS"
+fi
+if [ -n "$LDFLAGS" ]; then
+ echo " ldflags: $LDFLAGS"
+fi
echo
# create Makefile
@@ -58,6 +64,13 @@ if [ "$OPT" = 'yes' ]; then
echo 'opt = -O3' >>Makefile
fi
+if [ -n "$CFLAGS" ]; then
+ echo "user_cflags = $CFLAGS" >>Makefile
+fi
+if [ -n "$LDFLAGS" ]; then
+ echo "user_ldflags = $LDFLAGS" >>Makefile
+fi
+
cat "$srcdir/Makefile.in" >>Makefile
echo ''
--
2.11.0

View File

@@ -1,27 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="GTK-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="x11-libs/gtk+:2"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig"
RDEPEND="${COMMON_DEPEND}
app-misc/spacenavd[X]"
PATCHES=( "${FILESDIR}"/${P}-custom-flags.patch )
src_compile() {
emake CC=$(tc-getCC)
}