From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B8BDB158020 for ; Thu, 15 Dec 2022 16:31:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EA12E07D8; Thu, 15 Dec 2022 16:31:33 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6916E07D8 for ; Thu, 15 Dec 2022 16:31:32 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2DD833DDA5 for ; Thu, 15 Dec 2022 16:31:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 620F654C for ; Thu, 15 Dec 2022 16:31:30 +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: <1671121820.de477b78f41b05352a7e890ac673e5c66a454d71.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.1.ebuild X-VCS-Directories: dev-libs/libspnav/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: de477b78f41b05352a7e890ac673e5c66a454d71 X-VCS-Branch: master Date: Thu, 15 Dec 2022 16:31:30 +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: f323fa78-78b1-4fb9-aeb2-a5ab8f18b05d X-Archives-Hash: 41f4b775074b85e12e902d9a7a39811f commit: de477b78f41b05352a7e890ac673e5c66a454d71 Author: Sebastian Pipping gentoo org> AuthorDate: Thu Dec 15 16:12:37 2022 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu Dec 15 16:30:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de477b78 dev-libs/libspnav: 1.1 + EAPI 8 Signed-off-by: Sebastian Pipping gentoo.org> dev-libs/libspnav/Manifest | 1 + dev-libs/libspnav/libspnav-1.1.ebuild | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-libs/libspnav/Manifest b/dev-libs/libspnav/Manifest index a3845adba141..7676f5fda986 100644 --- a/dev-libs/libspnav/Manifest +++ b/dev-libs/libspnav/Manifest @@ -1,2 +1,3 @@ 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 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 +}