ports/185865: [PATCH] lang/rust add option to build with LLnextgen for grammar verification
Oleksii Tsai
oleksii.tsai at googlemail.com
Sat Jan 18 19:10:00 UTC 2014
>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 at 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:
More information about the freebsd-ports-bugs
mailing list