Package: rlwrap
Version: 0.45.1
Revision: 2
#Source: https://github.com/hanslub42/%n/releases/download/v%v/%n-%v.tar.gz
Source: https://github.com/hanslub42/%n/archive/refs/tags/v%v.tar.gz
SourceRename: %n-%v.tar.gz
Source-Checksum: SHA256(ed9a198191685efcd2f68a9071b9c65b8705f81f2f6bea935032b3f92860bde7)
Depends: <<
	libncurses5-shlibs,
	readline8-shlibs
<<
BuildDepends: <<
	autoconf2.6,
	automake1.15,
	fink-package-precedence,
	libncurses5,
	readline8
<<
#PatchScript: <<
#	# Equivalent to: https://github.com/hanslub42/rlwrap/pull/85
#	perl -pi -e 's/libutil.h/libutil.h util.h/' configure
#	echo "#undef HAVE_UTIL_H" >> config.h.in
#<<
CompileScript: <<
	autoreconf -fi
	%{default_script}
	fink-package-precedence .
<<
InstallScript: make install DESTDIR=%d
DocFiles: AUTHORS BUGS COPYING NEWS README.md
License: GPL
Description: Allows editing keyboard input for any command
DescDetail: <<
  rlwrap is a 'readline wrapper', a small utility that uses the GNU readline
  library to allow the editing of keyboard input for any other command.  
  Input history is remembered across invocations, separately for each command.
  History completion and search work as in bash and completion word lists can
  be specified on the command line.     
<<
DescUsage: <<
Here is an example of using rlwrap with the spidermonkey javascript engine:

  fink install rlwrap spidermonkey
  rlwrap -r -a Password: -p '0;33' js
  print ('hello')
  1+2
  Ctrl-D
  cat ~/.js_history
<<
DescPackaging: <<
Former maintainer: Kurt Schwehr <goatbar@users.sourceforge.net>
<<
Homepage: https://github.com/hanslub42/rlwrap
Maintainer: None <fink-devel@lists.sourceforge.net>