From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7BE331581EE for ; Sun, 30 Mar 2025 15:47:15 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5B6B13431F8 for ; Sun, 30 Mar 2025 15:47:15 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 50C221104B0; Sun, 30 Mar 2025 15:47:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 434431104B0 for ; Sun, 30 Mar 2025 15:47:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8379343060 for ; Sun, 30 Mar 2025 15:47:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D8FE1936 for ; Sun, 30 Mar 2025 15:47:12 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1743349604.a43c6e52322440fa7fdf0344f36611ab8454465b.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libspnav/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libspnav/Manifest dev-libs/libspnav/libspnav-1.2.ebuild X-VCS-Directories: dev-libs/libspnav/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: a43c6e52322440fa7fdf0344f36611ab8454465b X-VCS-Branch: master Date: Sun, 30 Mar 2025 15:47:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4b64f848-7154-4ed6-9a5f-0904034598f7 X-Archives-Hash: 648014e4932240de70b696bdc97e5e75 commit: a43c6e52322440fa7fdf0344f36611ab8454465b Author: Sebastian Pipping gentoo org> AuthorDate: Sun Mar 30 15:46:10 2025 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun Mar 30 15:46:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a43c6e52 dev-libs/libspnav: 1.2 Signed-off-by: Sebastian Pipping gentoo.org> dev-libs/libspnav/Manifest | 1 + dev-libs/libspnav/libspnav-1.2.ebuild | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-libs/libspnav/Manifest b/dev-libs/libspnav/Manifest index 43aa058b361d..025aa27d7c27 100644 --- a/dev-libs/libspnav/Manifest +++ b/dev-libs/libspnav/Manifest @@ -1 +1,2 @@ DIST libspnav-1.1.tar.gz 31574 BLAKE2B 3c15ead61a6eb61da6eb4d072f09b1eb410b441d622d18efe2b70754efcb5de3fd1d2e707fe162d62fb5246e1f8f1313d80ff8765edad6626760e1e2c7283191 SHA512 94770d9449dd02ade041d3589bcae7664fa990c4a4feca7b2b1e6542b65aa7073305595310b9e639f10716cf15aaad913e57496fb79bdd4dba5bf703ec8299ab +DIST libspnav-1.2.tar.gz 33000 BLAKE2B ab370da0fedb37f2714735ed61419a6b27d2b6b6139c2c88487eb9ddf9bbc6e9af83a953057678cdfaac1eac581a9b7f58cb8512a518cc3b74eb201db8a95057 SHA512 b2df64305ae0211872d85e1b1d6485018ef7cfe76e69bedad16e612608b2c5c8b12b948b502a3f40291c2c0b20e130c76fee582e7af8af4393c8bc1b7651d0d9 diff --git a/dev-libs/libspnav/libspnav-1.2.ebuild b/dev-libs/libspnav/libspnav-1.2.ebuild new file mode 100644 index 000000000000..4334003ef07f --- /dev/null +++ b/dev-libs/libspnav/libspnav-1.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 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 +}