mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
39
dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch
Normal file
39
dev-libs/libspnav/files/libspnav-0.2.3-makefile.patch
Normal file
@@ -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
|
||||
|
||||
46
dev-libs/libspnav/libspnav-0.2.3.ebuild
Normal file
46
dev-libs/libspnav/libspnav-0.2.3.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user