From 126dbdaf881905b0406be15a27fa842fd91d11e1 Mon Sep 17 00:00:00 2001 From: Rhonda D'Vine Date: Thu, 13 Aug 2015 17:13:45 +0200 Subject: [PATCH] Import upstream git --- abook.spec | 47 - config.guess | 0 config.sub | 0 configure.in | 154 --- contrib/CVS/Entries | 1 - contrib/CVS/Repository | 1 - contrib/CVS/Root | 1 - contrib/abook+vim/README | 57 - contrib/abook+vim/mail.vim | 530 --------- contrib/bbdb2xx.cc | 1158 ------------------- contrib/epm/README | 14 - contrib/epm/abook.list.in | 51 - contrib/epm/configure.in | 76 -- contrib/epm/configure.in.patch | 29 - contrib/ldap-abook/comms.pl | 4 - contrib/ldap-abook/comms.pl-en | 4 - contrib/ldap-abook/comms.pl-pl | 4 - contrib/ldap-abook/ldap2abook | 95 -- contrib/mail2abook.py | 438 -------- contrib/vcard2abook.pl | 91 -- contrib/whitelist/README | 41 - contrib/whitelist/abook2whitelist.sh | 3 - contrib/whitelist/mutt.whitelist | 2 - contrib/whitelist/patch.orig.obsolete | 61 - contrib/whitelist/whitelist.rc | 9 - intl/ChangeLog | 4 - intl/Makefile.in | 501 --------- intl/VERSION | 1 - intl/bindtextdom.c | 363 ------ intl/config.charset | 638 ----------- intl/dcgettext.c | 56 - intl/dcigettext.c | 1258 --------------------- intl/dcngettext.c | 57 - intl/dgettext.c | 58 - intl/dngettext.c | 59 - intl/eval-plural.h | 108 -- intl/explodename.c | 185 --- intl/finddomain.c | 192 ---- intl/gettext.c | 63 -- intl/gettextP.h | 218 ---- intl/gmo.h | 149 --- intl/hash-string.h | 48 - intl/intl-compat.c | 131 --- intl/l10nflist.c | 421 ------- intl/langprefs.c | 130 --- intl/libgnuintl.h.in | 383 ------- intl/loadinfo.h | 145 --- intl/loadmsgcat.c | 1420 ----------------------- intl/localcharset.c | 409 ------- intl/localcharset.h | 42 - intl/locale.alias | 78 -- intl/localealias.c | 414 ------- intl/localename.c | 1500 ------------------------- intl/log.c | 98 -- intl/ngettext.c | 65 -- intl/os2compat.c | 98 -- intl/os2compat.h | 46 - intl/osdep.c | 24 - intl/plural-exp.c | 154 --- intl/plural-exp.h | 118 -- intl/plural.c | 1490 ------------------------ intl/plural.y | 381 ------- intl/printf-args.c | 119 -- intl/printf-args.h | 137 --- intl/printf-parse.c | 537 --------- intl/printf-parse.h | 75 -- intl/printf.c | 371 ------ intl/ref-add.sin | 31 - intl/ref-del.sin | 26 - intl/relocatable.c | 449 -------- intl/relocatable.h | 77 -- intl/textdomain.c | 141 --- intl/vasnprintf.c | 902 --------------- intl/vasnprintf.h | 78 -- intl/vasnwprintf.h | 46 - intl/wprintf-parse.h | 75 -- intl/xsize.h | 109 -- m4/inttypes.m4 | 25 - m4/longdouble.m4 | 28 - m4/signed.m4 | 17 - m4/ulonglong.m4 | 23 - po/de.gmo | Bin 12851 -> 0 bytes po/fr.gmo | Bin 15769 -> 0 bytes po/it.gmo | Bin 14762 -> 0 bytes po/ja.gmo | Bin 11645 -> 0 bytes po/stamp-po | 1 - po/sv.gmo | Bin 11029 -> 0 bytes 87 files changed, 17643 deletions(-) delete mode 100644 abook.spec mode change 100644 => 100755 config.guess mode change 100644 => 100755 config.sub delete mode 100644 configure.in delete mode 100644 contrib/CVS/Entries delete mode 100644 contrib/CVS/Repository delete mode 100644 contrib/CVS/Root delete mode 100644 contrib/abook+vim/README delete mode 100644 contrib/abook+vim/mail.vim delete mode 100644 contrib/bbdb2xx.cc delete mode 100644 contrib/epm/README delete mode 100644 contrib/epm/abook.list.in delete mode 100644 contrib/epm/configure.in delete mode 100644 contrib/epm/configure.in.patch delete mode 100644 contrib/ldap-abook/comms.pl delete mode 100644 contrib/ldap-abook/comms.pl-en delete mode 100644 contrib/ldap-abook/comms.pl-pl delete mode 100644 contrib/ldap-abook/ldap2abook delete mode 100755 contrib/mail2abook.py delete mode 100755 contrib/vcard2abook.pl delete mode 100644 contrib/whitelist/README delete mode 100755 contrib/whitelist/abook2whitelist.sh delete mode 100644 contrib/whitelist/mutt.whitelist delete mode 100644 contrib/whitelist/patch.orig.obsolete delete mode 100755 contrib/whitelist/whitelist.rc delete mode 100644 intl/ChangeLog delete mode 100644 intl/Makefile.in delete mode 100644 intl/VERSION delete mode 100644 intl/bindtextdom.c delete mode 100755 intl/config.charset delete mode 100644 intl/dcgettext.c delete mode 100644 intl/dcigettext.c delete mode 100644 intl/dcngettext.c delete mode 100644 intl/dgettext.c delete mode 100644 intl/dngettext.c delete mode 100644 intl/eval-plural.h delete mode 100644 intl/explodename.c delete mode 100644 intl/finddomain.c delete mode 100644 intl/gettext.c delete mode 100644 intl/gettextP.h delete mode 100644 intl/gmo.h delete mode 100644 intl/hash-string.h delete mode 100644 intl/intl-compat.c delete mode 100644 intl/l10nflist.c delete mode 100644 intl/langprefs.c delete mode 100644 intl/libgnuintl.h.in delete mode 100644 intl/loadinfo.h delete mode 100644 intl/loadmsgcat.c delete mode 100644 intl/localcharset.c delete mode 100644 intl/localcharset.h delete mode 100644 intl/locale.alias delete mode 100644 intl/localealias.c delete mode 100644 intl/localename.c delete mode 100644 intl/log.c delete mode 100644 intl/ngettext.c delete mode 100644 intl/os2compat.c delete mode 100644 intl/os2compat.h delete mode 100644 intl/osdep.c delete mode 100644 intl/plural-exp.c delete mode 100644 intl/plural-exp.h delete mode 100644 intl/plural.c delete mode 100644 intl/plural.y delete mode 100644 intl/printf-args.c delete mode 100644 intl/printf-args.h delete mode 100644 intl/printf-parse.c delete mode 100644 intl/printf-parse.h delete mode 100644 intl/printf.c delete mode 100644 intl/ref-add.sin delete mode 100644 intl/ref-del.sin delete mode 100644 intl/relocatable.c delete mode 100644 intl/relocatable.h delete mode 100644 intl/textdomain.c delete mode 100644 intl/vasnprintf.c delete mode 100644 intl/vasnprintf.h delete mode 100644 intl/vasnwprintf.h delete mode 100644 intl/wprintf-parse.h delete mode 100644 intl/xsize.h delete mode 100644 m4/inttypes.m4 delete mode 100644 m4/longdouble.m4 delete mode 100644 m4/signed.m4 delete mode 100644 m4/ulonglong.m4 delete mode 100644 po/de.gmo delete mode 100644 po/fr.gmo delete mode 100644 po/it.gmo delete mode 100644 po/ja.gmo delete mode 100644 po/stamp-po delete mode 100644 po/sv.gmo diff --git a/abook.spec b/abook.spec deleted file mode 100644 index 2b8023b..0000000 --- a/abook.spec +++ /dev/null @@ -1,47 +0,0 @@ -Summary: Text-based addressbook program -Name: abook -Version: 0.6.0pre2 -Release: 1 -License: GPL -Group: Utilities -Source: http://prdownloads.sourceforge.net/abook/%{name}-%{version}.tar.gz -URL: http://abook.sourceforge.net/ -BuildPreReq: ncurses-devel readline-devel gettext -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -Abook is a text-based addressbook program designed to -use with mutt mail client. - - -%prep -%setup -q - - -%build -%configure -make %{_smp_mflags} - - -%install -%makeinstall - -%find_lang %{name} - - -%clean -rm -rf -- "%{buildroot}" - - -%files -f %{name}.lang -%defattr(-,root,root) -%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README THANKS TODO sample.abookrc -%{_bindir}/abook -%{_mandir}/man1/abook.* -%{_mandir}/man5/abookrc.* - - -%changelog -* Mon Mar 11 2002 Jaakko Heinonen -- rewrote the spec file originally written by - Gustavo Niemeyer diff --git a/config.guess b/config.guess old mode 100644 new mode 100755 diff --git a/config.sub b/config.sub old mode 100644 new mode 100755 diff --git a/configure.in b/configure.in deleted file mode 100644 index 105cf55..0000000 --- a/configure.in +++ /dev/null @@ -1,154 +0,0 @@ -dnl abook configure.in - -AC_INIT(abook.c) -AM_INIT_AUTOMAKE(abook, 0.6.0pre2) -AM_CONFIG_HEADER(config.h) - -dnl --------------- -dnl gettext support -dnl --------------- - -AM_GNU_GETTEXT -AM_GNU_GETTEXT_VERSION(0.14.1) - -AC_DEFUN([ABOOK_EXPAND_PREFIX], [ - $1=$2 - dnl expanding twice, since from autoconf 2.60 on, $datadir refers to - dnl $datarootdir which in turn refers to $prefix - $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" - eval tmp_abook_prefix=\""[$]$1"\" - eval echo $tmp_abook_prefix - )` -]) - -ABOOK_EXPAND_PREFIX(abook_localedir, "$datadir/locale") -localedir="\$(datadir)/locale" - -AC_ARG_WITH(localedir, - [ --with-localedir=PATH Where the locale files are installed ]) -if test "x$with_localedir" != "x"; then - abook_localedir="$with_localedir" - localedir="$with_localedir" -fi - -AC_DEFINE_UNQUOTED(LOCALEDIR, "$abook_localedir", [locale directory]) -AC_SUBST(localedir) - -AM_CONDITIONAL(USE_INCLUDED_INTL_H, test x$USE_INCLUDED_LIBINTL = xyes) - -dnl ---------------------- -dnl end of gettext support -dnl ---------------------- - -AC_PROG_CC -AC_ISC_POSIX -AM_C_PROTOTYPES -if test "x$U" != "x"; then - AC_MSG_ERROR(Compiler not ANSI compliant) -fi -AC_C_INLINE -AC_PROG_INSTALL -AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h locale.h sys/ioctl.h iconv.h) -AC_CHECK_HEADER(stdarg.h,AC_DEFINE(HAVE_STDARG_H, 1, [Define if you have the header file.]),AC_MSG_ERROR([*** stdarg.h is missing on your system ***])) -AC_FUNC_STRCOLL -AC_CHECK_FUNCS(setlocale) - -ac_widec_funcs=yes -AC_CHECK_HEADER(wchar.h,[ - ac_have_wchar_h=yes - AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the header file.])], - [ac_have_wchar_h=no]) -AC_CHECK_FUNCS(mbtowc wcwidth mbrtowc mbsinit,,ac_widec_funcs=no) -AC_CHECK_DECLS(wcwidth) -AC_CHECK_TYPE(wchar_t,,ac_widec_funcs=no) - -if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then - ac_widec_possible=yes -else - ac_widec_possible=no -fi - -dnl ------------------- -dnl (n)curses detection -dnl ------------------- - -abook_cv_curses=/usr -AC_ARG_WITH(curses, [ --with-curses=DIR Where ncurses is installed ], - [if test $withval != yes; then - abook_cv_curses=$withval - fi - if test x$abook_cv_curses != x/usr; then - LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS" - CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include" - fi]) - -AC_CHECK_LIB(ncursesw, initscr, - [LIBS="$LIBS -lncursesw" - if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" - fi - AC_CHECK_HEADERS(ncurses.h)],[ - ac_widec_possible=no - AC_CHECK_LIB(ncurses, initscr, - [LIBS="$LIBS -lncurses" - if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then - CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" - fi - AC_CHECK_HEADERS(ncurses.h)], - [CF_CURSES_LIBS]) - ]) - -dnl -------------------------- -dnl end of (n)curses detection -dnl -------------------------- - -dnl ------------------ -dnl readline detection -dnl ------------------ - -abook_cv_readline=/usr -AC_ARG_WITH(readline, [ --with-readline=DIR Where readline is installed ], - [if test $withval != yes; then - abook_cv_readline=$withval - fi - if test x$abook_cv_readline != x/usr; then - LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS" - CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include" - fi]) - -AC_LIB_READLINE - -if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then - AC_MSG_ERROR([*** readline library not found or it doesn't support history ***]) -fi - -dnl ------------------------- -dnl end of readline detection -dnl ------------------------- - -if test x$ac_widec_possible = xyes; then - AC_DEFINE(HANDLE_MULTIBYTE, 1, [Handle multibyte characters]) -fi - -AC_CHECK_FUNCS(resizeterm) - -AC_CHECK_FUNCS(snprintf vsnprintf) - -AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging support ], [case "${enableval}" in - yes) debug=true ;; - no) debug=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; - esac], [debug=false]) - -if test x$debug = xtrue; then - CPPFLAGS="-DDEBUG=1 $CPPFLAGS" - CFLAGS="-g $CFLAGS" -fi - -if test x$GCC = xyes; then - CFLAGS="-Wall $CFLAGS" -fi - -AC_OUTPUT(Makefile abook.spec intl/Makefile po/Makefile.in) - diff --git a/contrib/CVS/Entries b/contrib/CVS/Entries deleted file mode 100644 index 1784810..0000000 --- a/contrib/CVS/Entries +++ /dev/null @@ -1 +0,0 @@ -D diff --git a/contrib/CVS/Repository b/contrib/CVS/Repository deleted file mode 100644 index cb97fad..0000000 --- a/contrib/CVS/Repository +++ /dev/null @@ -1 +0,0 @@ -abook/contrib diff --git a/contrib/CVS/Root b/contrib/CVS/Root deleted file mode 100644 index 2f2a68d..0000000 --- a/contrib/CVS/Root +++ /dev/null @@ -1 +0,0 @@ -:ext:jheinonen@abook.cvs.sourceforge.net:/cvsroot/abook diff --git a/contrib/abook+vim/README b/contrib/abook+vim/README deleted file mode 100644 index ad81c3a..0000000 --- a/contrib/abook+vim/README +++ /dev/null @@ -1,57 +0,0 @@ -NOTE: There's no need to patch abook version 0.4.14 or later. -NOTE2: The command in abook is 'Q' not 'P'. - ---- Original message from Brian Medley --- -Hi, - -I am trying to make abook work better (for me) within vim. I am doing -this because I have 'autoedit' and 'edit_headers' set in mutt. This -means I would like to have easy access to my abook addressbook (from -within the editor). - -To accomplish this I have written a vim plugin (it will need vim 6.0) -and have patched abook. Both are included. The patch is against abook -0.4.13. - -Amongst other things, they allow me to obtain an address listing from -abook and perform a mutt query using abook. Below is an example. - -Suppose I have the following line (the cursor is at the caret): - To: - ^ -I can now hit '\al' to lauch abook. Once inside, I can highlight the -people I want to email. Then I hit 'P'. Their email addresses now -appear. Next, suppose I have: - To: john - ^ -My plugin allows the command '\aq' to perform an alias mutt query using -abook. It uses the word under the cursor, so "john" will be looked up -inside of abook. Next, his email address will appear. - -Summary: - \aq => alias query - \al => alias list - -Note: - - \ is actually LocalLeader - - I am aware that abook can do these things from within *mutt*, but - I want to do them from within vim. - - This plugin does other stuff, as well (like deleting signatures, - and positioning the cursor when you start) because I stole code - from Cedric Duval's mail vimrc. - - Improvements / comments are welcome. - -Todo: - - Documentation :) - - I tried to write this so that another alias query program could be - used (e.g. ldap), but I have not implemented this. - -Bugs: - - I had trouble getting this to work in gvim. I used vim in a - console. - -Basic Installation: - - patch and install abook - - place the mail.vim plugin in ~/.vim/after/ftplugin - ---- --- diff --git a/contrib/abook+vim/mail.vim b/contrib/abook+vim/mail.vim deleted file mode 100644 index bdc3134..0000000 --- a/contrib/abook+vim/mail.vim +++ /dev/null @@ -1,530 +0,0 @@ -" mail FTplugin -" -" Requires vim 6.x. -" To install place in ~/.vim/after/ftplugin/mail.vim -" -" Author: Brian Medley -" Email: freesoftware@4321.tv -" -" This file was modified from Cedric Duval's version. -" http://cedricduval.free.fr/download/vimrc/mail - -" Only do this when not done yet for this buffer -if exists("b:did_mail_after_ftplugin") - finish -endif -let b:did_mail_after_ftplugin = 1 - -if !exists ("mail_alias_program") - let mail_alias_program="Abook" -endif - -" ==================================================================== -" Globals -" ==================================================================== - -if !exists ("mail_quote_chars") - let s:quote_chars = ':!|>' -else - let s:quote_chars = mail_quote_chars -endif - -" This re defines a 'quote' -let s:quote_re = '\(\s\?\w*[' . s:quote_chars . ']\)' -" \s\? => 0 or one whitespace char -" (b/c some ppl put -" spaces in the quote, -" and others don't) -" -" \w* => maybe word chars (b/c -" some ppl put initals in -" the quotes) -" the rest => actual quote chars -" \( \) => this is a quote "level" - -" This re defines the quoting level at the *beginning* of a line -let s:quote_start = '^' . s:quote_re . s:quote_re . '*' -" ^s:quote_re => quote at beginning of -" line -" s:quote_re* => perhaps followed by -" more quotes - -" For debugging: -" let b:quote_chars = s:quote_chars -" let b:quote_re = s:quote_re -" let b:quote_start = s:quote_start - -" ==================================================================== -" Mappings -" ==================================================================== - -if !exists("no_plugin_maps") && !exists("no_mail_maps") - - " - " get alias list mappings - " - if !hasmapto('MailAliasList', 'n') - nmap al MailAliasList - endif - if !hasmapto('MailAliasList', 'i') - imap al MailAliasList - endif - - nnoremap