luaposix: update to 34.0.1.
Also build all of luaposix, luaposix51, and luaposix52 from a single template. I used the strategy that several other Lua packages in our tree have used. Closes: #7031 [via git-merge-pr]
This commit is contained in:
parent
0f947bed48
commit
9b930b9adf
@ -1,23 +1,71 @@
|
||||
# Template file for 'luaposix'
|
||||
pkgname=luaposix
|
||||
version=33.4.0
|
||||
version=34.0.1
|
||||
revision=1
|
||||
lib32disabled=yes
|
||||
wrksrc="${pkgname}-release-v${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/usr/lib/lua/5.3 --datadir=/usr/share/lua/5.3 --docdir=/usr/share/doc/${pkgname}"
|
||||
hostmakedepends="perl lua-devel"
|
||||
makedepends="ncurses-devel lua-devel"
|
||||
wrksrc="luaposix-release-v${version}"
|
||||
hostmakedepends="lua51-devel lua52-devel lua-devel"
|
||||
makedepends="lua51-devel lua52-devel lua-devel"
|
||||
depends="lua"
|
||||
short_desc="A POSIX library for Lua programming language"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="MIT"
|
||||
homepage="http://luaforge.net/projects/luaposix/"
|
||||
distfiles="https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz"
|
||||
checksum=e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21
|
||||
checksum=06bc4843f9b7acced6eea1b46c30d82f52df0654100c5c59ea7de7a13c687693
|
||||
|
||||
post_extract() {
|
||||
cd "${wrksrc}"
|
||||
mkdir -p lua5.1
|
||||
mv * lua5.1 || true
|
||||
cp -a lua5.1 lua5.2
|
||||
cp -a lua5.1 lua5.3
|
||||
}
|
||||
|
||||
do_build() {
|
||||
for _lua_version in 5.1 5.2 5.3; do
|
||||
pushd lua${_lua_version}
|
||||
lua${_lua_version} build-aux/luke version=${version} PREFIX=/usr \
|
||||
LUA_INCDIR="${XBPS_CROSS_BASE}/usr/include/lua${_lua_version}" \
|
||||
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $CFLAGS"
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
for _lua_version in 5.1 5.2 5.3; do
|
||||
pushd lua${_lua_version}
|
||||
lua${_lua_version} build-aux/luke PREFIX="${DESTDIR}/usr" install
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
vmkdir usr/share/$pkgname/examples
|
||||
vcopy "examples/*.lua" usr/share/$pkgname/examples
|
||||
vlicense lua5.3/LICENSE
|
||||
vmkdir usr/share/doc/$pkgname
|
||||
vcopy "lua5.3/doc/*" usr/share/doc/$pkgname
|
||||
}
|
||||
|
||||
luaposix51_package() {
|
||||
depends="lua51 lua51-bitlib"
|
||||
short_desc="${_desc} - Lua 5.1"
|
||||
pkg_install() {
|
||||
vlicense "${wrksrc}/lua5.1/LICENSE"
|
||||
vmove usr/lib/lua/5.1
|
||||
vmove usr/share/lua/5.1
|
||||
vmkdir usr/share/doc/$pkgname
|
||||
vcopy "${wrksrc}/lua5.1/doc/*" usr/share/doc/$pkgname
|
||||
}
|
||||
}
|
||||
|
||||
luaposix52_package() {
|
||||
short_desc="${_desc} - Lua 5.2"
|
||||
depends="lua52"
|
||||
pkg_install() {
|
||||
vlicense "${wrksrc}/lua5.2/LICENSE"
|
||||
vmove usr/lib/lua/5.2
|
||||
vmove usr/share/lua/5.2
|
||||
vmkdir usr/share/doc/$pkgname
|
||||
vcopy "${wrksrc}/lua5.2/doc/*" usr/share/doc/$pkgname
|
||||
}
|
||||
}
|
||||
|
1
srcpkgs/luaposix51
Symbolic link
1
srcpkgs/luaposix51
Symbolic link
@ -0,0 +1 @@
|
||||
luaposix
|
@ -1,32 +0,0 @@
|
||||
# Template file for 'luaposix51'
|
||||
pkgname=luaposix51
|
||||
version=33.4.0
|
||||
revision=1
|
||||
lib32disabled=yes
|
||||
wrksrc="luaposix-release-v${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/usr/lib/lua/5.3 --datadir=/usr/share/lua/5.3 --docdir=/usr/share/doc/${pkgname}"
|
||||
hostmakedepends="perl lua51-devel automake libtool"
|
||||
makedepends="ncurses-devel lua51-devel"
|
||||
depends="lua51 lua51-bitlib"
|
||||
short_desc="A POSIX library for Lua programming language"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="MIT"
|
||||
homepage="http://luaforge.net/projects/luaposix/"
|
||||
distfiles="https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz"
|
||||
checksum=e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21
|
||||
|
||||
make_build_args="INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/lua5.1"
|
||||
|
||||
pre_configure() {
|
||||
# Fix Cross
|
||||
sed -i 's/AX_LUA_HEADERS/#AX_LUA_HEADERS/' configure.ac
|
||||
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
vmkdir usr/share/$pkgname/examples
|
||||
vcopy "examples/*.lua" usr/share/$pkgname/examples
|
||||
}
|
1
srcpkgs/luaposix52
Symbolic link
1
srcpkgs/luaposix52
Symbolic link
@ -0,0 +1 @@
|
||||
luaposix
|
@ -1,23 +0,0 @@
|
||||
# Template file for 'luaposix52'
|
||||
pkgname=luaposix52
|
||||
version=33.4.0
|
||||
revision=1
|
||||
lib32disabled=yes
|
||||
wrksrc="luaposix-release-v${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/usr/lib/lua/5.3 --datadir=/usr/share/lua/5.3 --docdir=/usr/share/doc/${pkgname}"
|
||||
hostmakedepends="perl lua52-devel"
|
||||
makedepends="ncurses-devel lua52-devel"
|
||||
depends="lua52"
|
||||
short_desc="A POSIX library for Lua programming language"
|
||||
maintainer="Chris Brannon <chris@the-brannons.com>"
|
||||
license="MIT"
|
||||
homepage="http://luaforge.net/projects/luaposix/"
|
||||
distfiles="https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz"
|
||||
checksum=e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
vmkdir usr/share/$pkgname/examples
|
||||
vcopy "examples/*.lua" usr/share/$pkgname/examples
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user