From alepulver@FreeBSD.org  Sun Nov 12 14:44:43 2006
Return-Path: <alepulver@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3D20516A40F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Nov 2006 14:44:43 +0000 (UTC)
	(envelope-from alepulver@FreeBSD.org)
Received: from relay00.pair.com (relay00.pair.com [209.68.5.9])
	by mx1.FreeBSD.org (Postfix) with SMTP id 7EBE543D8A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Nov 2006 14:44:31 +0000 (GMT)
	(envelope-from alepulver@FreeBSD.org)
Received: (qmail 48529 invoked from network); 12 Nov 2006 14:44:30 -0000
Received: from unknown (HELO phobos.mars.bsd) (unknown)
  by unknown with SMTP; 12 Nov 2006 14:44:30 -0000
Message-Id: <1163342668.45244@phobos.mars.bsd>
Date: Sun, 12 Nov 2006 11:44:28 -0300
From: "Alejandro Pulver" <alepulver@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [PATCH] PH: add new Lua variables
X-Send-Pr-Version: gtk-send-pr 0.4.7 
X-GNATS-Notify:

>Number:         105441
>Category:       docs
>Synopsis:       [PATCH] PH: add new Lua variables
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 12 14:50:20 GMT 2006
>Closed-Date:    Mon Nov 13 22:31:41 GMT 2006
>Last-Modified:  Mon Nov 13 22:40:02 GMT 2006
>Originator:     Alejandro Pulver
>Release:        FreeBSD 6.1-RELEASE-p1 i386
>Organization:
>Environment:


System: FreeBSD 6.1-RELEASE-p1 #3: Mon Jun 19 14:49:35 ART 2006
    root@phobos.mars.bsd:/usr/obj/usr/src/sys/ATHLON-PHOBOS



>Description:


- Add LUA_CMD, LUAC_CMD and TOLUA_CMD variables.
- Fix column titles in a table.
- Change example to use the new variables.


>How-To-Repeat:





>Fix:


--- patch_lua.diff begins here ---
Index: book.sgml
===================================================================
RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v
retrieving revision 1.765
diff -u -r1.765 book.sgml
--- book.sgml	3 Nov 2006 21:04:09 -0000	1.765
+++ book.sgml	12 Nov 2006 14:17:14 -0000
@@ -6565,9 +6565,9 @@
 	  <tgroup cols="2">
 	    <thead>
 	      <row>
-		<entry>Name</entry>
+		<entry>Component</entry>
 
-		<entry>Value</entry>
+		<entry>Dependency type</entry>
 	      </row>
 	    </thead>
 
@@ -6745,6 +6745,24 @@
 		<entry>The package name prefix used by
 		  <application>Lua</application> modules</entry>
 	      </row>
+	      <row>
+		<entry><makevar>LUA_CMD</makevar></entry>
+
+		<entry>The path to the <application>Lua</application>
+		  interpreter</entry>
+	      </row>
+	      <row>
+		<entry><makevar>LUAC_CMD</makevar></entry>
+
+		<entry>The path to the <application>Lua</application>
+		  compiler</entry>
+	      </row>
+	      <row>
+		<entry><makevar>TOLUA_CMD</makevar></entry>
+
+		<entry>The path to the <application>tolua</application>
+		  program</entry>
+	      </row>
 	    </tbody>
 	  </tgroup>
 	</table>
@@ -6794,9 +6812,11 @@
 
 .include &lt;bsd.port.pre.mk&gt;
 
-VER_STR!=       lua${LUA_VER} -v
+.if exists(${LUA_CMD})
+VER_STR!=       ${LUA_CMD} -v
 
-CFLAGS+=        -DLUA_VERSION_STRING="${VER_STR}"</programlisting>
+CFLAGS+=        -DLUA_VERSION_STRING="${VER_STR}"
+.endif</programlisting>
 	</example>
 
 	<note>
--- patch_lua.diff ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon Nov 13 22:30:31 UTC 2006 
State-Changed-Why:  
Committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105441 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/105441: commit references a PR
Date: Mon, 13 Nov 2006 22:36:00 +0000 (UTC)

 pav         2006-11-13 22:31:34 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/porters-handbook book.sgml 
   Log:
   Using Lua:
   - Add LUA_CMD, LUAC_CMD and TOLUA_CMD variables.
   - Fix column titles in a table.
   - Change example to use the new variables.
   
   PR:             docs/105441
   Submitted by:   alepulver
   
   Revision  Changes    Path
   1.767     +24 -4     doc/en_US.ISO8859-1/books/porters-handbook/book.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
