mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
82 lines
2 KiB
Text
82 lines
2 KiB
Text
# Maintainer: Paul Bredbury <brebs@sent.com>
|
|
pkgname=swi-prolog
|
|
pkgver=9.0.3
|
|
pkgrel=0
|
|
pkgdesc="Versatile implementation of the Prolog programming language"
|
|
url="https://www.swi-prolog.org"
|
|
arch="all !riscv64" # missing libunwind-dev
|
|
license="BSD-2-Clause AND LGPL-3.0-or-later"
|
|
# Need to package JavaHamcrest in order to enable JPL
|
|
subpackages="$pkgname-doc $pkgname-xpce:xpce:noarch $pkgname-xpce-doc:xpce_doc:noarch"
|
|
makedepends="
|
|
cmake
|
|
gmp-dev
|
|
libarchive-dev
|
|
libedit-dev
|
|
libunwind-dev
|
|
libxext-dev
|
|
libice-dev
|
|
libjpeg-turbo-dev
|
|
libxinerama-dev
|
|
libxft-dev
|
|
libxpm-dev
|
|
libxt-dev
|
|
ncurses-dev
|
|
openssl-dev
|
|
ossp-uuid-dev
|
|
pcre2-dev
|
|
readline-dev
|
|
samurai
|
|
unixodbc-dev
|
|
yaml-dev
|
|
zlib-dev
|
|
"
|
|
# The Berkeley DB test works on all but x86, which segfaults
|
|
# https://github.com/SWI-Prolog/issues/issues/103#issuecomment-968091401
|
|
[ ! "$CARCH" = "x86" ] && makedepends="$makedepends db-dev"
|
|
|
|
checkdepends="python3"
|
|
source="https://www.swi-prolog.org/download/stable/src/swipl-$pkgver.tar.gz"
|
|
builddir="$srcdir/swipl-$pkgver"
|
|
|
|
build() {
|
|
# pgo broken with gcc12 profiles
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
ctest --output-on-failure --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
}
|
|
|
|
doc() {
|
|
default_doc
|
|
mkdir -p "$subpkgdir"/usr/share/swi-prolog
|
|
mv "$pkgdir"/usr/lib/swipl/doc "$subpkgdir"/usr/share/swi-prolog
|
|
}
|
|
|
|
xpce() {
|
|
depends="$pkgname"
|
|
pkgdesc="X support for $pkgname"
|
|
mkdir -p "$subpkgdir"/usr/lib/swipl
|
|
mv "$pkgdir"/usr/lib/swipl/xpce "$subpkgdir"/usr/lib/swipl
|
|
|
|
# Move doc files
|
|
mkdir -p "$subpkgdir"-doc/usr/lib/swipl/xpce
|
|
mv "$subpkgdir"/usr/lib/swipl/xpce/appl-help "$subpkgdir"-doc/usr/lib/swipl/xpce
|
|
mv "$subpkgdir"/usr/lib/swipl/xpce/man "$subpkgdir"-doc/usr/lib/swipl/xpce
|
|
}
|
|
|
|
xpce_doc() {
|
|
pkgdesc="X support for $pkgname (doc files)"
|
|
}
|
|
|
|
sha512sums="
|
|
f055526bca6b02405193ce81d24e4a08ccb7f1e9d68e0cd4f772e58af45de109ae895dfc8976d9f5db3637332cf658c325250cc2e759ba29ac762fe5320e6105 swipl-9.0.3.tar.gz
|
|
"
|