mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
lua-lualdap: update to 1.2.5.
This commit is contained in:
parent
8aaf58a16e
commit
60ab123f2c
5 changed files with 12 additions and 70 deletions
|
@ -1,13 +0,0 @@
|
||||||
diff --git Makefile Makefile
|
|
||||||
index 3ff7bc1..f05d15b 100644
|
|
||||||
--- Makefile
|
|
||||||
+++ Makefile
|
|
||||||
@@ -1,8 +1,3 @@
|
|
||||||
-CFLAGS += $(shell pkg-config --cflags lua)
|
|
||||||
-LDLIBS += $(shell pkg-config --libs lua) -lldap
|
|
||||||
-
|
|
||||||
-LUA_MODULES := $(shell pkg-config --variable=INSTALL_CMOD lua)
|
|
||||||
-
|
|
||||||
all: lualdap.so
|
|
||||||
|
|
||||||
lualdap.so: lualdap.c
|
|
|
@ -1,22 +0,0 @@
|
||||||
diff --git lualdap.c lualdap.c
|
|
||||||
index a3f42a9..026e369 100644
|
|
||||||
--- lualdap.c
|
|
||||||
+++ lualdap.c
|
|
||||||
@@ -876,7 +876,7 @@ static int lualdap_search_tostring(lua_State *L)
|
|
||||||
*/
|
|
||||||
static int lualdap_createmeta(lua_State *L)
|
|
||||||
{
|
|
||||||
- const luaL_reg methods[] = {
|
|
||||||
+ const luaL_Reg methods[] = {
|
|
||||||
{"close", lualdap_close},
|
|
||||||
{"add", lualdap_add},
|
|
||||||
{"compare", lualdap_compare},
|
|
||||||
@@ -1043,7 +1043,7 @@ static void set_info(lua_State *L)
|
|
||||||
*/
|
|
||||||
int luaopen_lualdap(lua_State *L)
|
|
||||||
{
|
|
||||||
- struct luaL_reg lualdap[] = {
|
|
||||||
+ struct luaL_Reg lualdap[] = {
|
|
||||||
{"open_simple", lualdap_open_simple},
|
|
||||||
{NULL, NULL},
|
|
||||||
};
|
|
|
@ -1,20 +0,0 @@
|
||||||
Copyright (c) 2003-2007 The Kepler Project.
|
|
||||||
Copyright (c) 2015 Jason A. Donenfeld <Jason@zx2c4.com>.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
copy of this software and associated documentation files (the "Software"),
|
|
||||||
to deal in the Software without restriction, including without limitation
|
|
||||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,25 +1,22 @@
|
||||||
# Template file for 'lua-lualdap'
|
# Template file for 'lua-lualdap'
|
||||||
pkgname=lua-lualdap
|
pkgname=lua-lualdap
|
||||||
version=1.2.0
|
version=1.2.5
|
||||||
revision=1
|
revision=1
|
||||||
|
wrksrc="lualdap-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="lua51-devel lua52-devel lua-devel libldap-devel"
|
makedepends="lua51-devel lua52-devel lua-devel libldap-devel"
|
||||||
short_desc="LDAP bindings for Lua"
|
short_desc="LDAP bindings for Lua"
|
||||||
maintainer="John Regan <john@jrjrtech.com>"
|
maintainer="John Regan <john@jrjrtech.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://git.zx2cf.com/lualdap"
|
homepage="https://github.com/lualdap/lualdap"
|
||||||
distfiles="http://git.zx2c4.com/lualdap/snapshot/lualdap-${version}.tar.xz"
|
distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
|
||||||
checksum=126c50f013ebf329c1771ab4d489f5e6eb7b11d2a64412414f1c6bc6e8a69ed8
|
checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
|
||||||
wrksrc="lualdap-${version}"
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}
|
||||||
for p in ${FILESDIR}/*.patch; do
|
|
||||||
patch -p0 -i "${p}"
|
|
||||||
done
|
|
||||||
mkdir -p lua51
|
mkdir -p lua51
|
||||||
mv * lua51 || true
|
mv * lua51 || :
|
||||||
cp -a lua51 lua52
|
cp -a lua51 lua52
|
||||||
cp -a lua51 lua53
|
cp -a lua51 lua53
|
||||||
}
|
}
|
||||||
|
@ -27,6 +24,7 @@ post_extract() {
|
||||||
do_build() {
|
do_build() {
|
||||||
for luaver in 5.1 5.2 5.3; do
|
for luaver in 5.1 5.2 5.3; do
|
||||||
cd ${wrksrc}/lua${luaver//.}
|
cd ${wrksrc}/lua${luaver//.}
|
||||||
|
vsed -i "s|^LUA_VERSION.*|LUA_VERSION = ${luaver}|g" config
|
||||||
make \
|
make \
|
||||||
CC=$CC \
|
CC=$CC \
|
||||||
LD=$CC \
|
LD=$CC \
|
||||||
|
@ -39,6 +37,7 @@ do_build() {
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
for luaver in 5.1 5.2 5.3; do
|
for luaver in 5.1 5.2 5.3; do
|
||||||
|
vmkdir usr/lib/lua/$luaver
|
||||||
cd ${wrksrc}/lua${luaver//.}
|
cd ${wrksrc}/lua${luaver//.}
|
||||||
make \
|
make \
|
||||||
CC=$CC \
|
CC=$CC \
|
||||||
|
@ -46,17 +45,17 @@ do_install() {
|
||||||
CFLAGS="$(pkg-config --cflags lua${luaver})" \
|
CFLAGS="$(pkg-config --cflags lua${luaver})" \
|
||||||
LDLIBS="$(pkg-config --libs lua${luaver}) -lldap" \
|
LDLIBS="$(pkg-config --libs lua${luaver}) -lldap" \
|
||||||
LUA_MODULES="$(pkg-config --variable=INSTALL_CMOD lua${luaver})" \
|
LUA_MODULES="$(pkg-config --variable=INSTALL_CMOD lua${luaver})" \
|
||||||
DESTDIR="${PKGDESTDIR}" \
|
DESTDIR="${DESTDIR}" \
|
||||||
install
|
install
|
||||||
done
|
done
|
||||||
vlicense "${FILESDIR}/COPYING"
|
vlicense ${wrksrc}/lua53/LICENSE.md
|
||||||
}
|
}
|
||||||
|
|
||||||
lua51-lualdap_package() {
|
lua51-lualdap_package() {
|
||||||
short_desc+=" - Lua 5.1"
|
short_desc+=" - Lua 5.1"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/lua/5.1
|
vmove usr/lib/lua/5.1
|
||||||
vlicense "${FILESDIR}/COPYING"
|
vlicense lua51/LICENSE.md
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +63,6 @@ lua52-lualdap_package() {
|
||||||
short_desc+=" - Lua 5.2"
|
short_desc+=" - Lua 5.2"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/lua/5.2
|
vmove usr/lib/lua/5.2
|
||||||
vlicense "${FILESDIR}/COPYING"
|
vlicense lua52/LICENSE.md
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
pkgname=lualdap
|
|
||||||
site="https://git.zx2c4.com/lualdap/refs/"
|
|
Loading…
Add table
Reference in a new issue