diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-09-06 10:36:49 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-09-06 10:36:49 +0000 |
commit | c4fe7b8a81d1fae1ab31b7204d42324b2132ca53 (patch) | |
tree | 808f526026801feec4e84052a8d24c7efcfd93fe /lang/rust/buildlink3.mk | |
parent | 4dba6e64c2c21258a661023129fe2ce2209f948d (diff) | |
download | pkgsrc-c4fe7b8a81d1fae1ab31b7204d42324b2132ca53.tar.gz |
Import rust 1.11.0 as lang/rust into pkgsrc.
pkgsrc notes:
* The build requires binary bootstraps built by the Rust team. Due
to the requirement that only the previous version is supported as
a bootstrap compiler, and new versions of Rust are released every
6 weeks, it is unlikely to be practical to build TNF bootstraps.
Users should evaluate whether they trust binaries from upstream.
* There is currently no SunOS bootstrap provided by the Rust team,
so for now a version built by myself is provided by Joyent.
* Only Darwin/Linux/SunOS are currently supported. The Rust team do
provide NetBSD bootstraps so support should be easy enough to add.
Information about Rust from the DESCR:
Rust is a systems programming language focused on three goals: safety,
speed, and concurrency. It maintains these goals without having a
garbage collector, making it a useful language for a number of use cases
other languages aren't good at: embedding in other languages, programs
with specific space and time requirements, and writing low-level code,
like device drivers and operating systems.
It improves on current languages targeting this space by having a number
of compile-time safety checks that produce no runtime overhead, while
eliminating all data races. Rust also aims to achieve "zero-cost
abstractions" even though some of these abstractions feel like those of
a high-level language. Even then, Rust still allows precise control
like a low-level language would.
Diffstat (limited to 'lang/rust/buildlink3.mk')
-rw-r--r-- | lang/rust/buildlink3.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/rust/buildlink3.mk b/lang/rust/buildlink3.mk new file mode 100644 index 00000000000..128555fd73a --- /dev/null +++ b/lang/rust/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/09/06 10:36:49 jperkin Exp $ + +BUILDLINK_TREE+= rust + +.if !defined(RUST_BUILDLINK3_MK) +RUST_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.rust+= rust>=0.11.0 +BUILDLINK_PKGSRCDIR.rust?= ../../lang/rust + +BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/lib/rustlib +.endif + +BUILDLINK_TREE+= -rust |