# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 ################################################################ # The developer of whois is hostile toward bug reports. Do # # not waste his time and yours by speaking with him about his # # software. If you encounter problems updating this port to a # # newer version, find a workaround and write a patch. Do not # # report upstream. See http://trac.macports.org/ticket/16037 # ################################################################ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup github 1.0 PortGroup perl5 1.0 github.setup rfc1036 whois 5.5.21 v revision 0 checksums rmd160 1389aa5e51ab383881809bd9fe474ac782b61468 \ sha256 760ab584beae76acdcc89c6aec2e91cff571185bccc2bee8e4412a3f8e70be77 \ size 90812 conflicts bahamut expect ripe-whois categories net maintainers {ryandesign @ryandesign} openmaintainer license GPL-2+ use_parallel_build yes description A replacement whois client long_description whois is an improved whois client that follows the \ delegations from the Verisign whois server. master_sites http://ftp.debian.org/debian/pool/main/w/${name}/ use_xz yes distfiles ${name}_${version}${extract.suffix} perl5.branches 5.34 depends_build port:bash-completion \ port:perl${perl5.major} \ path:bin/pkg-config:pkgconfig depends_lib port:gettext \ port:libidn2 \ port:libiconv # Bugs should be reported to MacPorts, not upstream. patchfiles-append patch-bugreport.diff # Add libidn and libiconv support. patchfiles-append patch-idn-iconv.diff patchfiles-append implicit.patch platform darwin { # -lcrypt cannot be used (and is unnecessary) on macOS. patchfiles-append patch-lcrypt.diff } post-patch { reinplace "s|/etc/whois\.conf|${prefix}/etc/whois.conf|g" ${worksrcpath}/whois.1 } use_configure no compiler.blacklist {clang < 318} configure.cflags-append -DENABLE_NLS configure.ldflags-append -lintl configure.perl ${perl5.bin} post-configure { system -W ${worksrcpath} "CC='${configure.cc}' ${build.cmd} depend servers_charset.h PERL='${configure.perl}'" } variant universal {} build.target-append pos build.env "CC=${configure.cc} [get_canonical_archflags]" \ CONFIG_FILE=${prefix}/etc/whois.conf \ HAVE_LIBIDN2=1 \ HAVE_ICONV=1 \ LOCALEDIR=${prefix}/share/locale build.args prefix=${prefix} \ INCLUDES="${configure.cflags} ${configure.cppflags}" \ LIBS="${configure.ldflags}" \ PERL="${configure.perl}" destroot.target-append install-pos destroot.args prefix=${prefix} post-destroot { xinstall -m 644 -W ${worksrcpath} whois.conf ${destroot}${prefix}/etc/whois.conf.sample } notes " To customize which whois servers get used, copy\ ${prefix}/etc/whois.conf.sample to\ ${prefix}/etc/whois.conf and then make changes. " pre-activate { # Clear the notes if the user has already done what they say to do. if {[file exists ${prefix}/etc/whois.conf]} { notes } }