summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-08-04 21:56:06 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-08-04 22:37:04 -0700
commit22c967dd34152774e7a1278d75553a01677d42c6 (patch)
tree3270745b2d78e46ce758a01e4e11fa0b22012105 /virtual/rust
parentdev-lang/rust: add 1.54.0 (diff)
downloadgentoo-22c967dd34152774e7a1278d75553a01677d42c6.tar.gz
gentoo-22c967dd34152774e7a1278d75553a01677d42c6.tar.bz2
gentoo-22c967dd34152774e7a1278d75553a01677d42c6.zip
virtual/rust: add 1.54.0
add USE=rustfmt, for deps Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'virtual/rust')
-rw-r--r--virtual/rust/metadata.xml3
-rw-r--r--virtual/rust/rust-1.54.0.ebuild19
2 files changed, 22 insertions, 0 deletions
diff --git a/virtual/rust/metadata.xml b/virtual/rust/metadata.xml
index 50012e64c207..203f8b542713 100644
--- a/virtual/rust/metadata.xml
+++ b/virtual/rust/metadata.xml
@@ -5,5 +5,8 @@
<email>rust@gentoo.org</email>
<name>Rust Project</name>
</maintainer>
+ <use>
+ <flag name="rustfmt">Install rustfmt, Rust code formatter</flag>
+ </use>
<stabilize-allarches/>
</pkgmetadata>
diff --git a/virtual/rust/rust-1.54.0.ebuild b/virtual/rust/rust-1.54.0.ebuild
new file mode 100644
index 000000000000..f9d87cdb210c
--- /dev/null
+++ b/virtual/rust/rust-1.54.0.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-build
+
+DESCRIPTION="Virtual for Rust language compiler"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="rustfmt"
+
+BDEPEND=""
+RDEPEND="|| (
+ ~dev-lang/rust-${PV}[rustfmt?,${MULTILIB_USEDEP}]
+ ~dev-lang/rust-bin-${PV}[rustfmt?,${MULTILIB_USEDEP}]
+)"