1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Light, powerful language for app. extension
9 HOMEPAGE= https://www.lua.org/
13 SITES[main]= https://www.lua.org/ftp/
14 DISTFILE[1]= lua-5.2.4.tar.gz:main
16 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 EXRUN[tools]= readline:primary:standard
27 USES= cpe readline:build
32 LICENSE_FILE= MIT:{{WRKDIR}}/LICENSE
37 FPC_EQUIVALENT= lang/lua52
39 BUILD_WRKSRC= {{WRKSRC}}/src
40 MAKE_ARGS= MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}"
41 MYLDFLAGS="{{LDFLAGS}}"
42 MYLIBS="-L{{LOCALBASE}}/lib -lreadline"
48 LUA_SONAME=liblua-5.2.so.1
50 TO_LIB="liblua-5.2.a liblua-5.2.{{LIBEXT}}"
51 INSTALL_TOP={{STAGEDIR}}{{PREFIX}}
52 INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua52
53 INSTALL_EXEC="{{INSTALL_PROGRAM}}"
57 PLIST_SUB= LUA_VER=5.2
60 SUB_LIST= version=5.2.4
61 includedir={{PREFIX}}/include/lua52
68 VAR_OPSYS[freebsd]= MAKEFILE_LINE=BUILD_TARGET=bsd
69 VAR_OPSYS[sunos]= MAKEFILE_LINE=BUILD_TARGET=solaris
70 VAR_OPSYS[linux]= MAKEFILE_LINE=BUILD_TARGET=linux
71 VAR_OPSYS[darwin]= MAKEFILE_LINE=BUILD_TARGET=macosx
72 VAR_OPSYS[netbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd
73 VAR_OPSYS[openbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd
74 VAR_OPSYS[dragonfly]= MAKEFILE_LINE=BUILD_TARGET=bsd
75 VAR_OPSYS[midnightbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd
78 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.2.${LIBEXT}
79 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \
80 ${STAGEDIR}${MANPREFIX}/man/man1/lua52.1
81 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \
82 ${STAGEDIR}${MANPREFIX}/man/man1/luac52.1
83 ${INSTALL_DATA} ${WRKDIR}/lua-5.2.pc \
84 ${STAGEDIR}${PREFIX}/lib/pkgconfig
85 (cd ${STAGEDIR}${PREFIX}/lib &&\
86 ${MV} liblua-5.2.so liblua-5.2.so.1 &&\
87 ${LN} -s liblua-5.2.so.1 liblua-5.2.so &&\
88 ${LN} -s liblua-5.2.a liblua-5.2_pic.a)
91 ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c
92 ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \
93 ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c
94 ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile
97 ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
98 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
100 [FILE:1209:descriptions/desc.primary]
101 Lua is a programming language originally designed for extending
102 applications, but also frequently used as a general-purpose, stand-alone
103 language. Lua combines simple procedural syntax (similar to Pascal) with
104 powerful data description constructs based on associative arrays and
105 extensible semantics. Lua is dynamically typed, interpreted from bytecodes,
106 and has automatic memory management with garbage collection, making it
107 ideal for configuration, scripting, and rapid prototyping.
109 A fundamental concept in the design of Lua is to provide meta-mechanisms
110 for implementing features, instead of providing a host of features directly
111 in the language. For example, although Lua is not a pure object-oriented
112 language, it does provide meta-mechanisms for implementing classes and
113 inheritance. Lua's meta-mechanisms bring an economy of concepts and keep
114 the language small, while allowing the semantics to be extended in
115 unconventional ways. Extensible semantics is a distinguishing feature of
118 Lua is implemented as a small library of C functions, written in ANSI C,
119 and compiles unmodified in all known platforms. The implementation goals
120 are simplicity, efficiency, portability, and low embedding cost.
123 [FILE:64:descriptions/desc.tools]
124 This package contains the Lua interpreter and the Lua compiler.
128 b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b 252651 lua-5.2.4.tar.gz
131 [FILE:38:manifests/plist.primary]
132 lib/liblua-%%LUA_VER%%.so.%%SOMAJOR%%
135 [FILE:88:manifests/plist.tools]
139 @dir lib/lua/%%LUA_VER%%
140 @dir share/lua/%%LUA_VER%%
143 [FILE:180:manifests/plist.dev]
144 include/lua%%SUFFIX%%/
152 liblua-%%LUA_VER%%.so
153 liblua-%%LUA_VER%%_pic.a
154 lib/pkgconfig/lua-%%LUA_VER%%.pc
157 [FILE:57:manifests/plist.man]
163 [FILE:1033:patches/patch-src_Makefile]
164 --- src/Makefile.orig 2013-11-11 11:45:49 UTC
167 # Your platform. See PLATS for possible values.
171 -CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
173 +CFLAGS= -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
174 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
175 LIBS= -lm $(SYSLIBS) $(MYLIBS)
183 @@ -19,8 +20,8 @@ SYSCFLAGS=
194 @@ -43,7 +44,7 @@ LUAC_T= luac
197 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
198 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
199 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
202 # Targets start here.
203 @@ -55,8 +56,11 @@ o: $(ALL_O)
207 +$(LUA_SO): $(CORE_O) $(LIB_O)
208 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
212 + $(AR) $(ARFLAGS) $@ $(BASE_O)
215 $(LUA_T): $(LUA_O) $(LUA_A)
218 [FILE:253:patches/patch-src__liolib.c]
219 --- ./src/liolib.c.orig 2013-01-05 22:46:54.000000000 +0100
220 +++ ./src/liolib.c 2013-01-05 22:47:32.000000000 +0100
231 [FILE:220:files/lua-5.2.pc.in]
234 includedir=%%includedir%%
238 Description: An Extensible Extension Language
240 Libs: -L${libdir} -l${library} -lm
241 Cflags: -I${includedir}