New package: rust-0.5; from pancake.

This commit is contained in:
Juan RP 2013-01-09 14:52:03 +01:00
parent 94e3cf1110
commit 9ee5a0f03d
2 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,69 @@
commit 486217d7a2779d35c1177c7b1b7e96c1e5d30441 (HEAD, refs/remotes/origin/python, refs/heads/python)
Author: Daniel Micay <danielmicay@gmail.com>
Date: Thu Jan 3 02:53:05 2013 -0500
add missing $(CFG_PYTHON) prefixes
diff --git a/mk/docs.mk b/mk/docs.mk
index 2a7b3ec..9f64712 100644
--- mk/docs.mk
+++ mk/docs.mk
@@ -152,7 +152,7 @@ else
doc/rust.g: rust.md $(S)src/etc/extract_grammar.py
@$(call E, extract_grammar: $@)
- $(Q)$(S)src/etc/extract_grammar.py $< >$@
+ $(Q)$(CFG_PYTHON) $(S)src/etc/extract_grammar.py $< >$@
verify-grammar: doc/rust.g
@$(call E, LLnextgen: $<)
diff --git a/mk/snap.mk b/mk/snap.mk
index 382f3cb..21bdc3b 100644
--- mk/snap.mk
+++ mk/snap.mk
@@ -14,10 +14,10 @@ define DEF_SNAP_FOR_STAGE_H
ifdef CFG_INSTALL_SNAP
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
- $(S)src/etc/make-snapshot.py stage$(1) $(2) install
+ $(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2) install
else
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
- $(S)src/etc/make-snapshot.py stage$(1) $(2)
+ $(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
endif
endef
@@ -30,4 +30,4 @@ snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
-snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)
\ No newline at end of file
+snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)
diff --git a/mk/stage0.mk b/mk/stage0.mk
index b64f5df..e1a83c1 100644
--- mk/stage0.mk
+++ mk/stage0.mk
@@ -11,7 +11,7 @@ $(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X): \
ifdef CFG_ENABLE_LOCAL_RUST
$(Q)$(S)src/etc/local_stage0.sh $(CFG_HOST_TRIPLE) $(CFG_LOCAL_RUST_ROOT)
else
- $(Q)$(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
+ $(Q)$(CFG_PYTHON) $(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
ifdef CFG_ENABLE_PAX_FLAGS
@$(call E, apply PaX flags: $@)
@"$(CFG_PAXCTL)" -cm "$@"
diff --git a/mk/tests.mk b/mk/tests.mk
index 3f08549..454d540 100644
--- mk/tests.mk
+++ mk/tests.mk
@@ -701,7 +701,7 @@ tmp/$(FT).rc tmp/$(FT_DRIVER).rs: \
$(RPASS_TESTS) \
$(S)src/etc/combine-tests.py
@$(call E, check: building combined stage2 test runner)
- $(Q)$(S)src/etc/combine-tests.py
+ $(Q)$(CFG_PYTHON) $(S)src/etc/combine-tests.py
define DEF_CHECK_FAST_FOR_T_H
# $(1) unused

31
srcpkgs/rust/template Normal file
View File

@ -0,0 +1,31 @@
# Template file for 'rust'
pkgname=rust
version=0.5
revision=1
makedepends="which pkg-config perl curl python chrpath"
short_desc="A safe, concurrent, practical language"
maintainer="pancake <pancake@nopcode.org>"
homepage="http://www.rust-lang.org/"
license="MIT, Apache-2.0"
distfiles="http://static.rust-lang.org/dist/rust-${version}.tar.gz"
checksum=d326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a
disable_debug=yes
do_configure() {
./configure --prefix=${DESTDIR}/usr --disable-docs
}
do_build() {
make ${makejobs}
}
do_install() {
make install
vinstall COPYRIGHT 644 usr/share/licenses/rust LICENSE
# Set proper rpath on binaries.
for f in rustdoc rustc rusti cargo; do
chrpath -r /usr/lib/rustc/${XBPS_MACHINE}-unknown-linux-gnu/lib ${DESTDIR}/usr/bin/${f}
done
}