1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= lua52 lua53 lua54
7 SDESC[lua52]= Comprehensive networking module for Lua 5.2
8 SDESC[lua53]= Comprehensive networking module for Lua 5.3
9 SDESC[lua54]= Comprehensive networking module for Lua 5.4
10 HOMEPAGE= https://github.com/diegonehab/luasocket
11 CONTACT= Michael_Reim[kraileth@elderlinux.org]
14 SITES[main]= GITHUB/diegonehab:luasocket:v3.1.0
15 DISTFILE[1]= generated:main
21 OPTIONS_AVAILABLE= LUA52 LUA53 LUA54
22 OPTIONS_STANDARD= none
23 VOPTS[lua52]= LUA52=ON LUA53=OFF LUA54=OFF
24 VOPTS[lua53]= LUA52=OFF LUA53=ON LUA54=OFF
25 VOPTS[lua54]= LUA52=OFF LUA53=OFF LUA54=ON
30 LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE
33 FPC_EQUIVALENT= net/luasocket
35 MAKE_ARGS= LUAV={{LUA_VER}}
37 INSTALL_REQ_TOOLCHAIN= yes
39 [LUA52].DESCRIPTION= Build with Lua 5.2
40 [LUA52].USES_ON= lua:5.2
42 [LUA53].DESCRIPTION= Build with Lua 5.3
43 [LUA53].USES_ON= lua:5.3
45 [LUA54].DESCRIPTION= Build with Lua 5.4
46 [LUA54].USES_ON= lua:5.4
49 ${CP} ${FILESDIR}/Makefile ${WRKSRC}
50 ${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile
51 ${REINPLACE_CMD} -e 's!__PREFIX__!${PREFIX}!g' \
52 -e 's!__LUA_VER_STR__!${LUA_VER_STR}!g' \
53 ${WRKSRC}/src/Makefile
56 ${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR}/mime/core.so \
57 ${STAGEDIR}${LUA_MODLIBDIR}/socket/core.so
59 [FILE:635:descriptions/desc.single]
60 LuaSocket is a Lua extension library that is composed of two parts: a C
61 core that provides support for the TCP and UDP transport layers, and a set
62 of Lua modules that add support for functionality commonly needed by
63 applications that deal with the Internet.
65 The core support has been implemented so that it is both efficient and
66 simple to use. Among the support modules, the most commonly used implement
67 the SMTP, HTTP and FTP client protocols. These provide a very natural and
68 generic interface to the functionality defined by each protocol. In
69 addition, you will find that the MIME, URL and LTN12 modules can be very
74 bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e 336542 diegonehab-luasocket-3.1.0.tar.gz
77 [FILE:205:manifests/plist.single]
78 %%LUA_MODLIBDIR%%/mime/core.so
79 %%LUA_MODLIBDIR%%/socket/core.so
84 %%LUA_MODSHAREDIR%%/socket/
93 [FILE:542:patches/patch-src_makefile]
94 --- src/makefile.orig 2022-03-25 08:05:48 UTC
96 @@ -48,9 +48,9 @@ LDIR_macosx?=share/lua/$(LUAV)
98 # /usr/local/include/lua$(LUAV)
99 # where lua headers are found for linux builds
100 -LUAINC_linux_base?=/usr/include
101 -LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) $(LUAINC_linux_base)/lua$(LUAV)
102 -LUAPREFIX_linux?=/usr/local
103 +LUAINC_linux_base?=__PREFIX__/include
104 +LUAINC_linux?=$(LUAINC_linux_base)/lua__LUA_VER_STR__
105 +LUAPREFIX_linux?=__PREFIX__
106 CDIR_linux?=lib/lua/$(LUAV)
107 LDIR_linux?=share/lua/$(LUAV)
111 [FILE:293:files/Makefile]
113 PLATS= macosx linux win32 mingw
117 $(PLATS) none install install-unix local clean:
122 @cd src; $(MAKE) $(PLAT)
123 @cd src; $(MAKE) install
127 @cd src; $(MAKE) $(PLAT)
128 @cd src; $(MAKE) install-unix