aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <jauhien@gentoo.org>2014-08-19 23:48:30 +0200
committerJauhien Piatlicki <jauhien@gentoo.org>2014-08-19 23:48:30 +0200
commit7d7b71f50f22fdbbea3ce267f7a35f686a400abb (patch)
tree9ff9ac6fa5b87aabe1bb013613f7a37183b98cab /app-admin
parent[app-admin/eselect-rust] version bump: 0.1_pre20140820 (diff)
downloadrust-7d7b71f50f22fdbbea3ce267f7a35f686a400abb.tar.gz
rust-7d7b71f50f22fdbbea3ce267f7a35f686a400abb.tar.bz2
rust-7d7b71f50f22fdbbea3ce267f7a35f686a400abb.zip
[app-admin/eselect-rust] 0.1_pre20140820: add pkg_postinst/pkg_prerm
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/eselect-rust/eselect-rust-0.1_pre20140820.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/app-admin/eselect-rust/eselect-rust-0.1_pre20140820.ebuild b/app-admin/eselect-rust/eselect-rust-0.1_pre20140820.ebuild
index a900e1f..a5023fd 100644
--- a/app-admin/eselect-rust/eselect-rust-0.1_pre20140820.ebuild
+++ b/app-admin/eselect-rust/eselect-rust-0.1_pre20140820.ebuild
@@ -13,3 +13,13 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="app-admin/eselect"
+
+pkg_postinst() {
+ if has_version 'dev-lang/rust'; then
+ eselect rust update --if-unset
+ fi
+}
+
+pkg_prerm() {
+ eselect rust unset
+}