diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-08-01 21:58:22 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-08-01 21:58:58 +0000 |
commit | 3f4c7d43f05de6a41dec049d75369b7d14711d7f (patch) | |
tree | 407db3482b075bfbc665fb8d2cb0b28205e91dfb /main | |
parent | 38d2e43f24a7a2fd9e59e6d56096f1b7c5aa1bca (diff) | |
download | aports-3f4c7d43f05de6a41dec049d75369b7d14711d7f.tar.bz2 aports-3f4c7d43f05de6a41dec049d75369b7d14711d7f.tar.xz |
main/tcl: enable tests, modernize apkbuild
Diffstat (limited to 'main')
-rw-r--r-- | main/tcl/APKBUILD | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/main/tcl/APKBUILD b/main/tcl/APKBUILD index 0b27080552..fca5b6fe6d 100644 --- a/main/tcl/APKBUILD +++ b/main/tcl/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=tcl pkgver=8.6.6 -pkgrel=0 +pkgrel=1 pkgdesc="The Tcl scripting language" url="http://tcl.sourceforge.net/" arch="all" @@ -16,7 +16,7 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname$pkgver-sr " _major=${pkgver%.*} -_builddir="$srcdir"/tcl${pkgver}/unix +builddir="$srcdir"/tcl${pkgver}/unix prepare() { cd "$srcdir"/tcl${pkgver} @@ -33,7 +33,7 @@ build() { case "$CARCH" in x86_64) _64bit="--enable-64bit";; esac - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -42,15 +42,14 @@ build() { --mandir=/usr/share/man \ --localstatedir=/var \ --with-system-sqlite \ - $_64bit \ - || return 1 - make || return 1 + $_64bit + make } package() { - cd "$_builddir" + cd "$builddir" export LD_LIBRARY_PATH="$_builddir" - make -j1 INSTALL_ROOT="${pkgdir}" install install-private-headers || return 1 + make -j1 INSTALL_ROOT="${pkgdir}" install install-private-headers ln -sf tclsh${_major} "${pkgdir}"/usr/bin/tclsh install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE @@ -59,6 +58,15 @@ package() { find "$pkgdir" -name '*Config.sh' | xargs sed -i -e "s#${srcdir}#/usr/src#" } +check() { + cd "$builddir" + + # thread-4.5 and thread-5* is suppressed because it tests UB + # http* is suppressed because it tries to do network i/o + # unixInit-3* is suppressed due to hardcoded locale assumptions + make test TESTFLAGS="-verbose pbtels -skip 'thread-4.5 thread-5* http* unixInit-3*'" +} + dev() { default_dev cd $pkgdir @@ -68,9 +76,5 @@ dev() { done } -md5sums="5193aea8107839a79df8ac709552ecb7 tcl8.6.6-src.tar.gz -5828445dcdebfbc761caecadf624bf1a tcl-stat64.patch" -sha256sums="a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07 tcl8.6.6-src.tar.gz -ce1b6f1eab4445337c82d4c56f8d4483e312d7f65769b5e8cd7a72fdc2ac5ff5 tcl-stat64.patch" sha512sums="b8e707470655ceef2ef385b8a2e617c1c0ebced577732d1f5e818cd7295ca25da491b6024047cae2aff754d27e00d646f830c2049b96f306ac96bc69b02da7b0 tcl8.6.6-src.tar.gz cd52cbe80fd2be227c9018dbe38fa0888302293402e7a57f2e231c195b7c1902f1b58bc87d19c9d123915ca757e871abf084c0ef23b1a7f187bc03ba93904cc2 tcl-stat64.patch" |