summaryrefslogtreecommitdiff
path: root/dev-libs/libspnav
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-15 21:34:37 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-15 21:34:37 +0000
commitda407288bb9fc771488c3fee13fc2f8561681e66 (patch)
treef424c3ecbe17ec2f2e75f726f6337bed848b2ccf /dev-libs/libspnav
parentdc0ab0fa29dee64ee586cc23ddd306c0ad9ae7dc (diff)
gentoo auto-resync : 15:12:2022 - 21:34:37
Diffstat (limited to 'dev-libs/libspnav')
-rw-r--r--dev-libs/libspnav/Manifest2
-rw-r--r--dev-libs/libspnav/libspnav-1.1.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/libspnav/Manifest b/dev-libs/libspnav/Manifest
index 2b8870d85bd1..f942ec436158 100644
--- a/dev-libs/libspnav/Manifest
+++ b/dev-libs/libspnav/Manifest
@@ -2,6 +2,8 @@ AUX libspnav-0.2.3-makefile.patch 1329 BLAKE2B 8eccfcfa539703437326b4800597dc7b6
AUX libspnav-1.0-no-xorg-compile.patch 1473 BLAKE2B 09848c7ec4e76d8a434b05a98728bcc3be652ddb65dfd2c290ce2dada50841b8ebe90cc127f3b63097e9edc8436086553e7a740d68e19faed836d688417dd416 SHA512 09528ae037ef05c02af1027b81896d7692b46703abfbe9708d4ad858f1deaa8d8891d7b8b7dd655117e64780a85c41a77385f4b5db2a67b5258041c4d1b35e95
DIST libspnav-0.2.3.tar.gz 11985 BLAKE2B 134a0c3f7c9a7ef7c4f68910e0266880958e2b74e253b75237b0fa8d3e482bcd1f42e715b85f0ffca3a62103530e854090818564d9c241bfc55de039cc4883ee SHA512 b2c452d979d455fc99bfdc172c8a2408a6e8dc40acc52964fa64f4d75a8ee77dda12e5e212c0c4e07a0a24d055f16f85bb6ce6287e24e6bd0665de457e37e6a7
DIST libspnav-1.0.tar.gz 31578 BLAKE2B 535cdf588b4b1de8f37f9239a48df10e755d004fbe6b5f3771b00bb2f9a8b36e7db30297a8a99ac689d890c08c728303af3d71c60c299574bf02476aa5724b11 SHA512 ae36ea51dbca7d5ba31d82ffaa46bad2bd877f5f7c077d2e711747427f6d60a000ab0c827ae6523ba6a275dbad205eea8c20520fe2575a6fa6b554ea8b5e0eaa
+DIST libspnav-1.1.tar.gz 31574 BLAKE2B 3c15ead61a6eb61da6eb4d072f09b1eb410b441d622d18efe2b70754efcb5de3fd1d2e707fe162d62fb5246e1f8f1313d80ff8765edad6626760e1e2c7283191 SHA512 94770d9449dd02ade041d3589bcae7664fa990c4a4feca7b2b1e6542b65aa7073305595310b9e639f10716cf15aaad913e57496fb79bdd4dba5bf703ec8299ab
EBUILD libspnav-0.2.3-r1.ebuild 1228 BLAKE2B 3ebb19e747735af2df2a4bd7e7f484ef45f2dc787fbea11085fc14728e9b3fa3127275e11c3195f208775678163caa6e53aa4ebe16044164f1cbfa296b7bc451 SHA512 d81c66fb8cb2651f44824f2d2a739e146aa700b83672dc4d5ea935f20fd6487fe6e06582faaa4798ae1f7a77854de02552d7155deb08bfef0976a922dc668ba8
EBUILD libspnav-1.0-r1.ebuild 1359 BLAKE2B 27c60afa4e05ecc15c343133d0514ecdfb17a5201c20aa49096975d6b5bcd61e568370eef1e0b2e670d146a53f00e5c59e1fa0d98b6f6ea5f9f6cc647b8b95e4 SHA512 4da4f15dcc9011bb35cbbed471b05169e3024d3ea1b7d05c9c49ea79e3bf9b758c164501d2749365560743fd4a2cef453b66cb076cb236ddbf01e11c81dfb938
+EBUILD libspnav-1.1.ebuild 1304 BLAKE2B 38e3eab295b96345ae2cb6a5e223904413e39f428275a8eac79e715a14bec5616b584b007e43583c290421ec1e87835dd15001a1c454639aedfe93bea64ef19e SHA512 2e734c9e2aad7f25c8bf7ec911ebe49143b9fb2ac5a414e3356d8f59761e87e213caf2681ca37e197ac4616d63e553cf010bc46676e08982adb8ce2de1fe4753
MISC metadata.xml 873 BLAKE2B 603274001842bc7c08e305c522e55446db42f062ec35a2b9489cf292f85ec41b412ffc5a439c1c7a8436e84eb6de8257ead0beb1d2691011c4e519a0635da4cc SHA512 df98aead602e905da722a8d1ca4c8ee77850f9c46ab6cc99661226a3e89f24c15593acf8251d8327ef97916ad71f4c755b4d086eac7e9c5d8fa82473bc484d67
diff --git a/dev-libs/libspnav/libspnav-1.1.ebuild b/dev-libs/libspnav/libspnav-1.1.ebuild
new file mode 100644
index 000000000000..921b6229777e
--- /dev/null
+++ b/dev-libs/libspnav/libspnav-1.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit 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="https://github.com/FreeSpacenav/libspnav/releases/download/v${PV}/libspnav-${PV}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="static-libs X"
+
+CDEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="app-misc/spacenavd[X?]
+ ${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+src_configure() {
+ local args=(
+ --disable-opt
+ --disable-debug
+ $(use_enable X x11)
+ )
+ econf "${args[@]}"
+
+ # https://bugs.gentoo.org/838349
+ sed "/^Libs:/ s,/lib,/$(get_libdir)," -i spnav.pc || die
+}
+
+src_compile() {
+ local args=(
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ incpaths=-I.
+ libpaths=
+ )
+ emake "${args[@]}"
+}
+
+src_install() {
+ local args=(
+ DESTDIR="${D}"
+ libdir="$(get_libdir)"
+ )
+ emake "${args[@]}" install
+
+ # The custom configure script does not support --disable-static
+ # and conditionally patching $(lib_a) out of Makefile.in does not
+ # seem like a very maintainable option, hence we delete the .a file
+ # after "make install", instead.
+ use static-libs || find "${D}" -type f -name \*.a -delete
+}