void-packages/srcpkgs/tcl/template
Roberto Ricci 1be83963ff tcl: update to 8.6.12.
- enable tests
- use vsed
2021-12-20 13:48:04 +01:00

47 lines
1.3 KiB
Bash

# Template file for 'tcl'
pkgname=tcl
version=8.6.12
revision=1
wrksrc="tcl${version}"
build_wrksrc=unix
build_style=gnu-configure
configure_args="--enable-threads --without-tzdata --enable-man-symlinks
--disable-static --disable-rpath --with-system-sqlite
tcl_cv_strstr_unbroken=ok
tcl_cv_strtoul_unbroken=ok"
makedepends="zlib-devel sqlite-devel"
short_desc="TCL scripting language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="TCL"
homepage="http://www.tcl.tk"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
checksum=26c995dd0f167e48b11961d891ee555f680c175f7173ff8cb829f4ebcde4c1a6
shlib_provides="libtcl${version%.*}.so"
post_extract() {
vsed -i pkgs/sqlite*/Makefile.in -e 's/-DSQLITE_API=MODULE_SCOPE//g'
}
do_check() {
# thread-4.5 and thread-5* are skipped because they test UB
make test TESTFLAGS="-skip 'thread-4.5 thread-5*'"
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -s tclsh8.6 ${DESTDIR}/usr/bin/tclsh
vlicense ../license.terms LICENSE
}
tcl-devel_package() {
depends="tcl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/tclConfig.sh
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
vmove "usr/lib/*.a"
}
}