You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
755 B
32 lines
755 B
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-rust/eselect-rust-0.2_pre20141128.ebuild,v 1.1 2014/11/30 12:43:07 jauhien Exp $
|
|
|
|
EAPI=5
|
|
|
|
DESCRIPTION="eselect module for rust"
|
|
HOMEPAGE="http://github.com/jauhien/eselect-rust"
|
|
SRC_URI="https://github.com/jauhien/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
RDEPEND="app-admin/eselect"
|
|
|
|
pkg_preinst() {
|
|
if has_version 'app-admin/eselect-rust' ; then
|
|
eselect rust unset
|
|
fi
|
|
}
|
|
|
|
pkg_postinst() {
|
|
if has_version 'dev-lang/rust' || has_version 'dev-lang/rust-bin' ; then
|
|
eselect rust update --if-unset
|
|
fi
|
|
}
|
|
|
|
pkg_prerm() {
|
|
eselect rust unset
|
|
}
|