summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2019-07-07 22:09:38 +0200
committerSebastian Pipping <sping@gentoo.org>2019-07-07 22:10:45 +0200
commitdf665256c6c6dc40b13b9407a578e1252fbc4e98 (patch)
tree5ffec5e43f2d27c976387644bf24cdb327126ebb /dev-libs/libspnav
parentdev-ada/langkit: fix dependency and try to respect -j1 (diff)
downloadgentoo-df665256c6c6dc40b13b9407a578e1252fbc4e98.tar.gz
gentoo-df665256c6c6dc40b13b9407a578e1252fbc4e98.tar.bz2
gentoo-df665256c6c6dc40b13b9407a578e1252fbc4e98.zip
dev-libs/libspnav: 0.2.3 + EAPI 7
Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.68, Repoman-2.3.16
Diffstat (limited to 'dev-libs/libspnav')
-rw-r--r--dev-libs/libspnav/Manifest1
-rw-r--r--dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch39
-rw-r--r--dev-libs/libspnav/libspnav-0.2.3.ebuild46
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/libspnav/Manifest b/dev-libs/libspnav/Manifest
index a644be871bbb..ef7e5fa932f3 100644
--- a/dev-libs/libspnav/Manifest
+++ b/dev-libs/libspnav/Manifest
@@ -1 +1,2 @@
DIST libspnav-0.2.2.tar.gz 11615 BLAKE2B 470a533d9ae58b37cd1c1603381bfd3a3bca79b2fe15a81464727e2543433df2fdf32b8683464ade9aa9670f3c9af1ffddde58299678d89d977577ed324f1ebf SHA512 78b26e6fe4a98af579738743ac4bc2f1de5ccfa9316a103a58ebb935f281fba04b8c6c28c0d63abda15a52c0288e371231425a3a21b26c083a5de7ab101f1940
+DIST libspnav-0.2.3.tar.gz 11985 BLAKE2B 134a0c3f7c9a7ef7c4f68910e0266880958e2b74e253b75237b0fa8d3e482bcd1f42e715b85f0ffca3a62103530e854090818564d9c241bfc55de039cc4883ee SHA512 b2c452d979d455fc99bfdc172c8a2408a6e8dc40acc52964fa64f4d75a8ee77dda12e5e212c0c4e07a0a24d055f16f85bb6ce6287e24e6bd0665de457e37e6a7
diff --git a/dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch b/dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch
new file mode 100644
index 000000000000..6fbd73debcbf
--- /dev/null
+++ b/dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch
@@ -0,0 +1,39 @@
+From 7b988445b29b2bffb0714ad419c9b6dd90baccd2 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 7 Jul 2019 21:51:44 +0200
+Subject: [PATCH] Makefile.in: Ignore /usr/local/ + fix .so symlink creation
+
+---
+ Makefile.in | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 7abe595..39714f8 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -5,8 +5,8 @@ hdr = spnav.h spnav_magellan.h spnav_config.h
+ name = spnav
+ lib_a = lib$(name).a
+
+-incpaths = -I. -I/usr/local/include -I/usr/X11R6/include
+-libpaths = -L/usr/local/lib -L/usr/X11R6/lib
++incpaths = -I.
++libpaths =
+
+ CC = gcc
+ AR = ar
+@@ -54,9 +54,8 @@ install: $(lib_a) $(lib_so)
+ cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
+ [ -n "$(soname)" ] && \
+ rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink) && \
+- ln -s $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) && \
+- ln -s $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink) || \
+- true
++ ln -s "$(lib_so)" $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) && \
++ ln -s "$(lib_so)" $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink)
+ for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done
+
+ .PHONY: uninstall
+--
+2.21.0
+
diff --git a/dev-libs/libspnav/libspnav-0.2.3.ebuild b/dev-libs/libspnav/libspnav-0.2.3.ebuild
new file mode 100644
index 000000000000..0cde20cb7aa1
--- /dev/null
+++ b/dev-libs/libspnav/libspnav-0.2.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit multilib toolchain-funcs
+
+MY_PN='spacenav'
+DESCRIPTION="libspnav is a replacement for the magellan library with a cleaner API"
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20library%20%28SDK%29/${PN}%20${PV}/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X"
+
+CDEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="app-misc/spacenavd[X?]
+ ${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-makefile.patch
+ eapply_user
+}
+
+src_configure() {
+ local args=(
+ --disable-opt
+ --disable-debug
+ $(use_enable X x11)
+ )
+ econf "${args[@]}"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ local args=(
+ DESTDIR="${D}"
+ libdir="$(get_libdir)"
+ )
+ emake "${args[@]}" install
+}