summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2019-12-22 21:30:33 -0600
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-26 17:59:29 -0800
commit43c2a717e665e94232f46379013706959207c51a (patch)
tree3d6af6c0ddb30b4965a991af9e2449d53ca2b4eb /x11-terms
parentdev-python/ipykernel: do not mangle the python call. (diff)
downloadgentoo-43c2a717e665e94232f46379013706959207c51a.tar.gz
gentoo-43c2a717e665e94232f46379013706959207c51a.tar.bz2
gentoo-43c2a717e665e94232f46379013706959207c51a.zip
eclass/cargo.eclass: specify --path . to install
cargo install has long required --path . for 2018 edition crates but not required it for 2015 edition crates. It is supported however for 2015 edition crates and works for all versions in the tree so it makes sense to make it the default. Added CARGO_INSTALL_PATH as an eclass variable allowing to override the default. Closes: https://bugs.gentoo.org/703590 Signed-off-by: Doug Goldstein <cardoe@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/14097 Tested-by: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/alacritty/alacritty-0.3.3-r1.ebuild4
-rw-r--r--x11-terms/alacritty/alacritty-0.4.0.ebuild4
-rw-r--r--x11-terms/alacritty/alacritty-9999.ebuild4
3 files changed, 9 insertions, 3 deletions
diff --git a/x11-terms/alacritty/alacritty-0.3.3-r1.ebuild b/x11-terms/alacritty/alacritty-0.3.3-r1.ebuild
index 71741cd37be7..20c79816962b 100644
--- a/x11-terms/alacritty/alacritty-0.3.3-r1.ebuild
+++ b/x11-terms/alacritty/alacritty-0.3.3-r1.ebuild
@@ -320,8 +320,10 @@ QA_FLAGS_IGNORED="usr/bin/alacritty"
S="${WORKDIR}/${PN}-${MY_PV}"
+CARGO_INSTALL_PATH="alacritty"
+
src_install() {
- cargo_src_install --path=alacritty
+ cargo_src_install
newbashcomp extra/completions/alacritty.bash alacritty
diff --git a/x11-terms/alacritty/alacritty-0.4.0.ebuild b/x11-terms/alacritty/alacritty-0.4.0.ebuild
index 15df72e2bccb..6fdd26ebf946 100644
--- a/x11-terms/alacritty/alacritty-0.4.0.ebuild
+++ b/x11-terms/alacritty/alacritty-0.4.0.ebuild
@@ -335,6 +335,8 @@ QA_FLAGS_IGNORED="usr/bin/alacritty"
S="${WORKDIR}/${PN}-${MY_PV}"
+CARGO_INSTALL_PATH="alacritty"
+
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
@@ -350,7 +352,7 @@ src_prepare() {
}
src_install() {
- cargo_src_install --path=alacritty --offline
+ cargo_src_install --offline
newbashcomp extra/completions/alacritty.bash alacritty
diff --git a/x11-terms/alacritty/alacritty-9999.ebuild b/x11-terms/alacritty/alacritty-9999.ebuild
index bf9813cb8fae..719e516f5db2 100644
--- a/x11-terms/alacritty/alacritty-9999.ebuild
+++ b/x11-terms/alacritty/alacritty-9999.ebuild
@@ -50,6 +50,8 @@ QA_FLAGS_IGNORED="usr/bin/alacritty"
S="${WORKDIR}/${PN}-${MY_PV}"
+CARGO_INSTALL_PATH="alacritty"
+
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
@@ -60,7 +62,7 @@ src_unpack() {
}
src_install() {
- cargo_src_install --path=alacritty --offline
+ cargo_src_install --offline
newbashcomp extra/completions/alacritty.bash alacritty