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 9FCBF158451 for ; Tue, 9 Jan 2024 12:03:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6523EE2A77; Tue, 9 Jan 2024 12:03:37 +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 48F81E2A77 for ; Tue, 9 Jan 2024 12:03:37 +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 2C2FC34333D for ; Tue, 9 Jan 2024 12:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E39F1437 for ; Tue, 9 Jan 2024 12:03:34 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1704726712.470e5514e9841e359d1587a881e573b3fbaa88f3.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/xmake/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/xmake/xmake-9999.ebuild X-VCS-Directories: dev-util/xmake/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 470e5514e9841e359d1587a881e573b3fbaa88f3 X-VCS-Branch: master Date: Tue, 9 Jan 2024 12:03:34 +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: 6faf3e01-fa2e-4e6b-965a-32deee6e7a52 X-Archives-Hash: 2ffad44ed53ba384d21868ae2dad00ac commit: 470e5514e9841e359d1587a881e573b3fbaa88f3 Author: Takuya Wakazono gmail com> AuthorDate: Mon Jan 8 15:11:52 2024 +0000 Commit: David Roman gmail com> CommitDate: Mon Jan 8 15:11:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=470e5514 dev-util/xmake: sync live Signed-off-by: Takuya Wakazono gmail.com> dev-util/xmake/xmake-9999.ebuild | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/dev-util/xmake/xmake-9999.ebuild b/dev-util/xmake/xmake-9999.ebuild index e02d4fa7a5..28e4782756 100644 --- a/dev-util/xmake/xmake-9999.ebuild +++ b/dev-util/xmake/xmake-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit optfeature +inherit bash-completion-r1 optfeature DESCRIPTION="A cross-platform build utility based on Lua" HOMEPAGE="https://xmake.io" @@ -17,7 +17,7 @@ else fi # tarball doesn't provide tests -RESTRICT="test strip" +RESTRICT="test" LICENSE="Apache-2.0" SLOT="0" @@ -38,13 +38,35 @@ DOCS=( NOTICE.md README.md README_zh.md ) -src_configure(){ +src_prepare() { + default + + # Don't strip binaries + sed -i 's/"-s"/""/' configure || die +} + +src_configure() { econf --prefix="${EPREFIX}"/usr \ --plat=linux # --plat=linux is necessary, which enables correct directory: # build/linux/ARCH other than build/ARCH/ARCH } +src_install() { + default + + doman scripts/man/* + + newbashcomp xmake/scripts/completions/register-completions.bash xmake + bashcomp_alias xmake xrepo + + insinto /usr/share/zsh/site-functions + newins xmake/scripts/completions/register-completions.zsh xmake.zsh + + insinto /usr/share/fish/vendor_completions.d + newins xmake/scripts/completions/register-completions.fish xmake.fish +} + pkg_postinst() { optfeature "cached compilation for your xmake projects" dev-util/ccache }