diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-08 00:59:32 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-08 00:59:32 +0000 |
commit | 2d3e8aa285af56be924d1d91eb019b92f7b8e62d (patch) | |
tree | d530a5ead244f228bf00975958b54e8c296a9f78 /system/nvi | |
parent | cba30bea183bc56f4b6e48d43cbc7d4266081838 (diff) | |
download | packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.gz packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.bz2 packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.xz packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.zip |
system/nvi: new package
Diffstat (limited to 'system/nvi')
-rw-r--r-- | system/nvi/APKBUILD | 40 | ||||
-rw-r--r-- | system/nvi/build-fix.patch | 19 |
2 files changed, 59 insertions, 0 deletions
diff --git a/system/nvi/APKBUILD b/system/nvi/APKBUILD new file mode 100644 index 000000000..3f5bf0eb9 --- /dev/null +++ b/system/nvi/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=nvi +pkgver=1.79 +pkgrel=0 +pkgdesc="Berkeley text editor" +url="https://sites.google.com/a/bostic.com/keithbostic/vi/" +arch="all" +options="!check" # No test suite. +license="BSD-4-Clause-UC" +depends="" +makedepends="ncurses-dev" +subpackages="$pkgname-doc" +source="https://sites.google.com/a/bostic.com/keithbostic/files/nvi-$pkgver.tar.gz + build-fix.patch + " + +build() { + cd "$builddir"/build + # Note! --disable-curses means disable *builtin* curses. + # It makes vi(1) use ncurses instead. That is what we want. + LIBS="-ltinfow" ./configure \ + --prefix=/usr \ + --mandir="$pkgdir"/usr/share/man \ + --build=$CBUILD \ + --host=$CHOST \ + --disable-curses + make +} + +package() { + cd "$builddir"/build + mkdir -p "$pkgdir" + make prefix="$pkgdir"/usr install + mv "$pkgdir"/usr/bin/ex "$pkgdir"/usr/bin/ex.nvi + mv "$pkgdir"/usr/bin/view "$pkgdir"/usr/bin/view.nvi +} + +sha512sums="d1d8adb2aeeee127f5e6fe5cc8b9e3e26fe22084075d17cceecd9cee7956131becee764d721af69626d60d6d75873d5073dc9817995f0274ed307e044921a1d0 nvi-1.79.tar.gz +591f28094731a438841ce806db870592b659dbe2548de438005adb706d2dab0d9817531b07c77c6aa3c8d6cfc7739b485c6835aed174cb84b219f978a5ae5f51 build-fix.patch" diff --git a/system/nvi/build-fix.patch b/system/nvi/build-fix.patch new file mode 100644 index 000000000..3839b7461 --- /dev/null +++ b/system/nvi/build-fix.patch @@ -0,0 +1,19 @@ +--- nvi-1.79/build/Makefile.in.old 1996-10-23 13:43:38.000000000 +0000 ++++ nvi-1.79/build/Makefile.in 2018-08-08 00:47:23.110000000 +0000 +@@ -137,16 +137,6 @@ + $(chmod) $(dmode) $(datadir)/vi/catalog + (cd $(srcdir)/catalog && $(cp) $(cat) $(datadir)/vi/catalog && \ + cd $(datadir)/vi/catalog && $(chmod) $(fmode) *) +- @echo "Installing Perl scripts: $(datadir)/vi/perl ..." +- $(mkdir) $(datadir)/vi/perl && $(chmod) $(dmode) $(datadir)/vi/perl +- [ -f VI.pm ] && $(cp) VI.pm $(datadir)/vi/perl && \ +- cd $(datadir)/vi/perl && $(chmod) $(fmode) VI.pm) +- (cd $(srcdir)/perl_scripts && $(cp) *.pl $(datadir)/vi/perl && \ +- cd $(datadir)/vi/perl && $(chmod) $(fmode) *.pl) +- @echo "Installing Tcl scripts: $(datadir)/vi/tcl ..." +- $(mkdir) $(datadir)/vi/tcl && $(chmod) $(dmode) $(datadir)/vi/tcl +- (cd $(srcdir)/tcl_scripts && $(cp) *.tcl $(datadir)/vi/tcl && \ +- cd $(datadir)/vi/tcl && $(chmod) $(fmode) *.tcl) + @echo "Installing recover script: $(datadir)/vi/recover ..." + ($(cp) recover $(datadir)/vi/recover && \ + $(chmod) $(emode) $(datadir)/vi/recover) |