From owner-freebsd-doc@FreeBSD.ORG Sat Oct 13 15:30:01 2012 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B42BFFE0; Sat, 13 Oct 2012 15:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 8B7BA8FC12; Sat, 13 Oct 2012 15:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9DFU1m6056292; Sat, 13 Oct 2012 15:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9DFU1j4056289; Sat, 13 Oct 2012 15:30:01 GMT (envelope-from gnats) Resent-Date: Sat, 13 Oct 2012 15:30:01 GMT Resent-Message-Id: <201210131530.q9DFU1j4056289@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Cc: gjb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Rees Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B6D1EB1 for ; Sat, 13 Oct 2012 15:24:45 +0000 (UTC) (envelope-from crees@bayofrum.net) Received: from mk-outboundfilter-2.mail.uk.tiscali.com (mk-outboundfilter-2.mail.uk.tiscali.com [212.74.114.38]) by mx1.freebsd.org (Postfix) with ESMTP id 04DB28FC0C for ; Sat, 13 Oct 2012 15:24:44 +0000 (UTC) Received: from 212-139-242-85.dynamic.dsl.as9105.com (HELO pegasus.bayofrum.net) ([212.139.242.85]) by smtp.pipex.tiscali.co.uk with ESMTP; 13 Oct 2012 16:24:37 +0100 Received: by pegasus.bayofrum.net (Postfix, from userid 1001) id 359794CFEC; Mon, 8 Oct 2012 19:36:59 +0100 (BST) Message-Id: <20121008183659.359794CFEC@pegasus.bayofrum.net> Date: Mon, 8 Oct 2012 19:36:59 +0100 (BST) From: Chris Rees To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: gjb@FreeBSD.org Subject: docs/172662: [PATCH] Porter's Handbook to add information on PORT_OPTIONS syntax X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Chris Rees List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2012 15:30:01 -0000 >Number: 172662 >Category: docs >Synopsis: [PATCH] Porter's Handbook to add information on PORT_OPTIONS syntax >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 13 15:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 9.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD pegasus.bayofrum.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Apr 29 12:29:02 BST 2012 root@pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64 >Description: http://lists.freebsd.org/pipermail/svn-ports-head/2012-October/005238.html >How-To-Repeat: >Fix: --- porters-simplify-syntax.diff begins here --- Index: en_US.ISO8859-1/books/porters-handbook/book.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/book.xml (revision 39715) +++ en_US.ISO8859-1/books/porters-handbook/book.xml (working copy) @@ -4476,7 +4476,7 @@ Check for Unset Port <makevar>OPTIONS</makevar> - .if empty(PORT_OPTIONS:MEXAMPLES) + .if ! ${PORT_OPTIONS:MEXAMPLES} CONFIGURE_ARGS+=--without-examples .endif @@ -4515,7 +4515,7 @@ LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu .endif -.if empty(PORT_OPTIONS:MEXAMPLES) +.if ! ${PORT_OPTIONS:MEXAMPLES} CONFIGURE_ARGS+= --without-examples .endif @@ -4592,6 +4592,16 @@ disabled. The configure script does not enable related features in the application, despite library's presence in the system. + + + Under some circumstances, the shorthand conditional + syntax can cause problems with complex constructs. + If you receive errors such as Malformed + conditional, an alternative syntax can be used. + .if !empty(VARIABLE:MVALUE) +# as an alternative to +.if ${VARIABLE:MVALUE} + --- porters-simplify-syntax.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: