summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald van Dijk <truedfx@gentoo.org>2008-12-28 00:09:59 +0000
committerHarald van Dijk <truedfx@gentoo.org>2008-12-28 00:09:59 +0000
commite68a74b568cc58846c26fad4d4c4e62e93d345d0 (patch)
treeeac82a1a965ff1d37c776473801d1f93b6baff56 /app-editors/nvi
parentFix broken Manifest. (diff)
downloadhistorical-e68a74b568cc58846c26fad4d4c4e62e93d345d0.tar.gz
historical-e68a74b568cc58846c26fad4d4c4e62e93d345d0.tar.bz2
historical-e68a74b568cc58846c26fad4d4c4e62e93d345d0.zip
Fix "DB_CREATE must be specified to create databases." message with recent db, and make translations work
Package-Manager: portage-2.2_rc19/cvs/Linux 2.6.28-gentoo x86_64
Diffstat (limited to 'app-editors/nvi')
-rw-r--r--app-editors/nvi/ChangeLog14
-rw-r--r--app-editors/nvi/Manifest21
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-build.patch126
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-db4.patch190
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-gcc4.patch172
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-header.patch10
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-tcsetattr.patch20
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-wide-2.patch13
-rw-r--r--app-editors/nvi/files/nvi-1.81.5-wide.patch102
-rw-r--r--app-editors/nvi/files/nvi-1.81.6-db44.patch29
-rw-r--r--app-editors/nvi/nvi-1.81.5-r3.ebuild67
-rw-r--r--app-editors/nvi/nvi-1.81.5-r6.ebuild60
-rw-r--r--app-editors/nvi/nvi-1.81.5-r7.ebuild62
-rw-r--r--app-editors/nvi/nvi-1.81.6-r2.ebuild67
14 files changed, 115 insertions, 838 deletions
diff --git a/app-editors/nvi/ChangeLog b/app-editors/nvi/ChangeLog
index 5ed26df16efa..ca9de3db7046 100644
--- a/app-editors/nvi/ChangeLog
+++ b/app-editors/nvi/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for app-editors/nvi
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.65 2008/10/05 14:52:40 truedfx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.66 2008/12/28 00:09:59 truedfx Exp $
+
+*nvi-1.81.6-r2 (28 Dec 2008)
+
+ 28 Dec 2008; Harald van Dijk <truedfx@gentoo.org>
+ -files/nvi-1.81.5-build.patch, -files/nvi-1.81.5-db4.patch,
+ -files/nvi-1.81.5-gcc4.patch, -files/nvi-1.81.5-header.patch,
+ -files/nvi-1.81.5-tcsetattr.patch, -files/nvi-1.81.5-wide.patch,
+ -files/nvi-1.81.5-wide-2.patch, +files/nvi-1.81.6-db44.patch,
+ -nvi-1.81.5-r3.ebuild, -nvi-1.81.5-r6.ebuild, -nvi-1.81.5-r7.ebuild,
+ +nvi-1.81.6-r2.ebuild:
+ Fix "DB_CREATE must be specified to create databases." message with recent
+ db, and make translations work
*nvi-1.81.6-r1 (05 Oct 2008)
diff --git a/app-editors/nvi/Manifest b/app-editors/nvi/Manifest
index faafe2970e86..652f46f1b77c 100644
--- a/app-editors/nvi/Manifest
+++ b/app-editors/nvi/Manifest
@@ -1,26 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX nvi-1.81.5-build.patch 5616 RMD160 94456cee460a371ba65565103e0e220d85cf6bec SHA1 539960d2362fad865544a37799ab5fc3233e77fe SHA256 b8bffc7446047f366c831041620bbd382b0118e17c8dd4b2e8dc0b2050c99461
-AUX nvi-1.81.5-db4.patch 6288 RMD160 cf2ed5ea2a3bee407c6552d939d3fa5fcc3c5c9f SHA1 29b047ff3bb88dec4f3d6e7ffaa50bcd562582fa SHA256 aa569f39677027870722856fd07c8087b563c843423484e35fba65a0545cbc2f
-AUX nvi-1.81.5-gcc4.patch 4897 RMD160 112ea6512b5911185f81fac4a3c83826ae3ef709 SHA1 6d63d72f289649acb6129a944b2c019458251c30 SHA256 9555eb2dc52881d0a9e46b8b4212211f5c2202412f7a7f39633daa5a5842bc3b
-AUX nvi-1.81.5-header.patch 200 RMD160 c538d5cb307579036bc36d37d72eaec7b0ec6e81 SHA1 cfbb3f853527c1f2cd406287491f1ec72ce0c226 SHA256 acf3d3a74a6b3e104dd5dac6dd961c99b46e3103bdf9b4ff81e7e337dbe55537
-AUX nvi-1.81.5-tcsetattr.patch 565 RMD160 a086c01ffe498b1472cfde7cf1a261b79280df85 SHA1 219eea501f7f3c2ad440cae3d9e164699eeebbfc SHA256 1e912b57ceb65370540c28ca6114a0254eb4238583d7eb4850d4f3d437141b26
-AUX nvi-1.81.5-wide-2.patch 340 RMD160 5decec518d3b9b5e2963a0175c3f8afd467f7324 SHA1 c5c5ef21dd2b0d22b2f0887ffd10ea6ed90f62cd SHA256 b5df517b8dbdf6dda99520ed872e5a0c8c842789ec16491cfcaf3c1d879d1e30
-AUX nvi-1.81.5-wide.patch 2464 RMD160 b6515008120041bd1888dc55253cb5b224c58dff SHA1 b5513b2832450d5a302b3f3837c352a90a9b6e62 SHA256 99139bb3762a800af88e38fcb826fde8a95cfd8feb803a30f42616a15bb71691
-DIST nvi-1.81.5.tar.gz 1628555 RMD160 d1cfd4a87250baea4832ed6cac69ed18e6880915 SHA1 a4a8ee861526f661b3461c79df9c61ce0d508f79 SHA256 4c6b5c13999d8883da85e49e6dc2d02dddc084ac24fc72102cc372c5a0b7e745
+AUX nvi-1.81.6-db44.patch 998 RMD160 a5a91404a22a06b3160d63dd8ad9ddb71a3a384b SHA1 116a870972480867ff916164fc26f5a6afd43342 SHA256 89b6ca0631c4f1df351c8000da17b5c5ca094bbcf704372b0333d37580b50998
DIST nvi-1.81.6.tar.bz2 1758309 RMD160 0db8568bea96392d9a027044177c60317c8ade36 SHA1 d3445ed69166102735335a2ff60d092d9a9143c6 SHA256 3441b8e3247b2b6dd19b5fd38355fe6593b2a92e960ecb3dd00d676f63d06b59
-EBUILD nvi-1.81.5-r3.ebuild 1728 RMD160 1cbbe2647ba64d3ebbf6f6133a3db8a28f11c242 SHA1 b2ee85bdc76abd79b037a89d560bd1c4ec9840a7 SHA256 3c7f17a533d6d60136441fcd6ce7c4169af8728ada4d81749793bf0fe065f823
-EBUILD nvi-1.81.5-r6.ebuild 1393 RMD160 cd62a8801a8f245e4d6baa9fdeca451c34b8ab34 SHA1 36ea69ed56546e67d8593e1d204f7bdff17a593d SHA256 fe56b0befe432e094b660943ee69c30f8a2967452f1ff5f1dc8be92c305c04ef
-EBUILD nvi-1.81.5-r7.ebuild 1494 RMD160 0243df6b5ad5b7498440c9ee75dbb1a0e71b226b SHA1 e85a706ea04d0404cd38082c9331bb0a309f1bad SHA256 8c2858a3777a2cded42173d0c637e3c8423ef62c003398a59959772e2338be74
EBUILD nvi-1.81.6-r1.ebuild 1494 RMD160 d035924f6abd9ece7b5a35b2767d55ec142f46a8 SHA1 2c617c849bf3eb85376acdba74f16de1b5106fad SHA256 77bf4212f73669ae3f303f5420a101c08a15f9c5bd83d466987333dea42c8646
+EBUILD nvi-1.81.6-r2.ebuild 1622 RMD160 5a6dc36e47559cb6110411618246c040e08dc19e SHA1 73c9ea971b4f568aa05bd5787498c0fb1cddddc2 SHA256 37e72b2ef7979d1b328061c07226768644000485123c453a5ea9b3f6fa958f06
EBUILD nvi-1.81.6.ebuild 1465 RMD160 38ad055765b0040a77a8433356f99f1a1d2b5609 SHA1 e794c65bfff09d72cc22a982a1ec3e99e59e98dd SHA256 8dc902896a6a98bc7e9bd5cdf52686f5270f4e257999584f903148497e9d86ff
-MISC ChangeLog 8827 RMD160 cd9ee2e469aa40fc0a0db1296741460e3ee4f2cc SHA1 f30400d488471c49654a38a48dc3c8e06a580e44 SHA256 47f1b7836c4be553167b507d8d104134308bce5c752083e0712f5e0dd1bf8b9b
+MISC ChangeLog 9373 RMD160 a7b8dd4d1c20ba866f54fc01e199a0fdc6c80d23 SHA1 6f1e7ae5b0cdfa7af07f08ab2570156cfb96155b SHA256 b405ddaa896ec8a8e84de2416a7f5fa7f3f11d44f35838f7bd158eaebd910248
MISC metadata.xml 250 RMD160 61af8ec7e1bf9941d107eff4cc6a639874a6f198 SHA1 7ea68a3bd071637e4a49b61b2f7e35f3277545ef SHA256 aec181c304bce77cce8f1dc110e0203bc06b7c524ab40b1aac19a6f72aefdfde
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkjo1MIACgkQwnQyISwouHwzywCffzg2oQYACpgxyfypngeD43+r
-7sAAoJj9mLBu19ZzqrKJ8b+7d+SsW8KO
-=adhD
+iEYEARECAAYFAklWxBYACgkQwnQyISwouHyjMQCeOxx1DFZUCUrOLe3fn1aK9+Q+
+RYkAnjjBIzfLI9yLyXt89vNp8TXDiDPS
+=5fDr
-----END PGP SIGNATURE-----
diff --git a/app-editors/nvi/files/nvi-1.81.5-build.patch b/app-editors/nvi/files/nvi-1.81.5-build.patch
deleted file mode 100644
index 76a4fc1053a6..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-build.patch
+++ /dev/null
@@ -1,126 +0,0 @@
---- nvi-1.81.5/dist/Makefile.am
-+++ nvi-1.81.5/dist/Makefile.am
-@@ -270,33 +270,16 @@
- install-exec-local:
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo ex | sed '$(transform)'`
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo view | sed '$(transform)'`
-- cd $(DESTDIR)$(bindir) && $(ln) \
-+ cd $(DESTDIR)$(bindir) && $(ln) -s \
- `echo vi | sed '$(transform)'` `echo ex | sed '$(transform)'`
-- cd $(DESTDIR)$(bindir) && $(ln) \
-+ cd $(DESTDIR)$(bindir) && $(ln) -s \
- `echo vi | sed '$(transform)'` `echo view | sed '$(transform)'`
-
- install-data-local: install_common
- @[ -d $(DESTDIR)$(mandir) ] || \
- ($(mkdir) $(DESTDIR)$(mandir) && \
- $(chmod) $(dmode) $(DESTDIR)$(mandir))
-- @[ -d $(DESTDIR)$(mandir)/cat1 ] || \
-- ($(mkdir) $(DESTDIR)$(mandir)/cat1 && \
-- $(chmod) $(dmode) $(DESTDIR)$(mandir)/cat1)
- @echo "Installing man pages: $(DESTDIR)$(mandir) ..."
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo vi.0 | sed '$(transform)'`
-- @$(cp) $(visrcdir)/docs/vi.man/vi.0 \
-- $(DESTDIR)$(mandir)/cat1/`echo vi.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo ex.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo view.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && $(ln) \
-- `echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && $(ln) \
-- `echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'`
- @[ -d $(DESTDIR)$(mandir)/man1 ] || \
- ($(mkdir) $(DESTDIR)$(mandir)/man1 && \
- $(chmod) $(dmode) $(DESTDIR)$(mandir)/man1)
-@@ -310,9 +293,9 @@
- $(rm) -f `echo ex.1 | sed '$(transform)'`
- @cd $(DESTDIR)$(mandir)/man1 && \
- $(rm) -f `echo view.1 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/man1 && $(ln) \
-+ @cd $(DESTDIR)$(mandir)/man1 && $(ln) -s \
- `echo vi.1 | sed '$(transform)'` `echo ex.1 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/man1 && $(ln) \
-+ @cd $(DESTDIR)$(mandir)/man1 && $(ln) -s \
- `echo vi.1 | sed '$(transform)'` `echo view.1 | sed '$(transform)'`
-
- cat= dutch english french german ru_SU.KOI8-R spanish swedish
-@@ -363,12 +346,6 @@
- $(rm) -rf $(DESTDIR)$(datadir)/vi
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo ex | sed '$(transform)'`
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo view | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo ex.0 | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo vi.0 | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo view.0 | sed '$(transform)'`
- cd $(DESTDIR)$(mandir)/man1 && \
- $(rm) -f `echo ex.1 | sed '$(transform)'`
- cd $(DESTDIR)$(mandir)/man1 && \
---- nvi-1.81.5/dist/Makefile.in
-+++ nvi-1.81.5/dist/Makefile.in
-@@ -2556,33 +2556,16 @@
- install-exec-local:
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo ex | sed '$(transform)'`
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo view | sed '$(transform)'`
-- cd $(DESTDIR)$(bindir) && $(ln) \
-+ cd $(DESTDIR)$(bindir) && $(ln) -s \
- `echo vi | sed '$(transform)'` `echo ex | sed '$(transform)'`
-- cd $(DESTDIR)$(bindir) && $(ln) \
-+ cd $(DESTDIR)$(bindir) && $(ln) -s \
- `echo vi | sed '$(transform)'` `echo view | sed '$(transform)'`
-
- install-data-local: install_common
- @[ -d $(DESTDIR)$(mandir) ] || \
- ($(mkdir) $(DESTDIR)$(mandir) && \
- $(chmod) $(dmode) $(DESTDIR)$(mandir))
-- @[ -d $(DESTDIR)$(mandir)/cat1 ] || \
-- ($(mkdir) $(DESTDIR)$(mandir)/cat1 && \
-- $(chmod) $(dmode) $(DESTDIR)$(mandir)/cat1)
- @echo "Installing man pages: $(DESTDIR)$(mandir) ..."
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo vi.0 | sed '$(transform)'`
-- @$(cp) $(visrcdir)/docs/vi.man/vi.0 \
-- $(DESTDIR)$(mandir)/cat1/`echo vi.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo ex.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo view.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && $(ln) \
-- `echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/cat1 && $(ln) \
-- `echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'`
- @[ -d $(DESTDIR)$(mandir)/man1 ] || \
- ($(mkdir) $(DESTDIR)$(mandir)/man1 && \
- $(chmod) $(dmode) $(DESTDIR)$(mandir)/man1)
-@@ -2596,9 +2579,9 @@
- $(rm) -f `echo ex.1 | sed '$(transform)'`
- @cd $(DESTDIR)$(mandir)/man1 && \
- $(rm) -f `echo view.1 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/man1 && $(ln) \
-+ @cd $(DESTDIR)$(mandir)/man1 && $(ln) -s \
- `echo vi.1 | sed '$(transform)'` `echo ex.1 | sed '$(transform)'`
-- @cd $(DESTDIR)$(mandir)/man1 && $(ln) \
-+ @cd $(DESTDIR)$(mandir)/man1 && $(ln) -s \
- `echo vi.1 | sed '$(transform)'` `echo view.1 | sed '$(transform)'`
- install_common:
- @[ -f $(chmod) ] || (echo 'chmod not found.'; exit 1)
-@@ -2647,12 +2630,6 @@
- $(rm) -rf $(DESTDIR)$(datadir)/vi
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo ex | sed '$(transform)'`
- cd $(DESTDIR)$(bindir) && $(rm) -f `echo view | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo ex.0 | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo vi.0 | sed '$(transform)'`
-- cd $(DESTDIR)$(mandir)/cat1 && \
-- $(rm) -f `echo view.0 | sed '$(transform)'`
- cd $(DESTDIR)$(mandir)/man1 && \
- $(rm) -f `echo ex.1 | sed '$(transform)'`
- cd $(DESTDIR)$(mandir)/man1 && \
diff --git a/app-editors/nvi/files/nvi-1.81.5-db4.patch b/app-editors/nvi/files/nvi-1.81.5-db4.patch
deleted file mode 100644
index 18e25d59abd2..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-db4.patch
+++ /dev/null
@@ -1,190 +0,0 @@
---- nvi-1.81.5/dist/configure.in
-+++ nvi-1.81.5/dist/configure.in
-@@ -922,11 +922,14 @@
- CFLAGS="-I$with_db3/include $CFLAGS"
- fi;
-
-+saveLIBS="$LIBS"
-+LIBS="$LIBS -ldb"
--AC_CHECK_LIB(db, db_create,
-+AC_TRY_LINK([#include <db.h>], [db_create(0, 0, 0)],
- [vi_cv_dbfatal="no"], [vi_cv_dbfatal="yes"])
- if test "$vi_cv_dbfatal" = "yes"; then
-- AC_MSG_ERROR([Need DB 3.])
-+ AC_MSG_ERROR([Need DB 4.])
- fi
-+LIBS="$saveLIBS"
-
- LDFLAGS="$saveLDFLAGS"
-
---- nvi-1.81.5/dist/configure
-+++ nvi-1.81.5/dist/configure
-@@ -10679,56 +10679,36 @@
- CFLAGS="-I$with_db3/include $CFLAGS"
- fi;
-
--echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
--echo "configure:10684: checking for db_create in -ldb" >&5
--ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
--if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-- echo $ac_n "(cached) $ac_c" 1>&6
--else
-- ac_save_LIBS="$LIBS"
--LIBS="-ldb $LIBS"
-+saveLIBS="$LIBS"
-+LIBS="$LIBS -ldb"
- cat > conftest.$ac_ext <<EOF
--#line 10692 "configure"
-+#line 10686 "configure"
- #include "confdefs.h"
--/* Override any gcc2 internal prototype to avoid an error. */
--/* We use char because int might match the return type of a gcc2
-- builtin and then its argument prototype would still apply. */
--char db_create();
--
-+#include <db.h>
- int main() {
--db_create()
-+db_create(0, 0, 0)
- ; return 0; }
- EOF
--if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-+if { (eval echo configure:10693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=yes"
-+ vi_cv_dbfatal="no"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=no"
-+ vi_cv_dbfatal="yes"
- fi
- rm -f conftest*
--LIBS="$ac_save_LIBS"
--
--fi
--if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-- echo "$ac_t""yes" 1>&6
-- vi_cv_dbfatal="no"
--else
-- echo "$ac_t""no" 1>&6
--vi_cv_dbfatal="yes"
--fi
--
- if test "$vi_cv_dbfatal" = "yes"; then
-- { echo "configure: error: Need DB 3." 1>&2; exit 1; }
-+ { echo "configure: error: Need DB 4." 1>&2; exit 1; }
- fi
-+LIBS="$saveLIBS"
-
- LDFLAGS="$saveLDFLAGS"
-
-
- echo $ac_n "checking if --enable-dynamic-loading option specified""... $ac_c" 1>&6
--echo "configure:10732: checking if --enable-dynamic-loading option specified" >&5
-+echo "configure:10712: checking if --enable-dynamic-loading option specified" >&5
- # Check whether --enable-dynamic-loading or --disable-dynamic-loading was given.
- if test "${enable_dynamic_loading+set}" = set; then
- enableval="$enable_dynamic_loading"
-@@ -10740,7 +10720,7 @@
- echo "$ac_t""$vi_cv_dl" 1>&6
- if test "$vi_cv_dl" = yes; then
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
--echo "configure:10744: checking for dlopen in -ldl" >&5
-+echo "configure:10724: checking for dlopen in -ldl" >&5
- ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-@@ -10748,7 +10728,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
--#line 10752 "configure"
-+#line 10732 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
-@@ -10759,7 +10739,7 @@
- dlopen()
- ; return 0; }
- EOF
--if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-+if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
-@@ -10789,7 +10769,7 @@
- # Extract the first word of "libdb-3.so", so it can be a program name with args.
- set dummy libdb-3.so; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
--echo "configure:10793: checking for $ac_word" >&5
-+echo "configure:10773: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_db3'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-@@ -10843,7 +10823,7 @@
-
-
- echo $ac_n "checking if --disable-re option specified""... $ac_c" 1>&6
--echo "configure:10847: checking if --disable-re option specified" >&5
-+echo "configure:10827: checking if --disable-re option specified" >&5
- # Check whether --enable-re or --disable-re was given.
- if test "${enable_re+set}" = set; then
- enableval="$enable_re"
---- nvi-1.81.5/common/db.c
-+++ nvi-1.81.5/common/db.c
-@@ -175,7 +175,7 @@
- data.ulen = ep->c_blen;
- data.flags = DB_DBT_USERMEM;
- switch (ep->db->get(ep->db, NULL, &key, &data, 0)) {
-- case ENOMEM:
-+ case DB_BUFFER_SMALL:
- nlen = data.size;
- goto retry;
- default:
---- nvi-1.81.5/common/db.h
-+++ nvi-1.81.5/common/db.h
-@@ -1,5 +1,9 @@
- #include <db.h>
-
-+#ifndef DB_BUFFER_SMALL
-+#define DB_BUFFER_SMALL ENOMEM
-+#endif
-+
- #ifdef USE_DYNAMIC_LOADING
- #define db_create nvi_db_create
- #define db_env_create nvi_db_env_create
---- nvi-1.81.5/common/exf.c
-+++ nvi-1.81.5/common/exf.c
-@@ -282,7 +282,7 @@
- #define NOMMAPIFFCNTL 0
- #endif
-
-- if ((sp->db_error = ep->db->open(ep->db, ep->rcv_path, NULL, DB_RECNO,
-+ if ((sp->db_error = ep->db->open(ep->db, NULL, ep->rcv_path, NULL, DB_RECNO,
- ((rcv_name == 0) ? DB_TRUNCATE : 0) | VI_DB_THREAD | NOMMAPIFFCNTL,
- S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) != 0) {
- msgq_str(sp,
---- nvi-1.81.5/common/log.c
-+++ nvi-1.81.5/common/log.c
-@@ -108,7 +108,7 @@
- ep->l_high = ep->l_cur = 1;
-
- if (db_create(&ep->log, sp->gp->env, 0) != 0 ||
-- ep->log->open(ep->log, NULL, NULL, DB_RECNO,
-+ ep->log->open(ep->log, NULL, NULL, NULL, DB_RECNO,
- DB_CREATE | VI_DB_THREAD, S_IRUSR | S_IWUSR) != 0) {
- msgq(sp, M_SYSERR, "009|Log file");
- F_SET(ep, F_NOLOG);
---- nvi-1.81.5/common/msg.c
-+++ nvi-1.81.5/common/msg.c
-@@ -721,7 +721,7 @@
- p = file;
- if ((sp->db_error = db_create(&db, sp->gp->env, 0)) != 0 ||
- (sp->db_error = db->set_re_source(db, p)) != 0 ||
-- (sp->db_error = db->open(db, NULL, NULL, DB_RECNO, 0, 0)) != 0) {
-+ (sp->db_error = db->open(db, NULL, NULL, NULL, DB_RECNO, 0, 0)) != 0) {
- if (first) {
- first = 0;
- return (1);
diff --git a/app-editors/nvi/files/nvi-1.81.5-gcc4.patch b/app-editors/nvi/files/nvi-1.81.5-gcc4.patch
deleted file mode 100644
index 2e7d0f85a06e..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-gcc4.patch
+++ /dev/null
@@ -1,172 +0,0 @@
---- nvi-1.81.5/cl/cl_funcs.c
-+++ nvi-1.81.5/cl/cl_funcs.c
-@@ -381,7 +381,7 @@
-
- if (CLSP(discardp)) {
- delwin(CLSP(discardp));
-- CLSP(discardp) = NULL;
-+ discardp->cl_private = NULL;
- }
- }
-
-@@ -395,7 +395,7 @@
-
- if (CLSP(tsp))
- delwin(CLSP(tsp));
-- CLSP(tsp) = subwin(stdscr, tsp->rows, tsp->cols,
-+ tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols,
- tsp->roff, tsp->coff);
- }
-
-@@ -716,9 +716,9 @@
- if (CLSP(origp))
- delwin(CLSP(origp));
-
-- CLSP(origp) = subwin(stdscr, origp->rows, origp->cols,
-+ origp->cl_private = subwin(stdscr, origp->rows, origp->cols,
- origp->roff, origp->coff);
-- CLSP(newp) = subwin(stdscr, newp->rows, newp->cols,
-+ newp->cl_private = subwin(stdscr, newp->rows, newp->cols,
- newp->roff, newp->coff);
-
- /* origp is the original screen, giving up space to newp. */
---- nvi-1.81.5/cl/cl_screen.c
-+++ nvi-1.81.5/cl/cl_screen.c
-@@ -56,7 +56,7 @@
- if (F_ISSET(gp, G_SRESTART)) {
- if (CLSP(sp)) {
- delwin(CLSP(sp));
-- CLSP(sp) = NULL;
-+ sp->cl_private = NULL;
- }
- if (cl_quit(gp))
- return (1);
---- nvi-1.81.5/common/db.c
-+++ nvi-1.81.5/common/db.c
-@@ -94,6 +94,7 @@
- CHAR_T *wp;
- size_t wlen;
- size_t nlen;
-+ char *c_lp;
-
- /*
- * The underlying recno stuff handles zero by returning NULL, but
-@@ -164,7 +165,9 @@
- nlen = 1024;
- retry:
- /* data.size contains length in bytes */
-- BINC_GOTO(sp, (char *)ep->c_lp, ep->c_blen, nlen);
-+ c_lp = (char *) ep->c_lp;
-+ BINC_GOTO(sp, c_lp, ep->c_blen, nlen);
-+ ep->c_lp = (CHAR_T *) c_lp;
-
- /* Get the line from the underlying database. */
- memset(&key, 0, sizeof(key));
---- nvi-1.81.5/common/key.c
-+++ nvi-1.81.5/common/key.c
-@@ -829,11 +829,14 @@
- {
- WIN *wp;
- size_t new_nelem, olen;
-+ char *i_event;
-
- wp = sp->wp;
- new_nelem = wp->i_nelem + add;
- olen = wp->i_nelem * sizeof(wp->i_event[0]);
-- BINC_RET(sp, (char *)wp->i_event, olen, new_nelem * sizeof(wp->i_event[0]));
-+ i_event = (char *) wp->i_event;
-+ BINC_RET(sp, i_event, olen, new_nelem * sizeof(wp->i_event[0]));
-+ wp->i_event = (EVENT *) i_event;
- wp->i_nelem = olen / sizeof(wp->i_event[0]);
- return (0);
- }
---- nvi-1.81.5/common/mem.h
-+++ nvi-1.81.5/common/mem.h
-@@ -25,9 +25,10 @@
- lp = L__bincp; \
- } \
- }
--#define BINC_GOTOW(sp, lp, llen, nlen) { \
-- CHAR_T *L__bp = lp; \
-- BINC_GOTO(sp, (char *)lp, llen, (nlen) * sizeof(CHAR_T)) \
-+#define BINC_GOTOW(sp, lp, llen, nlen) { \
-+ char *L__bp = (char *) lp; \
-+ BINC_GOTO(sp, L__bp, llen, (nlen) * sizeof(CHAR_T)) \
-+ lp = (CHAR_T *) L__bp; \
- }
- #define BINC_RET(sp, lp, llen, nlen) { \
- char *L__p = lp; \
-@@ -43,8 +44,9 @@
- } \
- }
- #define BINC_RETW(sp, lp, llen, nlen) { \
-- CHAR_T *L__bp = lp; \
-- BINC_RET(sp, (char *)lp, llen, (nlen) * sizeof(CHAR_T)) \
-+ char *L__bp = (char *) lp; \
-+ BINC_RET(sp, L__bp, llen, (nlen) * sizeof(CHAR_T)) \
-+ lp = (CHAR_T *) L__bp; \
- }
-
- /*
-@@ -66,8 +68,9 @@
- } \
- }
- #define GET_SPACE_GOTOW(sp, bp, blen, nlen) { \
-- CHAR_T *L__bp = bp; \
-- GET_SPACE_GOTO(sp, (char *)bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ char *L__bp = (char *) bp; \
-+ GET_SPACE_GOTO(sp, L__bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ bp = (CHAR_T *) L__bp; \
- }
- #define GET_SPACE_RET(sp, bp, blen, nlen) { \
- WIN *L__wp = (sp) == NULL ? NULL : (sp)->wp; \
-@@ -83,8 +86,9 @@
- } \
- }
- #define GET_SPACE_RETW(sp, bp, blen, nlen) { \
-- CHAR_T *L__bp = bp; \
-- GET_SPACE_RET(sp, (char *)bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ char *L__bp = (char *) bp; \
-+ GET_SPACE_RET(sp, L__bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ bp = (CHAR_T *) L__bp; \
- }
-
- /*
-@@ -103,8 +107,9 @@
- BINC_GOTO(sp, bp, blen, nlen); \
- }
- #define ADD_SPACE_GOTOW(sp, bp, blen, nlen) { \
-- CHAR_T *L__bp = bp; \
-- ADD_SPACE_GOTO(sp, (char *)bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ char *L__bp = (char *) bp; \
-+ ADD_SPACE_GOTO(sp, L__bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ bp = (CHAR_T *) L__bp; \
- }
- #define ADD_SPACE_RET(sp, bp, blen, nlen) { \
- WIN *L__wp = (sp) == NULL ? NULL : (sp)->wp; \
-@@ -118,8 +123,9 @@
- BINC_RET(sp, bp, blen, nlen); \
- }
- #define ADD_SPACE_RETW(sp, bp, blen, nlen) { \
-- CHAR_T *L__bp = bp; \
-- ADD_SPACE_RET(sp, (char *)bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ char *L__bp = (char *) bp; \
-+ ADD_SPACE_RET(sp, L__bp, blen, (nlen) * sizeof(CHAR_T)) \
-+ bp = (CHAR_T *) L__bp; \
- }
-
- /* Free a GET_SPACE returned buffer. */
---- nvi-1.81.5/vi/v_txt.c
-+++ nvi-1.81.5/vi/v_txt.c
-@@ -589,8 +589,10 @@
-
- /* Check to see if the character fits into the replay buffers. */
- if (LF_ISSET(TXT_RECORD)) {
-- BINC_GOTO(sp, (char *)vip->rep,
-+ char *rep = (char *) vip->rep;
-+ BINC_GOTO(sp, rep,
- vip->rep_len, (rcol + 1) * sizeof(EVENT));
-+ vip->rep = (EVENT *) rep;
- vip->rep[rcol++] = *evp;
- }
-
diff --git a/app-editors/nvi/files/nvi-1.81.5-header.patch b/app-editors/nvi/files/nvi-1.81.5-header.patch
deleted file mode 100644
index d80a9f613ccf..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-header.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- nvi-1.81.5/vi/v_at.c
-+++ nvi-1.81.5/vi/v_at.c
-@@ -21,6 +21,7 @@
- #include <ctype.h>
- #include <limits.h>
- #include <stdio.h>
-+#include <string.h>
-
- #include "../common/common.h"
- #include "vi.h"
diff --git a/app-editors/nvi/files/nvi-1.81.5-tcsetattr.patch b/app-editors/nvi/files/nvi-1.81.5-tcsetattr.patch
deleted file mode 100644
index b22dfa0f4f6f..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-tcsetattr.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- cl/cl_screen.c.orig 2001-06-25 10:19:06.000000000 -0500
-+++ cl/cl_screen.c 2003-07-02 18:28:29.000000000 -0500
-@@ -369,6 +369,8 @@
-
- fast: /* Set the terminal modes. */
- if (tcsetattr(STDIN_FILENO, TCSASOFT | TCSADRAIN, &clp->vi_enter)) {
-+ if (EINTR == errno)
-+ goto fast;
- msgq(sp, M_SYSERR, "tcsetattr");
- err: (void)cl_vi_end(sp->gp);
- return (1);
-@@ -485,6 +487,8 @@
- #endif
-
- fast: if (tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->ex_enter)) {
-+ if (EINTR == errno)
-+ goto fast;
- msgq(sp, M_SYSERR, "tcsetattr");
- return (1);
- }
diff --git a/app-editors/nvi/files/nvi-1.81.5-wide-2.patch b/app-editors/nvi/files/nvi-1.81.5-wide-2.patch
deleted file mode 100644
index 7b63b46c4c3c..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-wide-2.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Correctly check option strings, bug #171069
-
---- nvi-1.81.5/common/options.c
-+++ nvi-1.81.5/common/options.c
-@@ -1055,7 +1055,7 @@
- continue;
- if (op->name[0] > name[0])
- break;
-- if (!memcmp(op->name, name, len)) {
-+ if (!memcmp(op->name, name, len * sizeof(CHAR_T))) {
- if (found != NULL)
- return (NULL);
- found = op;
diff --git a/app-editors/nvi/files/nvi-1.81.5-wide.patch b/app-editors/nvi/files/nvi-1.81.5-wide.patch
deleted file mode 100644
index ebf3305fcbca..000000000000
--- a/app-editors/nvi/files/nvi-1.81.5-wide.patch
+++ /dev/null
@@ -1,102 +0,0 @@
-Make sure nvi handles multibyte characters properly in more cases than
-before. Submitted by Karl Hakimian, http://bugs.gentoo.org/150169
-
---- nvi-1.81.5/common/multibyte.h
-+++ nvi-1.81.5/common/multibyte.h
-@@ -19,7 +19,12 @@
- #define STRCMP wcscmp
- #define STRPBRK wcspbrk
- #define TOUPPER towupper
-+#define TOLOWER towlower
-+#define ISUPPER iswupper
-+#define ISLOWER iswlower
- #define STRSET wmemset
-+#define GETC getwc
-+#define VI_EOF WEOF
-
- #define L(ch) L ## ch
-
-@@ -38,7 +43,12 @@
- #define STRCMP strcmp
- #define STRPBRK strpbrk
- #define TOUPPER toupper
-+#define TOLOWER tolower
-+#define ISUPPER isupper
-+#define ISLOWER islower
- #define STRSET memset
-+#define GETC getc
-+#define VI_EOF EOF
-
- #define L(ch) ch
-
---- nvi-1.81.5/ex/ex_subst.c
-+++ nvi-1.81.5/ex/ex_subst.c
-@@ -909,7 +909,7 @@
- }
- if (LF_ISSET(SEARCH_ICL)) {
- iclower: for (p = ptrn, len = plen; len > 0; ++p, --len)
-- if (isupper(*p))
-+ if (ISUPPER(*p))
- break;
- if (len == 0)
- reflags |= REG_ICASE;
-@@ -1363,15 +1363,15 @@
- conv = C_NOTSET; \
- /* FALLTHROUGH */ \
- case C_LOWER: \
-- if (isupper(__ch)) \
-+ if (ISUPPER(__ch)) \
-- __ch = tolower(__ch); \
-+ __ch = TOLOWER(__ch); \
- break; \
- case C_ONEUPPER: \
- conv = C_NOTSET; \
- /* FALLTHROUGH */ \
- case C_UPPER: \
-- if (islower(__ch)) \
-+ if (ISLOWER(__ch)) \
-- __ch = toupper(__ch); \
-+ __ch = TOUPPER(__ch); \
- break; \
- default: \
- abort(); \
---- nvi-1.81.5/ex/ex_util.c
-+++ nvi-1.81.5/ex/ex_util.c
-@@ -67,7 +67,7 @@
- BINC_RETW(sp, exp->ibp, exp->ibp_len, off + 1);
- p = exp->ibp + off;
- }
-- if ((ch = getc(fp)) == EOF && !feof(fp)) {
-+ if ((ch = GETC(fp)) == VI_EOF && !feof(fp)) {
- if (errno == EINTR) {
- errno = 0;
- clearerr(fp);
-@@ -75,8 +75,8 @@
- }
- return (1);
- }
-- if (ch == EOF || ch == '\n') {
-+ if (ch == VI_EOF || ch == '\n') {
-- if (ch == EOF && !off)
-+ if (ch == VI_EOF && !off)
- return (1);
- *lenp = off;
- return (0);
---- nvi-1.81.5/vi/v_ulcase.c
-+++ nvi-1.81.5/vi/v_ulcase.c
-@@ -154,11 +154,11 @@
- change = rval = 0;
- for (p = bp + scno, t = bp + ecno + 1; p < t; ++p) {
- ch = *(u_char *)p;
-- if (islower(ch)) {
-+ if (ISLOWER(*p)) {
-- *p = toupper(ch);
-+ *p = TOUPPER(*p);
- change = 1;
-- } else if (isupper(ch)) {
-+ } else if (ISUPPER(*p)) {
-- *p = tolower(ch);
-+ *p = TOLOWER(*p);
- change = 1;
- }
- }
diff --git a/app-editors/nvi/files/nvi-1.81.6-db44.patch b/app-editors/nvi/files/nvi-1.81.6-db44.patch
new file mode 100644
index 000000000000..d247c02b9915
--- /dev/null
+++ b/app-editors/nvi/files/nvi-1.81.6-db44.patch
@@ -0,0 +1,29 @@
+
+ First part is from http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/pkgsrc/editors/nvi/patches/patch-aa?rev=1.3;content-type=text/plain
+
+--- ../common/db.h
++++ ../common/db.h
+@@ -16,7 +16,10 @@
+ (env)->remove(env, path, NULL, flags)
+ #endif
+
+-#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
++#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 4
++#define db_open(db,file,type,flags,mode) \
++ (db)->open(db, NULL, file, NULL, type, flags | DB_CREATE, mode)
++#elif DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
+ #define db_open(db,file,type,flags,mode) \
+ (db)->open(db, NULL, file, NULL, type, flags, mode)
+ #else
+--- ../common/msg.c
++++ ../common/msg.c
+@@ -724,7 +724,8 @@
+ p = buf;
+ } else
+ p = file;
+- if ((sp->db_error = db_create(&db, 0, 0)) != 0 ||
++ if (access(p, R_OK) != 0 ||
++ (sp->db_error = db_create(&db, 0, 0)) != 0 ||
+ (sp->db_error = db->set_re_source(db, p)) != 0 ||
+ (sp->db_error = db_open(db, NULL, DB_RECNO, 0, 0)) != 0) {
+ if (first) {
diff --git a/app-editors/nvi/nvi-1.81.5-r3.ebuild b/app-editors/nvi/nvi-1.81.5-r3.ebuild
deleted file mode 100644
index 29d7bf954357..000000000000
--- a/app-editors/nvi/nvi-1.81.5-r3.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r3.ebuild,v 1.13 2008/07/05 04:24:06 ricmm Exp $
-
-inherit eutils
-
-DESCRIPTION="Vi clone"
-HOMEPAGE="http://www.bostic.com/vi/"
-SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.gz"
-
-LICENSE="Sleepycat"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
-IUSE="perl unicode"
-
-DEPEND="=sys-libs/db-4*"
-RDEPEND="${DEPEND}
- !app-editors/vim
- !app-editors/gvim"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-build.patch
- # Fix bug 23888
- epatch "${FILESDIR}"/${P}-tcsetattr.patch
- epatch "${FILESDIR}"/${P}-gcc4.patch
- epatch "${FILESDIR}"/${P}-db4.patch
- touch "${S}"/dist/{configure,aclocal.m4,Makefile.in,stamp-h.in}
-}
-
-src_compile() {
- local myconf
-
- use perl && myconf="${myconf} --enable-perlinterp"
- use unicode && myconf="${myconf} --enable-widechar"
-
- cd build.unix
- ECONF_SOURCE=../dist econf \
- --program-prefix=n \
- ${myconf} \
- || die "configure failed"
- emake || die "make failed"
-}
-
-src_install() {
- cd build.unix
- emake -j1 DESTDIR="${D}" install || die "install failed"
-}
-
-pkg_postinst() {
- [[ ! -e "${ROOT}"/usr/bin/vi ]] &&
- ln -sf nvi "${ROOT}"/usr/bin/vi
- [[ ! -e "${ROOT}"/usr/bin/ex ]] &&
- ln -sf nvi "${ROOT}"/usr/bin/ex
- [[ ! -e "${ROOT}"/usr/bin/view ]] &&
- ln -sf nvi "${ROOT}"/usr/bin/view
-}
-
-pkg_postrm() {
- [[ -L "${ROOT}"/usr/bin/vi && ! -f "${ROOT}"/usr/bin/vi ]] &&
- rm -f "${ROOT}"/usr/bin/vi
- [[ -L "${ROOT}"/usr/bin/ex && ! -f "${ROOT}"/usr/bin/ex ]] &&
- rm -f "${ROOT}"/usr/bin/ex
- [[ -L "${ROOT}"/usr/bin/view && ! -f "${ROOT}"/usr/bin/view ]] &&
- rm -f "${ROOT}"/usr/bin/view
-}
diff --git a/app-editors/nvi/nvi-1.81.5-r6.ebuild b/app-editors/nvi/nvi-1.81.5-r6.ebuild
deleted file mode 100644
index 7e119893c4e9..000000000000
--- a/app-editors/nvi/nvi-1.81.5-r6.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r6.ebuild,v 1.7 2008/07/05 04:24:06 ricmm Exp $
-
-inherit eutils
-
-DESCRIPTION="Vi clone"
-HOMEPAGE="http://www.bostic.com/vi/"
-SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.gz"
-
-LICENSE="Sleepycat"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
-IUSE="perl" # unicode
-
-DEPEND="=sys-libs/db-4*"
-RDEPEND="${DEPEND}
- app-admin/eselect-vi"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-build.patch
- # Fix bug 23888
- epatch "${FILESDIR}"/${P}-tcsetattr.patch
- # Fix bug 150169
- epatch "${FILESDIR}"/${P}-wide.patch
- epatch "${FILESDIR}"/${P}-gcc4.patch
- epatch "${FILESDIR}"/${P}-db4.patch
- touch "${S}"/dist/{configure,aclocal.m4,Makefile.in,stamp-h.in}
-}
-
-src_compile() {
- local myconf
-
- use perl && myconf="${myconf} --enable-perlinterp"
- #use unicode && myconf="${myconf} --enable-widechar"
-
- cd build.unix
- ECONF_SOURCE=../dist econf \
- --program-prefix=n \
- ${myconf} \
- || die "configure failed"
- emake || die "make failed"
-}
-
-src_install() {
- cd build.unix
- emake -j1 DESTDIR="${D}" install || die "install failed"
-}
-
-pkg_postinst() {
- einfo "Setting /usr/bin/vi symlink"
- eselect vi set "${PN}"
-}
-
-pkg_postrm() {
- einfo "Updating /usr/bin/vi symlink"
- eselect vi update
-}
diff --git a/app-editors/nvi/nvi-1.81.5-r7.ebuild b/app-editors/nvi/nvi-1.81.5-r7.ebuild
deleted file mode 100644
index ef7b5f8a278c..000000000000
--- a/app-editors/nvi/nvi-1.81.5-r7.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r7.ebuild,v 1.3 2007/10/10 07:14:58 opfer Exp $
-
-inherit eutils
-
-DESCRIPTION="Vi clone"
-HOMEPAGE="http://www.bostic.com/vi/"
-SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.gz"
-
-LICENSE="Sleepycat"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="perl unicode"
-
-DEPEND="=sys-libs/db-4*"
-RDEPEND="${DEPEND}
- app-admin/eselect-vi"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-build.patch
- # Fix bug 23888
- epatch "${FILESDIR}"/${P}-tcsetattr.patch
- # Fix bug 150169
- epatch "${FILESDIR}"/${P}-wide.patch
- epatch "${FILESDIR}"/${P}-wide-2.patch
- epatch "${FILESDIR}"/${P}-gcc4.patch
- epatch "${FILESDIR}"/${P}-db4.patch
- epatch "${FILESDIR}"/${P}-header.patch
- touch "${S}"/dist/{configure,aclocal.m4,Makefile.in,stamp-h.in}
-}
-
-src_compile() {
- local myconf
-
- use perl && myconf="${myconf} --enable-perlinterp"
- use unicode && myconf="${myconf} --enable-widechar"
-
- cd build.unix
- ECONF_SOURCE=../dist econf \
- --program-prefix=n \
- ${myconf} \
- || die "configure failed"
- emake || die "make failed"
-}
-
-src_install() {
- cd build.unix
- emake -j1 DESTDIR="${D}" install || die "install failed"
-}
-
-pkg_postinst() {
- einfo "Setting /usr/bin/vi symlink"
- eselect vi update --if-unset
-}
-
-pkg_postrm() {
- einfo "Updating /usr/bin/vi symlink"
- eselect vi update --if-unset
-}
diff --git a/app-editors/nvi/nvi-1.81.6-r2.ebuild b/app-editors/nvi/nvi-1.81.6-r2.ebuild
new file mode 100644
index 000000000000..8b385df3ed85
--- /dev/null
+++ b/app-editors/nvi/nvi-1.81.6-r2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.6-r2.ebuild,v 1.1 2008/12/28 00:09:59 truedfx Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Vi clone"
+HOMEPAGE="http://www.bostic.com/vi/"
+SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.bz2"
+
+LICENSE="Sleepycat"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="perl tcl unicode"
+
+DEPEND="=sys-libs/db-4*
+ perl? ( dev-lang/perl )
+ tcl? ( !unicode? ( >=dev-lang/tcl-8.5 ) )"
+RDEPEND="${DEPEND}
+ app-admin/eselect-vi"
+
+S=${WORKDIR}/${P}/build.unix
+
+pkg_setup() {
+ if use tcl && use unicode
+ then
+ ewarn "nvi does not support tcl+unicode. tcl support will not be included."
+ ewarn "If you need tcl support, please disable the unicode flag."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-db44.patch
+ chmod +x ../dist/findconfig
+}
+
+src_compile() {
+ local myconf
+
+ use perl && myconf="${myconf} --enable-perlinterp"
+ use tcl && ! use unicode && myconf="${myconf} --enable-tclinterp"
+ use unicode && myconf="${myconf} --enable-widechar"
+
+ append-flags '-D_PATH_MSGCAT="\"/usr/share/vi/catalog/\""'
+
+ ECONF_SOURCE=../dist econf \
+ --program-prefix=n \
+ ${myconf} \
+ || die "configure failed"
+ emake OPTFLAG="${CFLAGS}" || die "make failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "install failed"
+}
+
+pkg_postinst() {
+ einfo "Setting /usr/bin/vi symlink"
+ eselect vi update --if-unset
+}
+
+pkg_postrm() {
+ einfo "Updating /usr/bin/vi symlink"
+ eselect vi update --if-unset
+}