summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2012-01-31 22:46:21 +0100
committerAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2012-01-31 22:46:21 +0100
commit1421d44ff8230169e0fb6669a7d366e2cbf5a15b (patch)
tree9d3df2273292c8529296091d04fbeff4d97424eb
parent+fakechroot-2.16.ebuild (diff)
downloadaluco-1421d44ff8230169e0fb6669a7d366e2cbf5a15b.tar.gz
aluco-1421d44ff8230169e0fb6669a7d366e2cbf5a15b.tar.bz2
aluco-1421d44ff8230169e0fb6669a7d366e2cbf5a15b.zip
libspnav-0.2.2, spacenavd-0.5-r1, spnavcfg-0.2.1
- Add $(tc-getCC) in each ebuild. - Remove default cflags, apply ours only. - Do not build or install libspnav static lib.
-rw-r--r--media-libs/libspnav/Manifest6
-rw-r--r--media-libs/libspnav/files/libspnav-0.2.2-custom-flags.patch46
-rw-r--r--media-libs/libspnav/files/libspnav-0.2.2-makefile.patch21
-rw-r--r--media-libs/libspnav/libspnav-0.2.2.ebuild6
-rw-r--r--sys-libs/spacenavd/Manifest4
-rw-r--r--sys-libs/spacenavd/files/spacenavd-0.5-custom-flags.patch30
-rw-r--r--sys-libs/spacenavd/spacenavd-0.5-r1.ebuild6
-rw-r--r--x11-misc/spnavcfg/Manifest6
-rw-r--r--x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch10
-rw-r--r--x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch8
-rw-r--r--x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild6
11 files changed, 88 insertions, 61 deletions
diff --git a/media-libs/libspnav/Manifest b/media-libs/libspnav/Manifest
index 72c0ba4..14950fb 100644
--- a/media-libs/libspnav/Manifest
+++ b/media-libs/libspnav/Manifest
@@ -1,5 +1,5 @@
-AUX libspnav-0.2.2-custom-flags.patch 2122 RMD160 8fc4965afad03826ddc47f56eb03639b0f64e3dc SHA1 0117dbc82ca6de12e4bb533b4e8f6d5232f0e8fc SHA256 c93b5289a1ce4a69f931b0672197127fc0719b52acdf083cb199b0c0c2564b08
-AUX libspnav-0.2.2-makefile.patch 541 RMD160 86bcf1c696e10d352d0f245e877e27d1fcc4bb35 SHA1 831191f1076f0e4cd09b28bdb0eae067a2685988 SHA256 af31d4569a24a20461d40d8d2054ed23b5faf8842d1a85d77b6e5ced3120c911
+AUX libspnav-0.2.2-custom-flags.patch 2151 RMD160 26eccbf34e404defe392333db30f433737220bc6 SHA1 e14d386825db1728261cfb9fbef2e5fd4c480383 SHA256 f3dcc7b4023e67a87a0554cdd277a836696c948b0ec01035ec6fe5dd2e4c587b
+AUX libspnav-0.2.2-makefile.patch 926 RMD160 7bee7c9d4af64bdafa3178c1565a41f062a96359 SHA1 9c20ac0d0d5c2bb8f60270b0d630bb37594a0596 SHA256 ec3abb5c566b3b4bb3f18e58ff83802845ea9156cba42ed417f4da35733746e7
DIST libspnav-0.2.2.tar.gz 11615 RMD160 d49a1c9b5e556fd8ff8e7545d0983c1b205fe9f2 SHA1 c9291ed4acb38da3be4f81e6e3b43f853ce55eca SHA256 fb72388770d7dcd85b56ac2a83948983f1afd7dbe271e18d507b975ac4bea14f
-EBUILD libspnav-0.2.2.ebuild 730 RMD160 4ee2183dacac9701b2e7a6d87dc49d31d82a0475 SHA1 ec7452290d89992d273aa4b20a09ac9bdc63ea86 SHA256 03959428be00bdf77e5389d4e89c18c37870e0e9257776c93f370c709243b02c
+EBUILD libspnav-0.2.2.ebuild 787 RMD160 83a48a3c5a3d0f8ae70a77aa924b048e1cd32b77 SHA1 4bfd858d30c946343cb3666d236f44d56a059f70 SHA256 861630fee3deb1ac7b374e22ce0f994f25fb8fb44a62190afc57d5e15423de6e
MISC metadata.xml 810 RMD160 2c76c38dc1f88e28903e87ecfd219c112355a0c2 SHA1 b604eaafaab4cf7eff00c7d22378f23e281c2ea0 SHA256 60adbbeba0e80ffcade921297fbb50d0fc646b8f1cd7c768fcb034b969119358
diff --git a/media-libs/libspnav/files/libspnav-0.2.2-custom-flags.patch b/media-libs/libspnav/files/libspnav-0.2.2-custom-flags.patch
index 56d132b..cc96655 100644
--- a/media-libs/libspnav/files/libspnav-0.2.2-custom-flags.patch
+++ b/media-libs/libspnav/files/libspnav-0.2.2-custom-flags.patch
@@ -1,6 +1,28 @@
+diff -Npur libspnav-0.2.2.orig/Makefile.in libspnav-0.2.2/Makefile.in
+--- libspnav-0.2.2.orig/Makefile.in 2012-01-31 22:34:01.448356249 +0100
++++ libspnav-0.2.2/Makefile.in 2012-01-31 22:39:20.229350669 +0100
+@@ -7,7 +7,8 @@ lib_so = $(soname).1
+
+ CC = gcc
+ AR = ar
+-CFLAGS = $(opt) $(dbg) -std=c89 -fpic -pedantic -Wall -fno-strict-aliasing -I.
++CFLAGS = $(opt) -fpic -I.
++LDFLAGS = $(ldopt) -shared -Wl,-soname,$(soname)
+
+ .PHONY: all
+ all: $(lib_a) $(lib_so)
+@@ -16,7 +17,7 @@ $(lib_a): $(obj)
+ $(AR) rcs $@ $(obj)
+
+ $(lib_so): $(obj)
+- $(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
++ $(CC) $(LDFLAGS) -o $@ $(obj)
+
+ %.o: $(srcdir)/%.c
+ $(CC) $(CFLAGS) -c $< -o $@
diff -Npur libspnav-0.2.2.orig/configure libspnav-0.2.2/configure
---- libspnav-0.2.2.orig/configure 2011-11-15 22:43:07.707324314 +0100
-+++ libspnav-0.2.2/configure 2011-11-15 22:47:19.586319890 +0100
+--- libspnav-0.2.2.orig/configure 2012-01-31 22:34:01.448356249 +0100
++++ libspnav-0.2.2/configure 2012-01-31 22:34:39.703355615 +0100
@@ -4,6 +4,7 @@ echo 'configuring spacenav library...'
PREFIX=/usr/local
@@ -51,23 +73,3 @@ diff -Npur libspnav-0.2.2.orig/configure libspnav-0.2.2/configure
fi
if [ "$X11" = 'yes' ]; then
-diff -Npur libspnav-0.2.2.orig/Makefile.in libspnav-0.2.2/Makefile.in
---- libspnav-0.2.2.orig/Makefile.in 2011-11-15 22:43:07.707324314 +0100
-+++ libspnav-0.2.2/Makefile.in 2011-11-15 22:48:26.329318720 +0100
-@@ -8,6 +8,7 @@ lib_so = $(soname).1
- CC = gcc
- AR = ar
- CFLAGS = $(opt) $(dbg) -std=c89 -fpic -pedantic -Wall -fno-strict-aliasing -I.
-+LDFLAGS = $(ldopt) -shared -Wl,-soname,$(soname)
-
- .PHONY: all
- all: $(lib_a) $(lib_so)
-@@ -16,7 +17,7 @@ $(lib_a): $(obj)
- $(AR) rcs $@ $(obj)
-
- $(lib_so): $(obj)
-- $(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
-+ $(CC) $(LDFLAGS) -o $@ $(obj)
-
- %.o: $(srcdir)/%.c
- $(CC) $(CFLAGS) -c $< -o $@
diff --git a/media-libs/libspnav/files/libspnav-0.2.2-makefile.patch b/media-libs/libspnav/files/libspnav-0.2.2-makefile.patch
index cb67ffa..f65300c 100644
--- a/media-libs/libspnav/files/libspnav-0.2.2-makefile.patch
+++ b/media-libs/libspnav/files/libspnav-0.2.2-makefile.patch
@@ -1,14 +1,25 @@
---- Makefile.in
-+++ Makefile.in
-@@ -31,9 +31,10 @@
+diff -Npur libspnav-0.2.2.orig/Makefile.in libspnav-0.2.2/Makefile.in
+--- libspnav-0.2.2.orig/Makefile.in 2012-01-31 22:40:36.619349333 +0100
++++ libspnav-0.2.2/Makefile.in 2012-01-31 22:41:52.554347975 +0100
+@@ -11,7 +11,7 @@ CFLAGS = $(opt) -I.
+ LDFLAGS = $(ldopt) -shared -Wl,-soname,$(soname)
+
+ .PHONY: all
+-all: $(lib_a) $(lib_so)
++all: $(lib_so)
+
+ $(lib_a): $(obj)
+ $(AR) rcs $@ $(obj)
+@@ -31,10 +31,10 @@ distclean:
+ rm -f $(obj) $(lib_a) $(lib_so) Makefile
.PHONY: install
- install: $(lib_a) $(lib_so)
+-install: $(lib_a) $(lib_so)
- cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
- cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
- for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
++install: $(lib_so)
+ mkdir -p $(DESTDIR)$(PREFIX)/$(libdir) $(DESTDIR)$(PREFIX)/include
-+ cp $(lib_a) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_a)
+ cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
+ for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done
diff --git a/media-libs/libspnav/libspnav-0.2.2.ebuild b/media-libs/libspnav/libspnav-0.2.2.ebuild
index 9949aa8..8835ee0 100644
--- a/media-libs/libspnav/libspnav-0.2.2.ebuild
+++ b/media-libs/libspnav/libspnav-0.2.2.ebuild
@@ -4,7 +4,7 @@
EAPI="4"
-inherit eutils
+inherit eutils toolchain-funcs
DESCRIPTION="The libspnav provides a replacement of the magellan library with cleaner and more orthogonal API."
HOMEPAGE="http://spacenav.sourceforge.net/"
@@ -27,3 +27,7 @@ src_configure() {
--enable-opt --enable-ldopt \
$(use_enable X x11)
}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
diff --git a/sys-libs/spacenavd/Manifest b/sys-libs/spacenavd/Manifest
index a9b3f1f..fbb0f46 100644
--- a/sys-libs/spacenavd/Manifest
+++ b/sys-libs/spacenavd/Manifest
@@ -1,8 +1,8 @@
-AUX spacenavd-0.5-custom-flags.patch 1952 RMD160 bd945358bc6c3f582df3f8d2ac1d7be7ba779337 SHA1 058237d123d55fee541aaae464ec0c47520a8638 SHA256 753cddd71bdad3ecc40b382c0a02306a714e321dc8ff1a8a378bdcac006bbe22
+AUX spacenavd-0.5-custom-flags.patch 2008 RMD160 c665becac1ff1b31eec94fe3ef70b98f851a2488 SHA1 79909d72d9da7ff0af369685869bb6709edadc90 SHA256 78c8aebbd33f0c135501e6dea132c4f6edd9068bfddf741bfc8fe11d5269f546
AUX spacenavd-0.5-destdir.patch 649 RMD160 3ffb705f3a0a2a940e4e4a9c3d34c3ede6c95f33 SHA1 8a946d85a1d8d454579e635c2248bc17dc1a399d SHA256 df58f5006d3b1be15a40182ca91ea964d62572a6e0a47b05c037958674db5366
AUX spnavd 579 RMD160 13e324d36ffb8900eb672492b7d8e10ae6a6c718 SHA1 dbef423d85a95f9fc329cfa379256a7331bdd7ac SHA256 2ad811c9c2de7ffa054e22a3d1a8c597b0a1cdc9fda719a7cc94a4fd8ca7ad42
DIST spacenavd-0.5.tar.gz 41746 RMD160 7b455d4cd96074707e671103e45cd0a5423cafc3 SHA1 76438d6fce981337b272210311124fe711606235 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3
-EBUILD spacenavd-0.5-r1.ebuild 1588 RMD160 b25a902dc28eb2a96ae86794ee30bdd437c30c86 SHA1 7434ed029c31cd8bf0ce2817b2334681e8ea9e74 SHA256 483d639e1fae419252f544a3e16dc6c17bcccf28f4b1500d9288ce4dd3776738
+EBUILD spacenavd-0.5-r1.ebuild 1604 RMD160 2b1dc94f6fb238b220d89b62f113203784294ef3 SHA1 d81bd364191d58e9290d3b547bf129fb984a68fd SHA256 f79cc6772d8d9b1201881e7470c65b9d40b5e3c368d1d8255c87107ae2004ff7
EBUILD spacenavd-0.5.ebuild 1594 RMD160 fbd2872cd45c6194d4ac30b8375ad879b187a5d9 SHA1 39849f999add92b5093a562cad7a55ecced39112 SHA256 37552d30d3d46827977c4862bfe0ae06ba2472dbfe77bbd1ee2a5770e01bcef3
MISC ChangeLog 532 RMD160 40283a589c74966036c94ff1001670e500932c2e SHA1 2dd00fcc3cbaddae1407c4701c70ac3297ca48c3 SHA256 9c4a842847ca2907189d23efe3a0442ec9d909d8d48d447604e68d7b79c70f4a
MISC metadata.xml 781 RMD160 53424577bb5817179fb8c23bcaafc91f62e38757 SHA1 15f130ab23ac2f9247a2cbdf6bb1e198d2347236 SHA256 5e7443c84a89d8f0785806728817cbe8d33f37b8221e8307e6365a6daaf18600
diff --git a/sys-libs/spacenavd/files/spacenavd-0.5-custom-flags.patch b/sys-libs/spacenavd/files/spacenavd-0.5-custom-flags.patch
index 65896e6..3b834a4 100644
--- a/sys-libs/spacenavd/files/spacenavd-0.5-custom-flags.patch
+++ b/sys-libs/spacenavd/files/spacenavd-0.5-custom-flags.patch
@@ -1,6 +1,20 @@
+diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
+--- spacenavd-0.5.orig/Makefile.in 2012-01-31 22:22:20.460368687 +0100
++++ spacenavd-0.5/Makefile.in 2012-01-31 22:23:18.170367675 +0100
+@@ -6,8 +6,8 @@ ctl = spnavd_ctl
+
+ CC = gcc
+ INSTALL = install
+-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src
+-LDFLAGS = $(xlib)
++CFLAGS = $(opt) -fno-strict-aliasing -I$(srcdir)/src
++LDFLAGS = $(ldopt) $(xlib)
+
+ $(bin): $(obj)
+ $(CC) -o $@ $(obj) $(LDFLAGS)
diff -Npur spacenavd-0.5.orig/configure spacenavd-0.5/configure
---- spacenavd-0.5.orig/configure 2011-11-16 21:43:53.210859753 +0100
-+++ spacenavd-0.5/configure 2011-11-16 21:49:45.008853534 +0100
+--- spacenavd-0.5.orig/configure 2012-01-31 22:22:20.460368687 +0100
++++ spacenavd-0.5/configure 2012-01-31 22:22:49.257368187 +0100
@@ -28,6 +28,7 @@ test_kver() {
PREFIX=/usr/local
@@ -51,15 +65,3 @@ diff -Npur spacenavd-0.5.orig/configure spacenavd-0.5/configure
fi
if [ "$X11" = 'yes' ]; then
-diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
---- spacenavd-0.5.orig/Makefile.in 2011-11-16 21:43:53.210859753 +0100
-+++ spacenavd-0.5/Makefile.in 2011-11-16 21:50:27.842852776 +0100
-@@ -7,7 +7,7 @@ ctl = spnavd_ctl
- CC = gcc
- INSTALL = install
- CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src
--LDFLAGS = $(xlib)
-+LDFLAGS = $(ldopt) $(xlib)
-
- $(bin): $(obj)
- $(CC) -o $@ $(obj) $(LDFLAGS)
diff --git a/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild b/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild
index 2f14171..c4cee5d 100644
--- a/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild
+++ b/sys-libs/spacenavd/spacenavd-0.5-r1.ebuild
@@ -4,7 +4,7 @@
EAPI="4"
-inherit eutils linux-info
+inherit eutils linux-info toolchain-funcs
DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon."
HOMEPAGE="http://spacenav.sourceforge.net/"
@@ -33,6 +33,10 @@ src_configure() {
$(use_enable X x11)
}
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
src_install() {
# Config file
insinto /etc
diff --git a/x11-misc/spnavcfg/Manifest b/x11-misc/spnavcfg/Manifest
index c893c51..a5abc95 100644
--- a/x11-misc/spnavcfg/Manifest
+++ b/x11-misc/spnavcfg/Manifest
@@ -1,6 +1,6 @@
-AUX spnavcfg-0.2.1-custom-flags.patch 1368 RMD160 bddedeb35e6907728462c909fbd4e024a6505375 SHA1 04a39aaf85c576f58ad488231ad783fdae8e818e SHA256 4745249131b85b5d3c5e1a5bd8a95ff696d461ca454819abe6c916f76f50140d
+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 551 RMD160 f623ade9542b1cc9b483e313f82fa622a507154f SHA1 823f6b657213b2c366b8e0df282db41f2911878d SHA256 0ce8c19cd87beb842c53441924377e308218f96512cf6931b49c70767b71f884
+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 784 RMD160 29512d6264dbf176bf3da0c6a01d0e42be593f7b SHA1 7a1c1a7a1cba7de0ae84d16406f99b469fb90538 SHA256 0e911f5a27adbb3e7766fe3f7700692836dc0d6e3345281a8bbeb063e3f3d341
+EBUILD spnavcfg-0.2.1.ebuild 863 RMD160 9a2b5bbd6b2cf6a6eb35dbd5fc6b354ee90b420a SHA1 59db0833834d57b3c2cbba3e28d463804c544fb3 SHA256 e69c75617c7e39ac74359de539e0af2cfb0d9f35508c66b20b17f441c5dc6c8a
MISC metadata.xml 452 RMD160 adc1bb571f2ac1b430206154239dbdd76a9e90de SHA1 b8fdae4cf71747f2a7f615c58e2145a914e3ec3d SHA256 3b37a70b2fd497730c5f18d65adc6e6a711058f4a13e794ae990205d60146eac
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
index 94b046b..5e4c788 100644
--- a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch
+++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch
@@ -1,20 +1,20 @@
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:52:29.982219716 +0100
-+++ spnavcfg-0.2.1/Makefile.in 2012-01-24 20:06:07.528205248 +0100
+--- 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 = -pedantic $(warn) $(dbg) $(opt) $(user_cflags) `pkg-config --cflags 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-24 19:52:29.982219716 +0100
-+++ spnavcfg-0.2.1/configure 2012-01-24 20:03:17.079208262 +0100
+--- 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"
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
index eee6775..7294013 100644
--- a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch
+++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-x11-libs.patch
@@ -1,10 +1,10 @@
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 21:14:55.115132278 +0100
-+++ spnavcfg-0.2.1/Makefile.in 2012-01-24 21:15:07.796132054 +0100
+--- 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
+ CC = gcc
INSTALL = install
- CFLAGS = -pedantic $(warn) $(dbg) $(opt) $(user_cflags) `pkg-config --cflags gtk+-2.0`
+ 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
diff --git a/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild b/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild
index e6ddacf..3702967 100644
--- a/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild
+++ b/x11-misc/spnavcfg/spnavcfg-0.2.1.ebuild
@@ -4,7 +4,7 @@
EAPI="3"
-inherit eutils
+inherit eutils toolchain-funcs
DESCRIPTION="GTK-based GUI to configure a space navigator device"
HOMEPAGE="http://spacenav.sourceforge.net/"
@@ -27,6 +27,10 @@ src_prepare() {
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