public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Takuya Wakazono" <pastalian46@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/xmake/
Date: Mon,  8 Jan 2024 15:12:25 +0000 (UTC)	[thread overview]
Message-ID: <1704726712.470e5514e9841e359d1587a881e573b3fbaa88f3.pastalian46@gentoo> (raw)

commit:     470e5514e9841e359d1587a881e573b3fbaa88f3
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Mon Jan  8 15:11:52 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> 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 <pastalian46 <AT> 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
 }


             reply	other threads:[~2024-01-08 15:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-08 15:12 Takuya Wakazono [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-12  9:55 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/xmake/ Takuya Wakazono
2024-03-12  9:55 Takuya Wakazono
2024-01-09 12:27 Takuya Wakazono
2024-01-08 15:12 Takuya Wakazono
2023-06-02  7:54 Zhang Zheng
2023-04-22  5:13 Zhang Zheng
2023-04-01 12:19 Zhang Zheng
2023-03-23 15:33 Zhang Zheng
2023-03-20 11:26 Zhang Zheng
2022-08-26 13:18 YingChi Long
2022-08-26 13:05 YingChi Long
2022-08-26 12:52 YingChi Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1704726712.470e5514e9841e359d1587a881e573b3fbaa88f3.pastalian46@gentoo \
    --to=pastalian46@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox