diff options
Diffstat (limited to 'community/cloudi/APKBUILD')
-rw-r--r-- | community/cloudi/APKBUILD | 64 |
1 files changed, 26 insertions, 38 deletions
diff --git a/community/cloudi/APKBUILD b/community/cloudi/APKBUILD index b2a7041ced1..5ed89649c7b 100644 --- a/community/cloudi/APKBUILD +++ b/community/cloudi/APKBUILD @@ -28,11 +28,12 @@ # (shown below with the assignment of CLOUDI_PID_FILE). pkgname=cloudi -pkgver=2.0.2 -pkgrel=6 +pkgver=2.0.7 +pkgrel=7 pkgdesc="Cloud computing framework for efficient, scalable, and stable soft-realtime event processing." url="https://cloudi.org/" license="MIT" +# Erlang/OTP and CloudI should both support loongarch64 arch="all" depends=" erlang @@ -41,36 +42,39 @@ makedepends="autoconf automake binutils-dev boost-dev - elfutils-dev erlang-dev erlang-reltool gmp-dev - libexecinfo-dev + go libseccomp-dev libtool + linux-headers + nodejs perl - php7 + php python3-dev ruby + rust " # LXC build containers need limits.cpu config to create CPU quota # that is detected by Erlang/OTP for creating its schedulers options="!check" subpackages="$pkgname-static $pkgname-openrc" -source="https://osdn.net/dl/cloudi/cloudi-$pkgver.tar.gz +source="https://cloudi.org/download/cloudi-$pkgver.tar.gz $pkgname.initd - 10-ocaml-prerelease-4.13.0-fix.patch - 15-backtrace-fix.patch" + " + +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" # configure additional dependencies based on the package architecture -# Disable Go on architectures that are not yet ready +# Enable Haskell on the appropriate architectures case "$CTARGET_ARCH" in - mips*|riscv*) - _configure_args="$_configure_args --disable-go-support" - ;; - *) - makedepends="$makedepends go" + x86_64) + makedepends="$makedepends ghc libffi-dev zlib-dev" + _configure_args="$_configure_args --enable-haskell-support" ;; esac # Disable Java on architectures that lack OpenJDK @@ -88,32 +92,17 @@ case "$CTARGET_ARCH" in _configure_args="$_configure_args --disable-java-support" ;; esac -# Disable JavaScript on architectures that lack nodejs -case "$CTARGET_ARCH" in - mips*|riscv*) - _configure_args="$_configure_args --disable-javascript-support" - ;; - *) - makedepends="$makedepends nodejs" - ;; -esac # Enable OCaml on the appropriate architectures case "$CTARGET_ARCH" in - mips*|riscv*) + riscv*) + ;; + loongarch*) ;; *) - makedepends="$makedepends ocaml" + makedepends="$makedepends ocaml ocaml-compiler-libs" _configure_args="$_configure_args --enable-ocaml-support" ;; esac -# Enable Haskell on the appropriate architectures -case "$CTARGET_ARCH" in - x86_64) -# enable via #10902 -# makedepends="$makedepends ghc cabal zlib-dev" -# _configure_args="$_configure_args --enable-haskell-support" - ;; -esac prepare() { default_prepare @@ -123,7 +112,7 @@ prepare() { build() { cd "$builddir"/src - CLOUDI_PID_FILE="/run/cloudi.pid" ./configure \ + PHP="/usr/bin/php8" CLOUDI_PID_FILE="/run/cloudi.pid" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ @@ -133,7 +122,8 @@ build() { --host="$CHOST" \ --build="$CBUILD" \ --with-test-timeout=container \ - --enable-go-support $_configure_args + --enable-go-support \ + --enable-rust-support $_configure_args make } @@ -150,8 +140,6 @@ package() { } sha512sums=" -07c8e6a586f60b50e704d59a7345fb35f4ced8ee45eca560a3e0854fa589b1015f8df96c8d58c2ce88f6a2d4c5554435748f0eded68a25f47b0f78f71916ba95 cloudi-2.0.2.tar.gz +1ab46b698d19ea96ae151dfbf332b11ea523178eea039fcab85b4316cc1934fc0867550d0028cbb177839ac82a45bd96b98905cfbe69e1e3913dca7cca01d8e7 cloudi-2.0.7.tar.gz 053f860f656617012208a0e1909e43b2f8979d381a90d3fa5a745a9cf5021fe54556a641fef2badaa9955f2394d00e32183389cb9b501169dcbf8cbe4fbb0329 cloudi.initd -24ec41ae5c9b3b1eb0dcabff02423d5e05fad358caeeeb1406517d3ec84beb568a743fe06013bae807dc988188bdf5221413b3b6af1e790f2fe2d0000dda5e89 10-ocaml-prerelease-4.13.0-fix.patch -7db41ffb2e9e360de4064c2bb1650790c5cebe19662f6d8c17c65c0bed16d438b3eaa3df47e517a74ab490a015cd2029e1a10f20705b80d6290cc47425dd3b1d 15-backtrace-fix.patch " |