Ravenports generated: 16 Apr 2024 22:24
[ravenports.git] / bucket_90 / lua52
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               lua52
4 VERSION=                5.2.4
5 REVISION=               1
6 KEYWORDS=               lang
7 VARIANTS=               standard
8 SDESC[standard]=        Light, powerful language for app. extension
9 HOMEPAGE=               https://www.lua.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://www.lua.org/ftp/
14 DISTFILE[1]=            lua-5.2.4.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         tools
19                         dev
20                         man
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 EXRUN[tools]=           readline:primary:standard
26
27 USES=                   cpe readline:build
28
29 DISTNAME=               lua-5.2.4
30
31 LICENSE=                MIT:primary
32 LICENSE_FILE=           MIT:{{WRKDIR}}/LICENSE
33 LICENSE_SCHEME=         solo
34
35 CPE_PRODUCT=            lua
36 CPE_VENDOR=             lua
37 FPC_EQUIVALENT=         lang/lua52
38
39 BUILD_WRKSRC=           {{WRKSRC}}/src
40 MAKE_ARGS=              MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}"
41                         MYLDFLAGS="{{LDFLAGS}}"
42                         MYLIBS="-L{{LOCALBASE}}/lib -lreadline"
43                         CC="{{CC}}"
44                         LUA_T=lua52
45                         LUAC_T=luac52
46                         LUA_A=liblua-5.2.a
47                         LUA_SO=liblua-5.2.so
48                         LUA_SONAME=liblua-5.2.so.1
49                         TO_BIN="lua52 luac52"
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}}"
54 SINGLE_JOB=             yes
55
56 SOVERSION=              1.0.0
57 PLIST_SUB=              LUA_VER=5.2
58                         SUFFIX=52
59 SUB_FILES=              lua-5.2.pc
60 SUB_LIST=               version=5.2.4
61                         includedir={{PREFIX}}/include/lua52
62                         libdir={{PREFIX}}/lib
63                         library=lua-5.2
64
65 CFLAGS=                 -fPIC
66 LDFLAGS=                -lm
67                         -pthread
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
76
77 post-install:
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)
89
90 pre-configure:
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
95
96 post-extract:
97         ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
98                 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
99
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.
108
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
116 Lua.
117
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.
121
122
123 [FILE:64:descriptions/desc.tools]
124 This package contains the Lua interpreter and the Lua compiler.
125
126
127 [FILE:95:distinfo]
128 b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b       252651 lua-5.2.4.tar.gz
129
130
131 [FILE:38:manifests/plist.primary]
132 lib/liblua-%%LUA_VER%%.so.%%SOMAJOR%%
133
134
135 [FILE:88:manifests/plist.tools]
136 bin/
137  lua%%SUFFIX%%
138  luac%%SUFFIX%%
139 @dir lib/lua/%%LUA_VER%%
140 @dir share/lua/%%LUA_VER%%
141
142
143 [FILE:180:manifests/plist.dev]
144 include/lua%%SUFFIX%%/
145  lauxlib.h
146  lua.h
147  lua.hpp
148  luaconf.h
149  lualib.h
150 lib/
151  liblua-%%LUA_VER%%.a
152  liblua-%%LUA_VER%%.so
153  liblua-%%LUA_VER%%_pic.a
154 lib/pkgconfig/lua-%%LUA_VER%%.pc
155
156
157 [FILE:57:manifests/plist.man]
158 share/man/man1/
159  lua%%SUFFIX%%.1.gz
160  luac%%SUFFIX%%.1.gz
161
162
163 [FILE:1033:patches/patch-src_Makefile]
164 --- src/Makefile.orig   2013-11-11 11:45:49 UTC
165 +++ src/Makefile
166 @@ -6,12 +6,13 @@
167  # Your platform. See PLATS for possible values.
168  PLAT= none
169  
170 -CC= gcc
171 -CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
172 +CC?= gcc
173 +CFLAGS= -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
174  LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
175  LIBS= -lm $(SYSLIBS) $(MYLIBS)
176  
177 -AR= ar rcu
178 +AR= ar
179 +ARFLAGS= rcu
180  RANLIB= ranlib
181  RM= rm -f
182  
183 @@ -19,8 +20,8 @@ SYSCFLAGS=
184  SYSLDFLAGS=
185  SYSLIBS=
186  
187 -MYCFLAGS=
188 -MYLDFLAGS=
189 +MYCFLAGS?=
190 +MYLDFLAGS?=
191  MYLIBS=
192  MYOBJS=
193  
194 @@ -43,7 +44,7 @@ LUAC_T=       luac
195  LUAC_O=        luac.o
196  
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)
200  ALL_A= $(LUA_A)
201  
202  # Targets start here.
203 @@ -55,8 +56,11 @@ o:   $(ALL_O)
204  
205  a:     $(ALL_A)
206  
207 +$(LUA_SO): $(CORE_O) $(LIB_O)
208 +       $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
209 +
210  $(LUA_A): $(BASE_O)
211 -       $(AR) $@ $(BASE_O)
212 +       $(AR) $(ARFLAGS) $@ $(BASE_O)
213         $(RANLIB) $@
214  
215  $(LUA_T): $(LUA_O) $(LUA_A)
216
217
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
221 @@ -19,6 +19,7 @@
222  #include <stdio.h>
223  #include <stdlib.h>
224  #include <string.h>
225 +#include <unistd.h>
226  
227  #define liolib_c
228  #define LUA_LIB
229
230
231 [FILE:220:files/lua-5.2.pc.in]
232 version=%%version%%
233 libdir=%%libdir%%
234 includedir=%%includedir%%
235 library=%%library%%
236
237 Name: Lua
238 Description: An Extensible Extension Language
239 Version: ${version}
240 Libs: -L${libdir} -l${library} -lm
241 Cflags: -I${includedir}
242