1 |
commit: 80e71bf4c7934789b0a31db9fae3f77bf53f3d19 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 13:25:27 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 13:27:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e71bf4 |
7 |
|
8 |
dev-libs/libspnav: 1.0 |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
|
13 |
dev-libs/libspnav/Manifest | 1 + |
14 |
dev-libs/libspnav/libspnav-1.0.ebuild | 53 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 54 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libspnav/Manifest b/dev-libs/libspnav/Manifest |
18 |
index 9cedbf01f446..9a841a93504b 100644 |
19 |
--- a/dev-libs/libspnav/Manifest |
20 |
+++ b/dev-libs/libspnav/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST libspnav-0.2.3.tar.gz 11985 BLAKE2B 134a0c3f7c9a7ef7c4f68910e0266880958e2b74e253b75237b0fa8d3e482bcd1f42e715b85f0ffca3a62103530e854090818564d9c241bfc55de039cc4883ee SHA512 b2c452d979d455fc99bfdc172c8a2408a6e8dc40acc52964fa64f4d75a8ee77dda12e5e212c0c4e07a0a24d055f16f85bb6ce6287e24e6bd0665de457e37e6a7 |
23 |
DIST libspnav-0.3.tar.gz 12386 BLAKE2B 6598e0eb3cb41c9e13f0cb62715cd199d2fff0903d8f62726fa82227f2aa49f4dc41083929cbdde18974dfb08c23947158b465bb552c12ea8c9f9fd754962c2b SHA512 1bd61c1ccda37af9b3eaeda6d8f269777f7d13b1c3d3ed4d194b917199bd232d79c9513bcdae6fce6c298ad8460c095a98e3cfd98ee76e1852fc0e93e478c252 |
24 |
+DIST libspnav-1.0.tar.gz 31578 BLAKE2B 535cdf588b4b1de8f37f9239a48df10e755d004fbe6b5f3771b00bb2f9a8b36e7db30297a8a99ac689d890c08c728303af3d71c60c299574bf02476aa5724b11 SHA512 ae36ea51dbca7d5ba31d82ffaa46bad2bd877f5f7c077d2e711747427f6d60a000ab0c827ae6523ba6a275dbad205eea8c20520fe2575a6fa6b554ea8b5e0eaa |
25 |
|
26 |
diff --git a/dev-libs/libspnav/libspnav-1.0.ebuild b/dev-libs/libspnav/libspnav-1.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..c4af54f4d64b |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libspnav/libspnav-1.0.ebuild |
31 |
@@ -0,0 +1,53 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+inherit toolchain-funcs |
38 |
+ |
39 |
+MY_PN='spacenav' |
40 |
+DESCRIPTION="libspnav is a replacement for the magellan library with a cleaner API" |
41 |
+HOMEPAGE="http://spacenav.sourceforge.net/" |
42 |
+SRC_URI="https://github.com/FreeSpacenav/libspnav/releases/download/v${PV}/libspnav-${PV}.tar.gz" |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
46 |
+IUSE="static-libs X" |
47 |
+ |
48 |
+CDEPEND="X? ( x11-libs/libX11 )" |
49 |
+RDEPEND="app-misc/spacenavd[X?] |
50 |
+ ${CDEPEND}" |
51 |
+DEPEND="${CDEPEND}" |
52 |
+ |
53 |
+src_configure() { |
54 |
+ local args=( |
55 |
+ --disable-opt |
56 |
+ --disable-debug |
57 |
+ $(use_enable X x11) |
58 |
+ ) |
59 |
+ econf "${args[@]}" |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ local args=( |
64 |
+ AR="$(tc-getAR)" |
65 |
+ CC="$(tc-getCC)" |
66 |
+ incpaths=-I. |
67 |
+ libpaths= |
68 |
+ ) |
69 |
+ emake "${args[@]}" |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ local args=( |
74 |
+ DESTDIR="${D}" |
75 |
+ libdir="$(get_libdir)" |
76 |
+ ) |
77 |
+ emake "${args[@]}" install |
78 |
+ |
79 |
+ # The custom configure script does not support --disable-static |
80 |
+ # and conditionally patching $(lib_a) out of Makefile.in does not |
81 |
+ # seem like a very maintainable option, hence we delete the .a file |
82 |
+ # after "make install", instead. |
83 |
+ use static-libs || find "${D}" -type f -name \*.a -delete |
84 |
+} |