summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2012-02-06 20:17:38 +0000
committerSebastian Pipping <sping@gentoo.org>2012-02-06 20:17:38 +0000
commit6922f59fb7c398c89e1dbe57a6b1813c376bb344 (patch)
tree7af61d1fd8e1596398b78a93aed05e4296d3db9e
parentcorrect last entry (diff)
downloadgentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.tar.gz
gentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.tar.bz2
gentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.zip
x11-misc/spnavcfg: 0.2.1 (bug #390427)
(Portage version: 2.1.10.44/cvs/Linux x86_64)
-rw-r--r--x11-misc/spnavcfg/ChangeLog12
-rw-r--r--x11-misc/spnavcfg/Manifest7
-rw-r--r--x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch44
-rw-r--r--x11-misc/spnavcfg/files/spnavcfg-0.2.1-destdir.patch16
-rw-r--r--x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch12
-rw-r--r--x11-misc/spnavcfg/metadata.xml17
-rw-r--r--x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild37
7 files changed, 145 insertions, 0 deletions
diff --git a/x11-misc/spnavcfg/ChangeLog b/x11-misc/spnavcfg/ChangeLog
new file mode 100644
index 000000000000..aec0f0b8c664
--- /dev/null
+++ b/x11-misc/spnavcfg/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for x11-misc/spnavcfg
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/spnavcfg/ChangeLog,v 1.1 2012/02/06 20:17:38 sping Exp $
+
+*spnavcfg-0.2.1 (06 Feb 2012)
+
+ 06 Feb 2012; Sebastian Pipping <sping@gentoo.org> +spnavcfg-0.2.1.ebuild,
+ +files/spnavcfg-0.2.1-custom-flags.patch,
+ +files/spnavcfg-0.2.1-destdir.patch, +files/spnavcfg-0.2.1-x11-libs.patch,
+ +metadata.xml:
+ New package, related to (bug #390427), co-operation with Anthoine Bourgeois
+
diff --git a/x11-misc/spnavcfg/Manifest b/x11-misc/spnavcfg/Manifest
new file mode 100644
index 000000000000..28bb30731bdb
--- /dev/null
+++ b/x11-misc/spnavcfg/Manifest
@@ -0,0 +1,7 @@
+AUX spnavcfg-0.2.1-custom-flags.patch 1336 RMD160 8691b02d04a7b39e8663f98ef0cac6b1dc1ed2e2 SHA1 25acb4d2cb727280e997dfebbad0f916614daf80 SHA256 975eca694315dc7f4fdccb1ffed43312c0dc20f4ca0113fa0beb143a1ddfd2b6
+AUX spnavcfg-0.2.1-destdir.patch 542 RMD160 e7744f7243debef4f4434b609804bafbf3c0d145 SHA1 57284c303ec0e526dd1aa82dfa1473b77096b782 SHA256 573f5cf902364f1b7cab5a4168c3e2e30b1160d9c7ab9aabccceb5e57854b8b7
+AUX spnavcfg-0.2.1-x11-libs.patch 520 RMD160 d7b8743f559cff2de9574bded5639609f203a7c4 SHA1 d63f355381b9372f2ea24fa82e963dc09c9642eb SHA256 65a396afe6690817c31eee7682f4fd4beb50672d931801f9fb7896d073299f3c
+DIST spnavcfg-0.2.1.tar.gz 18717 RMD160 fee35e0350b685004b176d9d0e2d1fddecd2ae46 SHA1 1ec1e414d8edcd1621e2c555d0fe8a06c16dbef5 SHA256 a26d4478480f2fb65217cb0d88da5ff81a38c27aaa74710778ea0b999259c4c1
+EBUILD spnavcfg-0.2.1.ebuild 863 RMD160 fd98d9f08ac803df59277ed16ed2791104df8dc9 SHA1 b1eec0776097f20526211ae6691654f05d251bca SHA256 7da02877ed2fcd7e1c6ec1b4a54b89f0e969ad0bbb2b42f5870dd83ecc63d413
+MISC ChangeLog 442 RMD160 627b2b557df5253f545a5a5a75930cb0c3d0cf99 SHA1 9f11487b31db9ec7de471dbc9df5cac97291d490 SHA256 b6ad1a1506573204b1538892b7288dd3f18faf29edb24aae5c47aea87da91c68
+MISC metadata.xml 492 RMD160 86df616711330f3905d48be9b853eac4aa429e16 SHA1 1d490b3effbc6e41914d441e78a3111cd2015177 SHA256 9a3d828bd76cf1691b505d91ff88c842dc5cabd618b756ee307aa6102cc6a2b5
diff --git a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch
new file mode 100644
index 000000000000..5e4c788dcffe
--- /dev/null
+++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch
@@ -0,0 +1,44 @@
+diff -Npur spnavcfg-0.2.1.orig/Makefile.in spnavcfg-0.2.1/Makefile.in
+--- spnavcfg-0.2.1.orig/Makefile.in 2012-01-31 22:16:40.789374658 +0100
++++ spnavcfg-0.2.1/Makefile.in 2012-01-31 22:17:01.146374359 +0100
+@@ -5,8 +5,8 @@ warn = -Wall -Wno-int-to-pointer-cast -W
+
+ CC = gcc
+ INSTALL = install
+-CFLAGS = -pedantic $(warn) $(dbg) $(opt) `pkg-config --cflags gtk+-2.0`
+-LDFLAGS = `pkg-config --libs gtk+-2.0`
++CFLAGS = $(user_cflags) `pkg-config --cflags gtk+-2.0`
++LDFLAGS = $(user_ldflags) `pkg-config --libs gtk+-2.0`
+
+ $(bin): $(obj)
+ $(CC) -o $@ $(obj) $(LDFLAGS)
+diff -Npur spnavcfg-0.2.1.orig/configure spnavcfg-0.2.1/configure
+--- spnavcfg-0.2.1.orig/configure 2012-01-31 22:16:40.789374658 +0100
++++ spnavcfg-0.2.1/configure 2012-01-31 22:17:01.146374359 +0100
+@@ -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 ''
diff --git a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-destdir.patch b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-destdir.patch
new file mode 100644
index 000000000000..8e6848baa102
--- /dev/null
+++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-destdir.patch
@@ -0,0 +1,16 @@
+diff -Npur spnavcfg-0.2.1.orig/Makefile.in spnavcfg-0.2.1/Makefile.in
+--- spnavcfg-0.2.1.orig/Makefile.in 2012-01-24 19:50:04.738222230 +0100
++++ spnavcfg-0.2.1/Makefile.in 2012-01-24 19:51:13.199221053 +0100
+@@ -20,9 +20,9 @@ clean:
+
+ .PHONY: install
+ install:
+- $(INSTALL) -d $(PREFIX)/bin
+- $(INSTALL) -m 4775 $(bin) $(PREFIX)/bin/$(bin)
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) -m 4775 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
+
+ .PHONY: uninstall
+ uninstall:
+- rm -f $(PREFIX)/bin/$(bin)
++ rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)
diff --git a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch
new file mode 100644
index 000000000000..7294013ac5c4
--- /dev/null
+++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch
@@ -0,0 +1,12 @@
+diff -Npur spnavcfg-0.2.1.orig/Makefile.in spnavcfg-0.2.1/Makefile.in
+--- spnavcfg-0.2.1.orig/Makefile.in 2012-01-31 22:10:35.832381151 +0100
++++ spnavcfg-0.2.1/Makefile.in 2012-01-31 22:11:14.254380520 +0100
+@@ -6,7 +6,7 @@ warn = -Wall -Wno-int-to-pointer-cast -W
+ CC = gcc
+ INSTALL = install
+ CFLAGS = $(user_cflags) `pkg-config --cflags gtk+-2.0`
+-LDFLAGS = $(user_ldflags) `pkg-config --libs gtk+-2.0`
++LDFLAGS = $(user_ldflags) `pkg-config --libs gtk+-2.0` -lX11
+
+ $(bin): $(obj)
+ $(CC) -o $@ $(obj) $(LDFLAGS)
diff --git a/x11-misc/spnavcfg/metadata.xml b/x11-misc/spnavcfg/metadata.xml
new file mode 100644
index 000000000000..d5be1b27b61c
--- /dev/null
+++ b/x11-misc/spnavcfg/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>anthoine.bourgeois@gmail.com</email>
+ <name>Anthoine Bourgeois</name>
+ </maintainer>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <longdescription>
+ The spnavcfg is the GTK-based configuration GUI for
+ <pkg>sys-libs/spacenavd</pkg>.
+ </longdescription>
+</pkgmetadata>
diff --git a/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild b/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild
new file mode 100644
index 000000000000..b38e86accbe7
--- /dev/null
+++ b/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild,v 1.1 2012/02/06 20:17:38 sping Exp $
+
+EAPI="3"
+
+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}
+ dev-util/pkgconfig"
+RDEPEND="${COMMON_DEPEND}
+ app-misc/spacenavd[X]"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+ epatch "${FILESDIR}"/${P}-x11-libs.patch
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) || die "Make failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc README || die
+}