2012-07-14 19:04:11 +00:00
|
|
|
# Template file for 'nvi'
|
|
|
|
pkgname=nvi
|
|
|
|
version=1.81.6
|
2015-03-04 18:44:01 +00:00
|
|
|
revision=8
|
2012-07-14 19:04:11 +00:00
|
|
|
patch_args="-Np1"
|
2015-03-04 18:44:01 +00:00
|
|
|
build_pie=yes
|
2012-07-14 19:04:11 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
build_wrksrc=dist
|
2013-05-09 14:26:34 +00:00
|
|
|
makedepends="ncurses-devel db-devel>=5.3"
|
2012-07-14 19:04:11 +00:00
|
|
|
short_desc="The Berkeley Vi Editor"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="BSD"
|
2013-02-16 10:03:12 +00:00
|
|
|
homepage="http://garage.linux.student.kuleuven.be/~skimo/nvi"
|
2013-10-27 08:54:22 +00:00
|
|
|
#distfiles="${homepage}/devel/nvi-$version.tar.bz2"
|
|
|
|
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/nvi/nvi-${version}.tar.bz2/88d1e23115ee9f2961186b62e55f5704/nvi-${version}.tar.bz2"
|
2012-07-14 19:04:11 +00:00
|
|
|
checksum=3441b8e3247b2b6dd19b5fd38355fe6593b2a92e960ecb3dd00d676f63d06b59
|
|
|
|
|
2014-06-21 09:35:52 +00:00
|
|
|
do_configure() {
|
|
|
|
export OPTFLAG="$CFLAGS"
|
|
|
|
./configure ${configure_args} --enable-widechar --enable-threads \
|
|
|
|
--disable-static vi_cv_path_preserve=/var/tmp vi_cv_sprintf_count=yes
|
|
|
|
}
|
2012-07-14 19:04:11 +00:00
|
|
|
pre_build() {
|
2013-02-16 10:03:12 +00:00
|
|
|
sed -i -e '/define.*_PATH_MSGCAT/ s/".*"/"\/usr\/share\/vi\/catalog\/"/' pathnames.h
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
# remove cat pages.
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man/cat1
|
2012-07-14 19:04:11 +00:00
|
|
|
}
|