diff options
author | Sebastian Pipping <sping@gentoo.org> | 2017-01-18 18:50:18 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2017-01-18 18:50:35 +0100 |
commit | 1385a65b7352e811ac8878a1618b0fee2d58915b (patch) | |
tree | d8de1713e00951c667ac797ca6321375c0533b3f /x11-misc/spnavcfg | |
parent | net-dialup/ppp: Removed unused "mppe-mppc" USE flag description. (diff) | |
download | gentoo-1385a65b7352e811ac8878a1618b0fee2d58915b.tar.gz gentoo-1385a65b7352e811ac8878a1618b0fee2d58915b.tar.bz2 gentoo-1385a65b7352e811ac8878a1618b0fee2d58915b.zip |
x11-misc/spnavcfg: 0.3 (bug #606430)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'x11-misc/spnavcfg')
-rw-r--r-- | x11-misc/spnavcfg/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/spnavcfg/files/spnavcfg-0.3-custom-flags.patch | 60 | ||||
-rw-r--r-- | x11-misc/spnavcfg/spnavcfg-0.3.ebuild | 35 |
3 files changed, 96 insertions, 0 deletions
diff --git a/x11-misc/spnavcfg/Manifest b/x11-misc/spnavcfg/Manifest index 1fd31f07a0fe..3b1e5b85e461 100644 --- a/x11-misc/spnavcfg/Manifest +++ b/x11-misc/spnavcfg/Manifest @@ -1 +1,2 @@ DIST spnavcfg-0.2.1.tar.gz 18717 SHA256 a26d4478480f2fb65217cb0d88da5ff81a38c27aaa74710778ea0b999259c4c1 SHA512 8cda7e8c9c2aa0875c6cf19e96ec47b9492acdcb110e9845f278ede44bee733876a56e2aa2d1198f54d8fecb978fcfe0a61e8f7b7fe19c2754eceec957172e34 WHIRLPOOL f9d40d173e66fdb022fceaabe3d05ad4f088a3e9afdb1c3f27933409682d699d67346a16dcb6fb3736e133c1a341952cdc6b6aafe3734a91c33881b11b2b3dbb +DIST spnavcfg-0.3.tar.gz 214774 SHA256 4c950b8d4ebd4243c0bf08b6c5922f81b8cf73ec6bb7b20acb390610cdea4bd7 SHA512 a3411c32a6c7de2fd1cfa7960e1b0dade88e8c37435a39ded864b4b6f12fd3c8f518dad7a4ac5b465517484e74b3586f12d47e780f655fd7e4c3fea8d6186c80 WHIRLPOOL 13f677743dd2eed35f57ca178d8b1a9d3382ab1eb586d99b6ff33be0f080e88d80eabd91065db7c48d0ba7bff40eaf8c7d2d0fdc52f85256adb84cc6b4ef6b83 diff --git a/x11-misc/spnavcfg/files/spnavcfg-0.3-custom-flags.patch b/x11-misc/spnavcfg/files/spnavcfg-0.3-custom-flags.patch new file mode 100644 index 000000000000..d0ef0db6e711 --- /dev/null +++ b/x11-misc/spnavcfg/files/spnavcfg-0.3-custom-flags.patch @@ -0,0 +1,60 @@ +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 + diff --git a/x11-misc/spnavcfg/spnavcfg-0.3.ebuild b/x11-misc/spnavcfg/spnavcfg-0.3.ebuild new file mode 100644 index 000000000000..62c0ff4be0eb --- /dev/null +++ b/x11-misc/spnavcfg/spnavcfg-0.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils 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]" + +src_prepare() { + epatch "${FILESDIR}"/${P}-custom-flags.patch +} + +src_compile() { + emake CC=$(tc-getCC) || die "Make failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + dodoc README || die +} |