commit:     a14cc98dc877ad60a0e9f7a25004c978a12bfe33
Author:     Wu, Zhenyu <wuzhenyu <AT> ustc <DOT> edu>
AuthorDate: Wed Nov  6 20:02:53 2024 +0000
Commit:     Wu Zhenyu <Wuzy01 <AT> qq <DOT> com>
CommitDate: Wed Nov  6 20:02:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a14cc98d

app-misc/tmux-rime: update DESCRIPTION

Signed-off-by: Wu, Zhenyu <wuzhenyu <AT> ustc.edu>

 app-misc/tmux-rime/tmux-rime-0.0.3.ebuild | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/app-misc/tmux-rime/tmux-rime-0.0.3.ebuild 
b/app-misc/tmux-rime/tmux-rime-0.0.3.ebuild
index 5d2649d25..3116112f6 100644
--- a/app-misc/tmux-rime/tmux-rime-0.0.3.ebuild
+++ b/app-misc/tmux-rime/tmux-rime-0.0.3.ebuild
@@ -3,10 +3,11 @@
 
 EAPI=8
 
-DESCRIPTION=""
+DESCRIPTION="rime for tmux"
 HOMEPAGE="https://github.com/Freed-Wu/$PN";
 
 _VERSION=9e39ee6a9c9a4c43192b95b7efcc95ea1c79a28d
+# xmake needs xmake-repo to map a package to a pkg-config file name
 SRC_URI="
                 $HOMEPAGE/archive/${PV}.tar.gz -> $P.tar.gz
                 
https://github.com/xmake-io/xmake-repo/archive/$_VERSION.tar.gz -> 
xmake-repo-$_VERSION.tar.gz
@@ -36,19 +37,21 @@ export XMAKE_ROOT=y
 src_configure() {
        # https://github.com/xmake-io/xmake/discussions/5699
        HOME=$T PATH=$T:$PATH
-       echo -e "#!$SHELL\necho I am git" >$T/git
-       chmod +x $T/git
-       install -d $HOME/.xmake/repositories
-       ln -sf "$WORKDIR/xmake-repo-$_VERSION" 
$HOME/.xmake/repositories/xmake-repo
-
-       xmake g --network=private
-       xmake f --verbose
+       # create a fake git to make xmake happy
+       echo -e "#!$SHELL\necho I am git" > $T/git || die
+       chmod +x $T/git || die
+       # put xmake-repo to a correct position
+       install -d $HOME/.xmake/repositories || die
+       ln -sf "$WORKDIR/xmake-repo-$_VERSION" 
$HOME/.xmake/repositories/xmake-repo || die
+
+       xmake g --network=private || die 'fail to set private network'
+       xmake f --verbose || die 'fail to increase verbosity'
 }
 
 src_compile() {
-       xmake
+       xmake || die 'fail to compile'
 }
 
 src_install() {
-       xmake install -o $ED/usr
+       xmake install -o $ED/usr || die 'fail to install'
 }

Reply via email to