Ravenports generated: 15 Jul 2018 17:24
[ravenports.git] / bucket_CF / lua53
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               lua53
4 VERSION=                5.3.5
5 KEYWORDS=               lang
6 VARIANTS=               standard
7 SDESC[standard]=        Light, powerful language for app. extension
8 HOMEPAGE=               http://www.lua.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://www.lua.org/ftp/
13 DISTFILE[1]=            lua-5.3.5.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   readline
21
22 DISTNAME=               lua-5.3.5
23
24 LICENSE=                MIT:single
25 LICENSE_FILE=           MIT:{{WRKDIR}}/LICENSE
26 LICENSE_SCHEME=         solo
27
28 FPC_EQUIVALENT=         lang/lua53
29
30 BUILD_WRKSRC=           {{WRKSRC}}/src
31 MAKE_ARGS=              MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}"
32                         MYLDFLAGS="{{LDFLAGS}}"
33                         MYLIBS="-Wl,-E -L{{LOCALBASE}}/lib -lreadline"
34                         CC="{{CC}}"
35                         ARFLAGS=rl
36                         LUA_T=lua53
37                         LUAC_T=luac53
38                         LUA_A=liblua-5.3.a
39                         LUA_SO=liblua-5.3.so
40                         LUA_SONAME=liblua-5.3.so
41                         TO_BIN="lua53 luac53"
42                         TO_LIB="liblua-5.3.a liblua-5.3.so"
43                         INSTALL_TOP={{STAGEDIR}}{{PREFIX}}
44                         INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua53
45                         INSTALL_EXEC="{{INSTALL_PROGRAM}}"
46
47 PLIST_SUB=              LUA_VER=5.3
48                         SUFFIX=53
49 SUB_FILES=              lua-5.3.pc
50 SUB_LIST=               version=5.3.5
51                         includedir={{PREFIX}}/include/lua53
52                         libdir={{PREFIX}}/lib
53                         soname=lua-5.3
54
55 CFLAGS=                 -fPIC
56 LDFLAGS=                -lm
57                         -pthread
58
59 post-patch:
60         ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c
61         ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \
62                 ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c
63         ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile
64
65 post-install:
66         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.3.so
67         ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \
68                 ${STAGEDIR}${MANPREFIX}/man/man1/lua53.1
69         ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \
70                 ${STAGEDIR}${MANPREFIX}/man/man1/luac53.1
71         ${INSTALL_DATA} ${WRKDIR}/lua-5.3.pc \
72                 ${STAGEDIR}${PREFIX}/lib/pkgconfig
73
74 post-extract:
75         ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
76                 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
77
78 [FILE:1209:descriptions/desc.single]
79 Lua is a programming language originally designed for extending
80 applications, but also frequently used as a general-purpose, stand-alone
81 language. Lua combines simple procedural syntax (similar to Pascal) with
82 powerful data description constructs based on associative arrays and
83 extensible semantics. Lua is dynamically typed, interpreted from bytecodes,
84 and has automatic memory management with garbage collection, making it
85 ideal for configuration, scripting, and rapid prototyping.
86
87 A fundamental concept in the design of Lua is to provide meta-mechanisms
88 for implementing features, instead of providing a host of features directly
89 in the language. For example, although Lua is not a pure object-oriented
90 language, it does provide meta-mechanisms for implementing classes and
91 inheritance. Lua's meta-mechanisms bring an economy of concepts and keep
92 the language small, while allowing the semantics to be extended in
93 unconventional ways. Extensible semantics is a distinguishing feature of
94 Lua.
95
96 Lua is implemented as a small library of C functions, written in ANSI C,
97 and compiles unmodified in all known platforms. The implementation goals
98 are simplicity, efficiency, portability, and low embedding cost.
99
100
101 [FILE:95:distinfo]
102 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac       303543 lua-5.3.5.tar.gz
103
104
105 [FILE:299:manifests/plist.single]
106 bin/
107  lua%%SUFFIX%%
108  luac%%SUFFIX%%
109 include/lua%%SUFFIX%%/
110  lauxlib.h
111  lua.h
112  lua.hpp
113  luaconf.h
114  lualib.h
115 lib/
116  liblua-%%LUA_VER%%.a
117  liblua-%%LUA_VER%%.so
118 lib/pkgconfig/lua-%%LUA_VER%%.pc
119 share/man/man1/
120  lua%%SUFFIX%%.1.gz
121  luac%%SUFFIX%%.1.gz
122 @dir lib/lua/%%LUA_VER%%
123 @dir share/lua/%%LUA_VER%%
124
125
126 [FILE:1146:patches/patch-src__Makefile]
127 --- src/Makefile.orig   2015-01-05 16:04:52 UTC
128 +++ src/Makefile
129 @@ -6,12 +6,12 @@
130  # Your platform. See PLATS for possible values.
131  PLAT= none
132  
133 -CC= gcc -std=gnu99
134 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
135 +CC?= gcc -std=gnu99
136 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
137  LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
138  LIBS= -lm $(SYSLIBS) $(MYLIBS)
139  
140 -AR= ar rcu
141 +AR= ar
142  RANLIB= ranlib
143  RM= rm -f
144  
145 @@ -19,8 +19,8 @@ SYSCFLAGS=
146  SYSLDFLAGS=
147  SYSLIBS=
148  
149 -MYCFLAGS=
150 -MYLDFLAGS=
151 +MYCFLAGS?=
152 +MYLDFLAGS?=
153  MYLIBS=
154  MYOBJS=
155  
156 @@ -38,12 +38,13 @@ BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
157  
158  LUA_T= lua
159  LUA_O= lua.o
160 +LUA_SO=        liblua.so
161  
162  LUAC_T=        luac
163  LUAC_O=        luac.o
164  
165  ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
166 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
167 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
168  ALL_A= $(LUA_A)
169  
170  # Targets start here.
171 @@ -55,8 +56,11 @@ o:   $(ALL_O)
172  
173  a:     $(ALL_A)
174  
175 +$(LUA_SO):     $(CORE_O) $(LIB_O)
176 +       $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
177 +
178  $(LUA_A): $(BASE_O)
179 -       $(AR) $@ $(BASE_O)
180 +       $(AR) $(ARFLAGS) $@ $(BASE_O)
181         $(RANLIB) $@
182  
183  $(LUA_T): $(LUA_O) $(LUA_A)
184
185
186 [FILE:186:patches/patch-src__liolib.c]
187 --- src/liolib.c.orig   2015-04-03 18:41:57 UTC
188 +++ src/liolib.c
189 @@ -16,6 +16,7 @@
190  #include <stdio.h>
191  #include <stdlib.h>
192  #include <string.h>
193 +#include <unistd.h>
194  
195  #include "lua.h"
196  
197
198
199 [FILE:217:files/lua-5.3.pc.in]
200 version=%%version%%
201 libdir=%%libdir%%
202 includedir=%%includedir%%
203 soname=%%soname%%
204
205 Name: Lua
206 Description: An Extensible Extension Language
207 Version: ${version}
208 Libs: -L${libdir} -l${soname} -lm
209 Cflags: -I${includedir}
210
211
212 [FILE:297:files/special.mk]
213 .if ${OPSYS} == "FreeBSD"
214 BUILD_TARGET=   freebsd
215 .elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly"
216 BUILD_TARGET=   bsd
217 .elif ${OPSYS} == "Linux"
218 BUILD_TARGET=   linux
219 .elif ${OPSYS} == "Darwin"
220 BUILD_TARGET=   macosx
221 .elif ${OPSYS} == "SunOS"
222 BUILD_TARGET=   solaris
223 .else
224 BUILD_TARGET=   generic
225 .endif
226