nvi: disable threads, enable static.

Fixes #3775.

threads and libvi.so only make sense when building with a GUI.

Remove unsupported scripts while we are cleaning up.
This commit is contained in:
Christian Neukirchen 2016-03-07 14:42:44 +01:00
parent 5b04ce6f3f
commit 9d9bf667b5
1 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'nvi'
pkgname=nvi
version=1.81.6
revision=15
revision=16
patch_args="-Np1"
build_style=gnu-configure
build_wrksrc=dist
@ -25,8 +25,8 @@ alternatives="
do_configure() {
export OPTFLAG="$CFLAGS"
./configure ${configure_args} --enable-widechar --enable-threads \
--disable-static vi_cv_path_preserve=/var/tmp --program-prefix=n \
./configure ${configure_args} --enable-widechar --disable-shared \
vi_cv_path_preserve=/var/tmp --program-prefix=n \
vi_cv_sprintf_count=yes
}
pre_build() {
@ -35,4 +35,8 @@ pre_build() {
post_install() {
# remove cat pages.
rm -rf ${DESTDIR}/usr/share/man/cat1
# remove lib.
rm -f ${DESTDIR}/usr/lib/libvi.a
# remove perl + tcl scripts.
rm -rf ${DESTDIR}/usr/share/vi/perl ${DESTDIR}/usr/share/vi/tcl
}