diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-04-17 18:03:53 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-04-17 18:23:22 -0700 |
commit | 6287b48604097fe3369bd845ad931f4261ff6354 (patch) | |
tree | 57105e3929358f226e38cf9b12ab4c7b17fba452 /dev-util/rustup | |
parent | dev-util/rustup: bump to 1.23.1 (diff) | |
download | gentoo-6287b48604097fe3369bd845ad931f4261ff6354.tar.gz gentoo-6287b48604097fe3369bd845ad931f4261ff6354.tar.bz2 gentoo-6287b48604097fe3369bd845ad931f4261ff6354.zip |
dev-util/rustup: use sed in src_prepare
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util/rustup')
-rw-r--r-- | dev-util/rustup/rustup-1.23.1.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-util/rustup/rustup-1.23.1.ebuild b/dev-util/rustup/rustup-1.23.1.ebuild index 2e5a86e95256..38bf4b1514cf 100644 --- a/dev-util/rustup/rustup-1.23.1.ebuild +++ b/dev-util/rustup/rustup-1.23.1.ebuild @@ -313,14 +313,19 @@ src_unpack() { cargo_live_src_unpack else cargo_src_unpack - # patch git dep to use pre-fetched tarball - #echo "" >> "${P}/Cargo.toml" - #echo '[patch."https://github.com/rbtcollins/home"]' >> "${P}/Cargo.toml" - local home_path="home = { path = '"${WORKDIR}/home-${HOME_COMMIT}"' }" - sed -i "s@^home =.*@${home_path}@" "${P}/Cargo.toml" || die fi } +src_prepare() { + # patch git dep to use pre-fetched tarball + #echo "" >> "${P}/Cargo.toml" + #echo '[patch."https://github.com/rbtcollins/home"]' >> "${P}/Cargo.toml" + local home_path="home = { path = '"${WORKDIR}/home-${HOME_COMMIT}"' }" + sed -i "s@^home =.*@${home_path}@" "${P}/Cargo.toml" || die + + default +} + src_configure() { local myfeatures=( no-self-update ) cargo_src_configure |