app-eselect/eselect-rust: bump to v20200419
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 19 Apr 2020 01:28:01 +0000 (03:28 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 19 Apr 2020 01:29:08 +0000 (03:29 +0200)
Closes: https://bugs.gentoo.org/688864
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-eselect/eselect-rust/Manifest
app-eselect/eselect-rust/eselect-rust-20200419.ebuild [new file with mode: 0644]

index 96075d37c2962bfc60c4db2ba45121a4c755840e..43d8fd578db302c375489904d3708e7d525d95cd 100644 (file)
@@ -1 +1,2 @@
 DIST eselect-rust-20200101.tar.bz2 49740 BLAKE2B 4c1e767517e9f20002fac049a2ee23e47c52ccae9981316f7b7163f36a76e44dd516e7364100d1c4f5deb42dc5ddda94588639da06a71740d987bd163bc25e56 SHA512 836363e1c87b7f8e4e9c33b2cf6b8ba6846256630925676addec3d673a6e99965db19c42533de8aaf63d04713c3978f8ace73e5642071d80cd0e25a10b8cecb1
+DIST eselect-rust-20200419.tar.bz2 50278 BLAKE2B 5d5e773a0e0481403e1645cb5fdf642e1ce5d1819e9699a79fcaf822ff3e6f258b2d1958548e00df200d9aaf061be1d3b1773e6b0e92b498fe75316ac13ff235 SHA512 68db32df19864a8365e272946161966b9cb513d7403dd1df7a4c7d87fba3b8bfcad59b407dca7dd6c8e0756f2e5cbde367ade69629eaa78d019d2b524051f741
diff --git a/app-eselect/eselect-rust/eselect-rust-20200419.ebuild b/app-eselect/eselect-rust/eselect-rust-20200419.ebuild
new file mode 100644 (file)
index 0000000..353065b
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+if [[ ${PV} == "99999999" ]] ; then
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git"
+else
+       SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.bz2"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+fi
+
+DESCRIPTION="Eselect module for management of multiple Rust versions"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Rust"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND=">=app-admin/eselect-1.2.3"
+
+src_prepare() {
+       default
+       [[ ${PV} == "99999999" ]] && eautoreconf
+}
+
+pkg_postinst() {
+       if has_version 'dev-lang/rust' || has_version 'dev-lang/rust-bin'; then
+               eselect rust update --if-unset
+       fi
+}