Skip to content

Instantly share code, notes, and snippets.

@iamtakingiteasy
Created July 13, 2012 17:21
Show Gist options
  • Save iamtakingiteasy/3106100 to your computer and use it in GitHub Desktop.
Save iamtakingiteasy/3106100 to your computer and use it in GitHub Desktop.
rust ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/portage/generic/dev-lang/rust/rust-0.3.ebuild $
EAPI=4
DESCRIPTION="Rust a safe, concurrent, practical language"
HOMEPAGE="http://www.rust-lang.org"
SRC_URI="http://dl.rust-lang.org/dist/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="+valgrind +sharedstd +optimize-llvm +optimize optimize-cxx debug clang"
RDEPEND="
valgrind? ( dev-util/valgrind )
sys-devel/llvm
"
DEPEND="${RDEPEND}
clang? ( sys-devel/clang )
dev-lang/perl
dev-lang/python
"
src_configure() {
econf \
$(use_enable valgrind) \
$(use_enable sharedstd) \
$(use_enable optimize) \
$(use_enable optimize-cxx) \
$(use_enable optimize-llvm) \
$(use_enable debug) \
$(use_enable clang) \
--prefix=/usr \
--local-rust-root=/usr \
--disable-docs \
|| die
}
src_compile() {
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment