Skip to content

Commit

Permalink
[net-misc/xh] refine ebuild
Browse files Browse the repository at this point in the history
Signed-off-by: Chen, Chih-Chia <[email protected]>
  • Loading branch information
pigfoot committed Oct 19, 2023
1 parent 3a9f186 commit 12ead36
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
16 changes: 15 additions & 1 deletion net-misc/xh/xh-0.18.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,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}"
}
16 changes: 15 additions & 1 deletion net-misc/xh/xh-0.19.1_pre20231009.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
16 changes: 15 additions & 1 deletion net-misc/xh/xh-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,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}"
}

0 comments on commit 12ead36

Please sign in to comment.