diff options
Diffstat (limited to 'net-misc/xh/xh-0.19.1_pre20231009.ebuild')
-rw-r--r-- | net-misc/xh/xh-0.19.1_pre20231009.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net-misc/xh/xh-0.19.1_pre20231009.ebuild b/net-misc/xh/xh-0.19.1_pre20231009.ebuild index a908501..02f03ce 100644 --- a/net-misc/xh/xh-0.19.1_pre20231009.ebuild +++ b/net-misc/xh/xh-0.19.1_pre20231009.ebuild @@ -279,15 +279,29 @@ LICENSE="MIT" LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016" SLOT="0" RESTRICT="mirror" +IUSE="+rustls" QA_FLAGS_IGNORED="usr/bin/${PN}" src_unpack() { if [[ ${PV} == *9999* ]]; then git-r3_src_unpack - rm -f "${S}"/Cargo.lock cargo_live_src_unpack else cargo_src_unpack fi } + +src_configure() { + myfeatures=( + $(usex rustls rustls native-tls) + ) + + cargo_src_configure --no-default-features +} + +src_install() { + cargo_src_install + + dosym /usr/bin/"${PN}" /usr/bin/"s${PN}" +} |