Package: jwhois
Version: 4.0
Revision: 5
Source: gnu
Source-Checksum: SHA256(fa9bb86782b915c6d730bb723f876dc9b345a617db375aaf3416ec22553cd64e)
Recommends: lynx | links | launch | firefox | elinks
BuildDepends: <<
	fink-package-precedence,
	gdbm6,
	gettext-bin,
	gettext-tools,
	libgettext8-dev,
	libiconv-dev,
	libidn2.0-dev
<<
Depends: <<
	gdbm6-shlibs,
	libgettext8-shlibs,
	libiconv,
	libidn2.0-shlibs
<<
PatchFile: %n.patch
PatchFile-MD5: 34a4b69f2944ebe55d8e99643457844b
PatchScript: <<
	perl -pi.bak -e 's#/usr/bin/lynx#%p/bin/lynx#g' example/jwhois.conf
	perl -pi -e 's|idna\.h|idn2\.h|g; s|idna_h|idn2_h|g; s|-lidn|-lidn2|g; s|stringprep_check_version|idn2_check_version|g' configure
	perl -pi -e 's|idna\.h|idn2\.h|g' src/jwhois.c
	sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1
<<
# Needs a self-constent set of header+lib for any one of the *db
# libraries, but tests for them all. We want gdbm6, so disable all
# other tests to avoid seeing apple's or others'.
ConfigureParams: <<
	ac_cv_func_dbm_open=no \
	ac_cv_func_ndbm_open=no \
	\
	ac_cv_header_ndbm_h=no \
	ac_cv_header_dbm_h=no \
	ac_cv_header_db1_ndbm_h=no
<<
CompileScript: <<
	%{default_script}
	fink-package-precedence .
<<
InstallScript: make install DESTDIR=%d
InfoDocs: jwhois.info
DocFiles: README COPYING TODO ABOUT-NLS NEWS ChangeLog
ConfFiles: %p/etc/jwhois.conf
Description: Improved Whois client (command line)
DescDetail: << 
JWHOIS is a nicer whois client which automatically queries the
"proper" whois server for a domain.  Upon execution, JWHOIS searches
through the its config file (%p/etc/jwhois.conf) find the most
specific whois server to query.

jwhois is NOT JAVA, calm down folks.
<<
DescPort: <<
* patch to use 'nicname' service to workaround lack of whois alias
  in /etc/services.
* patch to use libidn2
<<
License: GPL
Maintainer: Ben Hines <bhines@alumni.ucsd.edu>
Homepage: https://www.gnu.org/software/jwhois/jwhois.html