diff options
author | sperber <sperber@FreeBSD.org> | 2012-05-23 01:49:35 +0800 |
---|---|---|
committer | sperber <sperber@FreeBSD.org> | 2012-05-23 01:49:35 +0800 |
commit | 31b6f0936c9208ad80697072e32c39ddcdf3793f (patch) | |
tree | 52380dc3e1c58408a4ee9a75e1414974bb204bf9 /lang | |
parent | fb3edc9032fbd21001f1f8d398f01e9ba7381439 (diff) | |
download | freebsd-ports-gnome-31b6f0936c9208ad80697072e32c39ddcdf3793f.tar.gz freebsd-ports-gnome-31b6f0936c9208ad80697072e32c39ddcdf3793f.tar.zst freebsd-ports-gnome-31b6f0936c9208ad80697072e32c39ddcdf3793f.zip |
This patch fixes the problem that it attempts to fetch a file during building.
It adds snapshot to distfiles and removes code for downloading.
PR: ports/168223
Submitted by: Jyun-Yan You <jyyou _at_ cs.nctu.edu.tw> (maintainer)
Reported by: pointyhat-west
Approved by: decke (mentor)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/rust/Makefile | 20 | ||||
-rw-r--r-- | lang/rust/distinfo | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 5e0ad94b637b..a73afa90df2d 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -8,13 +8,22 @@ PORTNAME= rust PORTVERSION= 0.2 CATEGORIES= lang -MASTER_SITES= http://dl.rust-lang.org/dist/ +MASTER_SITES= http://dl.rust-lang.org/dist/:src \ + http://dl.rust-lang.org/stage0-snapshots/:boot +DISTFILES= ${RUST_SOURCE}:src \ + ${RUST_BOOT}:boot +EXTRACT_ONLY= ${RUST_SOURCE} MAINTAINER= jyyou@cs.nctu.edu.tw COMMENT= A language with a focus on memory safety and concurrency OPTIONS= CARGO "Build with package manager" on +RUST_SOURCE= ${DISTNAME}${EXTRACT_SUFX} +RUST_BOOT= rust-stage0-${RUST_BOOT_SIG}.tar.bz2 +RUST_BOOT_SIG= 2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b +RUST_TARGET= x86_64-unknown-freebsd + ONLY_FOR_ARCHS= amd64 HAS_CONFIGURE= yes USE_LDCONFIG= yes @@ -49,6 +58,12 @@ LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo MAKE_ARGS+= CC=${CC} CXX=${CXX} ARCH=x86_64 CONFIGURE_ARGS+= --disable-valgrind --disable-docs +post-extract: + ${MKDIR} ${WRKSRC}/${RUST_TARGET} && \ + cd ${WRKSRC}/${RUST_TARGET} && \ + ${TAR} -xf ${DISTDIR}/${RUST_BOOT} && \ + ${MV} rust-stage0 stage0 + post-patch: ${REINPLACE_CMD} \ -e '/probe_need CFG_CURL/d' \ @@ -59,6 +74,9 @@ post-patch: ${REINPLACE_CMD} \ -e 's|$$(PREFIX_ROOT)/share/man|${MANPREFIX}/man|' \ ${WRKSRC}/mk/install.mk + ${REINPLACE_CMD} \ + -e '/get-snapshot.py $$(CFG_HOST_TRIPLE)/d' \ + ${WRKSRC}/mk/stage0.mk .if defined(WITHOUT_CARGO) ${REINPLACE_CMD} \ -e '/$$(Q)$$(call INSTALL,$$(HB3),$$(PHB),cargo$$(X))/d' \ diff --git a/lang/rust/distinfo b/lang/rust/distinfo index bb57d8feefda..d7166ebcebb2 100644 --- a/lang/rust/distinfo +++ b/lang/rust/distinfo @@ -1,2 +1,4 @@ SHA256 (rust-0.2.tar.gz) = cedf679fd6bf46b63b9d754496920cbaa8c9ba4187d40f5f78fc28e775820f0d SIZE (rust-0.2.tar.gz) = 11349998 +SHA256 (rust-stage0-2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b.tar.bz2) = 13627f7eb203736b8aaacd82db92af77cac653c12025d793cc38a3c29aea4930 +SIZE (rust-stage0-2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b.tar.bz2) = 8917839
\ No newline at end of file |