Date: Sat, 18 Jan 2014 19:09:29 GMT From: Oleksii Tsai <oleksii.tsai@googlemail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/185865: [PATCH] lang/rust add option to build with LLnextgen for grammar verification Message-ID: <201401181909.s0IJ9TSk059525@oldred.freebsd.org> Resent-Message-ID: <201401181910.s0IJA0m6008585@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 185865 >Category: ports >Synopsis: [PATCH] lang/rust add option to build with LLnextgen for grammar verification >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 18 19:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Oleksii Tsai >Release: 9.2 >Organization: >Environment: FreeBSD panda 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #3 r259301M: Thu Jan 16 20:17:26 PST 2014 lyuts@panda:/usr/obj/usr/src/sys/LYUTS amd64 >Description: Added an option during port build for grammar verification. Should be useful for those who develop Rust on FreeBSD. >How-To-Repeat: # cd /usr/ports/lang/rust # make >Fix: Attached Makefile patch. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 340200) +++ Makefile (working copy) @@ -31,8 +31,11 @@ rusti.1 \ rustpkg.1 -OPTIONS_DEFINE= RUSTPKG +OPTIONS_DEFINE= RUSTPKG \ + LLNEXTGEN + RUSTPKG_DESC= Build with package manager +LLNEXTGEN_DESC= Build with grammar verification OPTIONS_DEFAULT= RUSTPKG NO_STAGE= yes @@ -54,6 +57,10 @@ PLIST_SUB+= RUSTPKG="@comment " .endif +.if ${PORT_OPTIONS:MLLNEXTGEN} +BUILD_DEPENDS+= LLnextgen:${PORTSDIR}/devel/llnextgen +.endif + LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo MAKE_ARGS+= CC=${CC} CXX=${CXX} ARCH=x86_64 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401181909.s0IJ9TSk059525>