aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-25 08:42:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-25 12:41:58 -0300
commita4257d208146f0bf66153c254a82239ee67e861c (patch)
tree57a79701226ebc739bf8c6f0de40fbe39a08b8ce
parentda85665ff81514fab9644a65183f93ec4cb2d532 (diff)
downloadaports-a4257d208146f0bf66153c254a82239ee67e861c.tar.gz
aports-a4257d208146f0bf66153c254a82239ee67e861c.tar.bz2
aports-a4257d208146f0bf66153c254a82239ee67e861c.tar.xz
main/postgresql-pllua: move s390x to luajit
-rw-r--r--main/postgresql-pllua/APKBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/main/postgresql-pllua/APKBUILD b/main/postgresql-pllua/APKBUILD
index 6a3b9ed4ca..35680381a0 100644
--- a/main/postgresql-pllua/APKBUILD
+++ b/main/postgresql-pllua/APKBUILD
@@ -11,12 +11,7 @@ url="https://github.com/RhodiumToad/pllua-ng"
arch="all"
license="MIT"
depends="postgresql"
-# LuaJIT does not support s390x.
-case "$CARCH" in
- s390x) _lua=lua5.3 _makeopts="LUAC=luac5.3 LUA=lua5.3";;
- *) _lua=luajit; _makeopts="LUAJIT=luajit";;
-esac
-makedepends="postgresql-dev $_lua-dev"
+makedepends="postgresql-dev luajit-dev"
options="!check" # tests require running PostgreSQL
provides="pllua=$pkgver-r$pkgrel" # for backward compatibility
replaces="pllua" # for backward compatibility
@@ -24,10 +19,15 @@ subpackages="$pkgname-dev"
source="https://github.com/RhodiumToad/$_pkgname/archive/$_pkgver/$_pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgver"
+case "$CARCH" in
+ s390x) makedepends="$makedepends llvm clang" ;;
+esac
+
build() {
- make $_makeopts \
- LUA_INCDIR=$(pkgconf --variable=includedir $_lua) \
- LUALIB=$(pkgconf --libs $_lua) \
+ make \
+ LUAJIT=luajit \
+ LUA_INCDIR=$(pkgconf --variable=includedir luajit) \
+ LUALIB=$(pkgconf --libs luajit) \
USE_PGXS=1
}