Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 11:10:09 GMT
From:      Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/164366: [NEW PORT] lang/rust: A language with a focus on memory safety and concurrency
Message-ID:  <201201221110.q0MBA965020226@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/164366; it has been noted by GNATS.

From: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164366: [NEW PORT] lang/rust: A language with a focus on
 memory safety and concurrency
Date: Sun, 22 Jan 2012 18:47:57 +0800

 --gBBFr7Ir9EOA20Yy
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 
 Sorry, forgot to add version constraints
 
 --gBBFr7Ir9EOA20Yy
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="rust-0.1_1.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	rust=0A#	rust/pkg-p=
 list=0A#	rust/pkg-descr=0A#	rust/Makefile=0A#	rust/distinfo=0A#	rust/files=
 =0A#	rust/files/patch-src_cargo_cargo.rs=0A#	rust/files/patch-configure=0A#=
 	rust/files/patch-mk_platform.mk=0A#	rust/files/patch-src_rt_rust__unwind.h=
 =0A#=0Aecho c - rust=0Amkdir -p rust > /dev/null 2>&1=0Aecho x - rust/pkg-p=
 list=0Ased 's/^X//' >rust/pkg-plist << '06022a28d866b0993d0b8096557fbbaa'=
 =0AXbin/cargo=0AXbin/rustc=0AXbin/rustdoc=0AXlib/libcore-14bd852465126fe7-0=
 =2E1.so=0AXlib/librustc-4171d83aef249987-0.1.so=0AXlib/librustllvm.so=0AXli=
 b/librustrt.so=0AXlib/libstd-79ca5fac56b63fde-0.1.so=0AXlib/rustc/x86_64-un=
 known-freebsd/lib/intrinsics.bc=0AXlib/rustc/x86_64-unknown-freebsd/lib/lib=
 core-14bd852465126fe7-0.1.so=0AXlib/rustc/x86_64-unknown-freebsd/lib/libmor=
 estack.a=0AXlib/rustc/x86_64-unknown-freebsd/lib/librustc-4171d83aef249987-=
 0.1.so=0AXlib/rustc/x86_64-unknown-freebsd/lib/librustrt.so=0AXlib/rustc/x8=
 6_64-unknown-freebsd/lib/libstd-79ca5fac56b63fde-0.1.so=0AX@dirrm lib/rustc=
 /x86_64-unknown-freebsd/lib=0AX@dirrm lib/rustc/x86_64-unknown-freebsd=0AX@=
 dirrm lib/rustc=0A06022a28d866b0993d0b8096557fbbaa=0Aecho x - rust/pkg-desc=
 r=0Ased 's/^X//' >rust/pkg-descr << 'f784b2d2d17c88e2ad886f7bd3a2f01e'=0AXR=
 ust is a curly-brace, block-structured expression language.=0AXIt visually =
 resembles the C language family, but differs significantly=0AXin syntactic =
 and semantic details. Its design is oriented toward=0AXconcerns of "program=
 ming in the large", that is,=0AXof creating and maintaining boundaries - bo=
 th abstract and operational -=0AXthat preserve large-system integrity, avai=
 lability and concurrency.=0AX=0AXWWW: http://www.rust-lang.org/=0Af784b2d2d=
 17c88e2ad886f7bd3a2f01e=0Aecho x - rust/Makefile=0Ased 's/^X//' >rust/Makef=
 ile << 'b75d1d92b729a2978c9afe5167438dea'=0AX# New ports collection makefil=
 e for: rust=0AX# Date created: 2012-01-21=0AX# Whom: Jyun-Yan You <jyyou@cs=
 =2Enctu.edu.tw>=0AX#=0AX# $FreeBSD$=0AX#=0AX=0AXPORTNAME=3D	rust=0AXPORTVER=
 SION=3D	0.1=0AXCATEGORIES=3D	lang=0AXMASTER_SITES=3D	http://dl.rust-lang.or=
 g/dist/:source \=0AX		http://people.cs.nctu.edu.tw/~jyyou/rust/:boot=0AXDIS=
 TFILES=3D	${RUST_SOURCE}:source \=0AX		${RUST_BOOT}:boot=0AXEXTRACT_ONLY=3D=
 	${RUST_SOURCE}=0AX=0AXMAINTAINER=3D	jyyou@cs.nctu.edu.tw=0AXCOMMENT=3D	A l=
 anguage with a focus on memory safety and concurrency=0AX=0AXOPTIONS=3D	CLA=
 NG	"Use clang to build runtime" on \=0AX		CARGO	"Build with package manager=
 " off=0AX=0AXRUST_SOURCE=3D	${DISTNAME}${EXTRACT_SUFX}=0AXRUST_BOOT=3D	rust=
 -${PORTVERSION}-boot.tar.bz2=0AXRUST_TARGET=3D	x86_64-unknown-freebsd=0AX=
 =0AXONLY_FOR_ARCHS=3D	amd64=0AXHAS_CONFIGURE=3D	yes=0AXUSE_LDCONFIG=3D	yes=
 =0AXUSE_GMAKE=3D	yes=0AXUSE_PERL5_BUILD=3D	yes=0AXUSE_PYTHON_BUILD=3D	2.6-2=
 =2E7=0AX=0AX.include <bsd.port.pre.mk>=0AX=0AX.if !defined(WITHOUT_CLANG)=
 =0AX.if ${OSVERSION} < 900000=0AXBUILD_DEPENDS+=3D	clang>=3D3.0:${PORTSDIR}=
 /lang/clang=0AX.endif=0AXLIB_DEPENDS+=3D	unwind.8:${PORTSDIR}/devel/libunwi=
 nd=0AXCC=3D		clang=0AXCXX=3D		clang++=0AXCONFIGURE_ARGS+=3D	--enable-clang=
 =0AX.else=0AXUSE_GCC=3D	4.4+=0AX.endif=0AX=0AX.if !defined(WITHOUT_CARGO)=
 =0AXRUN_DEPENDS+=3D	curl:${PORTSDIR}/ftp/curl \=0AX		git:${PORTSDIR}/devel/=
 git \=0AX		gpg:${PORTSDIR}/security/gnupg=0AX.endif=0AX=0AXLIB_DEPENDS+=3D	=
 execinfo.1:${PORTSDIR}/devel/libexecinfo=0AX=0AXMAKE_ARGS+=3D		CC=3D${CC} C=
 XX=3D${CXX} ARCH=3Dx86_64=0AXCONFIGURE_ARGS+=3D	--disable-valgrind --disabl=
 e-docs=0AX=0AXMAN1=3D		rustc.1=0AX=0AXpost-extract:=0AX	${MKDIR} ${WRKSRC}/=
 ${RUST_TARGET} && \=0AX	cd ${WRKSRC}/${RUST_TARGET} && \=0AX	    tar xf ${D=
 ISTDIR}/${RUST_BOOT} && \=0AX	    ${MV} rust-stage0 stage0=0AX=0AXpost-patc=
 h:=0AX	${REINPLACE_CMD} \=0AX	    -e '/src\/etc\/get-snapshot.py $$(CFG_HOS=
 T_TRIPLE)/d' \=0AX	    ${WRKSRC}/mk/stage0.mk=0AX	${REINPLACE_CMD} \=0AX	  =
   -e 's|\$$(PREFIX_ROOT)/share/man|${MANPREFIX}/man|g' \=0AX	    ${WRKSRC}/=
 mk/install.mk=0AX=0AX.include <bsd.port.post.mk>=0Ab75d1d92b729a2978c9afe51=
 67438dea=0Aecho x - rust/distinfo=0Ased 's/^X//' >rust/distinfo << '3bd32f7=
 fe5f4557a2951ed58e1489969'=0AXSHA256 (rust-0.1.tar.gz) =3D a1a234592168443b=
 3bd6dce03378ee410393b07f8075c6a56e339638fdda8263=0AXSIZE (rust-0.1.tar.gz) =
 =3D 10601377=0AXSHA256 (rust-0.1-boot.tar.bz2) =3D 682a8f4c735940e1f2e115ad=
 fbffde4838989e820a4f551576c0c9b4be1a0d2e=0AXSIZE (rust-0.1-boot.tar.bz2) =
 =3D 9759370=0A3bd32f7fe5f4557a2951ed58e1489969=0Aecho c - rust/files=0Amkdi=
 r -p rust/files > /dev/null 2>&1=0Aecho x - rust/files/patch-src_cargo_carg=
 o.rs=0Ased 's/^X//' >rust/files/patch-src_cargo_cargo.rs << 'ad0d2c3e7d1007=
 bd640a547803c01755'=0AX--- src/cargo/cargo.rs.orig	2012-01-22 03:39:41.0028=
 04510 +0800=0AX+++ src/cargo/cargo.rs	2012-01-22 09:19:29.018803328 +0800=
 =0AX@@ -389,7 +389,8 @@=0AX     let exec_suffix =3D os::exec_suffix();=0AX =
     for ct: str in new {=0AX         if (exec_suffix !=3D "" && str::ends_w=
 ith(ct, exec_suffix)) ||=0AX-            (exec_suffix =3D=3D "" && !str::st=
 arts_with(ct, "./lib")) {=0AX+            (exec_suffix =3D=3D "" && !str::s=
 tarts_with(fs::basename(ct),=0AX+                                          =
           "lib")) {=0AX             #debug("  bin: %s", ct);=0AX           =
   // FIXME: need libstd fs::copy or something=0AX             run::run_prog=
 ram("cp", [ct, c.bindir]);=0Aad0d2c3e7d1007bd640a547803c01755=0Aecho x - ru=
 st/files/patch-configure=0Ased 's/^X//' >rust/files/patch-configure << 'a81=
 a3db8db6f60159835489a6cbef0ce'=0AX--- configure.orig	2012-01-22 04:29:36.40=
 1802685 +0800=0AX+++ configure	2012-01-22 11:40:28.231803897 +0800=0AX@@ -2=
 81,7 +281,6 @@=0AX =0AX probe_need CFG_PERL         perl=0AX probe_need CFG=
 _PYTHON       python python2.6 python2 python3=0AX-probe_need CFG_CURL     =
     curl=0AX =0AX probe CFG_GIT              git=0AX probe CFG_CLANG       =
      clang++=0AX@@ -340,7 +339,8 @@=0AX     CFG_CLANG_VERSION=3D$("$CFG_CLA=
 NG" \=0AX                       --version \=0AX                       | gre=
 p version \=0AX-                      | cut -d ' ' -f 3)=0AX+              =
         | sed 's/.*\(version .*\)/\1/' \=0AX+                      | cut -d=
  ' ' -f 2)=0AX =0AX     case $CFG_CLANG_VERSION in=0AX         (3.0svn | 3.=
 0 | 3.1)=0Aa81a3db8db6f60159835489a6cbef0ce=0Aecho x - rust/files/patch-mk_=
 platform.mk=0Ased 's/^X//' >rust/files/patch-mk_platform.mk << '609fd8ac409=
 8f752371298a6632715ba'=0AX--- mk/platform.mk.orig	2012-01-22 08:59:58.09780=
 3422 +0800=0AX+++ mk/platform.mk	2012-01-22 04:45:22.124872578 +0800=0AX@@ =
 -188,7 +188,7 @@=0AX   CC=3Dclang=0AX   CXX=3Dclang++=0AX   CPP=3Dcpp=0AX- =
  CFG_GCCISH_CFLAGS +=3D -Wall -Werror -fno-rtti -g=0AX+  CFG_GCCISH_CFLAGS =
 +=3D -Wall -Werror -Wno-c++11-compat -fno-rtti -g=0AX   CFG_GCCISH_LINK_FLA=
 GS +=3D -g=0AX   CFG_DEPEND_C =3D $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CF=
 LAGS) -MT "$(1)" \=0AX     -MM $(2)=0A609fd8ac4098f752371298a6632715ba=0Aec=
 ho x - rust/files/patch-src_rt_rust__unwind.h=0Ased 's/^X//' >rust/files/pa=
 tch-src_rt_rust__unwind.h << '9c5b36daa3d623a042b7282035def9f6'=0AX--- src/=
 rt/rust_unwind.h.orig	2012-01-22 08:58:11.386020911 +0800=0AX+++ src/rt/rus=
 t_unwind.h	2012-01-22 04:37:29.745804340 +0800=0AX@@ -17,6 +17,8 @@=0AX =0A=
 X #if (defined __APPLE__) || (defined __clang__)=0AX =0AX+#ifndef __FreeBSD=
 __=0AX+=0AX typedef int _Unwind_Action;=0AX typedef void _Unwind_Exception;=
 =0AX =0AX@@ -24,3 +26,5 @@=0AX =0AX #endif=0AX =0AX+#endif=0AX+=0A9c5b36daa=
 3d623a042b7282035def9f6=0Aexit=0A=0A
 --gBBFr7Ir9EOA20Yy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221110.q0MBA965020226>