docs/105441: [PATCH] PH: add new Lua variables

Alejandro Pulver alepulver at FreeBSD.org
Sun Nov 12 14:50:37 UTC 2006


>Number:         105441
>Category:       docs
>Synopsis:       [PATCH] PH: add new Lua variables
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 12 14:50:20 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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 <bsd.port.pre.mk>
 
-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:
>Unformatted:



More information about the freebsd-doc mailing list