summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2024-03-25 10:52:44 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2024-03-25 10:52:44 +0800
commit64896984557c9e6e864dfd776e1b3138bc7ba361 (patch)
tree1211ecf1916d0818cf5c14ee23fa717a5b9b770d /net-misc
parentfix typo (diff)
downloadpigfoot-64896984557c9e6e864dfd776e1b3138bc7ba361.tar.gz
pigfoot-64896984557c9e6e864dfd776e1b3138bc7ba361.tar.bz2
pigfoot-64896984557c9e6e864dfd776e1b3138bc7ba361.zip
refine rust ebuild
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/xh/xh-0.21.0.ebuild16
-rw-r--r--net-misc/xh/xh-9999.ebuild18
2 files changed, 23 insertions, 11 deletions
diff --git a/net-misc/xh/xh-0.21.0.ebuild b/net-misc/xh/xh-0.21.0.ebuild
index c684e67..a9b01f8 100644
--- a/net-misc/xh/xh-0.21.0.ebuild
+++ b/net-misc/xh/xh-0.21.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -266,14 +266,16 @@ inherit cargo
DESCRIPTION="Friendly and fast tool for sending HTTP requests"
HOMEPAGE="https://github.com/ducaale/xh"
+GITHUB_USER=ducaale
+GITHUB_REPO=${PN}
if [[ ${PV} == *9999 ]]; then
- EGIT_REPO_URI="https://github.com/ducaale/${PN}"
+ EGIT_REPO_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}"
inherit git-r3
else
- [[ ${PV} == *_pre???????? ]] && COMMIT="0e4a87baf18652bb982df3fd2362fad0596ad12d"
+ [[ ${PV} == *_pre???????? ]] && COMMIT=""
- SRC_URI="https://github.com/ducaale/${PN}/archive/${COMMIT:-v${PV}}.tar.gz -> ${P}.tar.gz
+ SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/${COMMIT:-v${PV}}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
S="${WORKDIR}/${PN}-${COMMIT:-${PV}}"
KEYWORDS="amd64 x86 arm arm64 ~ppc64 ~riscv"
@@ -305,8 +307,12 @@ src_configure() {
cargo_src_configure --no-default-features
}
+src_compile() {
+ cargo_src_compile --bin=${PN}
+}
+
src_install() {
- cargo_src_install
+ cargo_src_install --bin=${PN}
dosym /usr/bin/"${PN}" /usr/bin/"${PN}s"
}
diff --git a/net-misc/xh/xh-9999.ebuild b/net-misc/xh/xh-9999.ebuild
index c274591..e530ce6 100644
--- a/net-misc/xh/xh-9999.ebuild
+++ b/net-misc/xh/xh-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,14 +11,16 @@ inherit cargo
DESCRIPTION="Friendly and fast tool for sending HTTP requests"
HOMEPAGE="https://github.com/ducaale/xh"
+GITHUB_USER=ducaale
+GITHUB_REPO=${PN}
if [[ ${PV} == *9999 ]]; then
- EGIT_REPO_URI="https://github.com/ducaale/${PN}"
+ EGIT_REPO_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}"
inherit git-r3
else
- [[ ${PV} == *_pre???????? ]] && COMMIT="0e4a87baf18652bb982df3fd2362fad0596ad12d"
+ [[ ${PV} == *_pre???????? ]] && COMMIT=""
- SRC_URI="https://github.com/ducaale/${PN}/archive/${COMMIT:-v${PV}}.tar.gz -> ${P}.tar.gz
+ SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/${COMMIT:-v${PV}}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
S="${WORKDIR}/${PN}-${COMMIT:-${PV}}"
KEYWORDS="amd64 x86 arm arm64 ~ppc64 ~riscv"
@@ -26,7 +28,7 @@ fi
LICENSE="MIT"
# Dependent crate licenses
-LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
+LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 ISC MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
RESTRICT="mirror"
IUSE="+rustls"
@@ -50,8 +52,12 @@ src_configure() {
cargo_src_configure --no-default-features
}
+src_compile() {
+ cargo_src_compile --bin=${PN}
+}
+
src_install() {
- cargo_src_install
+ cargo_src_install --bin=${PN}
dosym /usr/bin/"${PN}" /usr/bin/"${PN}s"
}