source: trunk/dports/net/whois/Portfile @ 111348

Last change on this file since 111348 was 111348, checked in by ryandesign@…, 6 years ago

remove use of [suffix] proc in my ports because it is thought to be confusing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- 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
2# $Id: Portfile 111348 2013-09-19 06:13:15Z ryandesign@macports.org $
3
4################################################################
5# The developer of whois is hostile toward bug reports. Do     #
6# not waste his time and yours by speaking with him about his  #
7# software. If you encounter problems updating this port to a  #
8# newer version, find a workaround and write a patch. Do not   #
9# report upstream. See http://trac.macports.org/ticket/16037   #
10################################################################
11
12PortSystem                  1.0
13PortGroup                   compiler_blacklist_versions 1.0
14
15name                        whois
16conflicts                   bahamut expect ripe-whois
17version                     5.0.26
18categories                  net
19maintainers                 ryandesign
20license                     GPL-2+
21homepage                    http://www.linux.it/~md/software/
22platforms                   darwin
23use_parallel_build          yes
24
25description                 A replacement whois client
26
27long_description            whois is an improved whois client that follows the \
28                            delegations from the Verisign whois server.
29
30master_sites                http://ftp.debian.org/debian/pool/main/w/${name}/
31use_xz                      yes
32
33checksums                   rmd160  bc59f96570c29741de0293f7a279591a690a2ece \
34                            sha256  729625ef81425f4771e06492bb4f3e9f24bff75b8176044ce8d2f605f7ad6af5
35
36distfiles                   ${name}_${version}${extract.suffix}
37
38depends_lib                 port:gettext \
39                            port:libidn \
40                            port:libiconv
41
42# Bugs should be reported to MacPorts, not upstream.
43patchfiles-append           patch-bugreport.diff
44
45# Add libidn and libiconv support.
46patchfiles-append           patch-idn-iconv.diff
47
48platform darwin {
49    # -lcrypt cannot be used (and is unnecessary) on Mac OS X
50    patchfiles-append       patch-lcrypt.diff
51}
52
53use_configure               no
54
55compiler.blacklist          {clang < 318}
56
57configure.cflags-append     -DENABLE_NLS
58configure.ldflags-append    -lintl
59
60post-configure {
61    system -W ${worksrcpath} "CC='${configure.cc}' make depend servers_charset.h"
62    reinplace "s|/etc/whois.conf|${prefix}/etc/whois.conf|g" \
63        ${worksrcpath}/whois.1
64}
65
66variant universal {}
67
68build.target-append         pos
69build.env                   CC="${configure.cc} [get_canonical_archflags]" \
70                            CONFIG_FILE=${prefix}/etc/whois.conf \
71                            HAVE_LIBIDN=1 \
72                            HAVE_ICONV=1 \
73                            LOCALEDIR=${prefix}/share/locale
74build.args                  prefix=${prefix} \
75                            INCLUDES="${configure.cflags} ${configure.cppflags}" \
76                            LIBS="${configure.ldflags}"
77
78destroot.target-append      install-pos
79destroot.args               prefix=${destroot}${prefix}
80
81post-destroot {
82    xinstall -m 644 -W ${worksrcpath} whois.conf ${destroot}${prefix}/etc/whois.conf.sample
83}
84
85notes "
86To customize which whois servers get used, copy\
87${prefix}/etc/whois.conf.sample to\
88${prefix}/etc/whois.conf and then make changes.
89"
90
91pre-activate {
92    # Clear the notes if the user has already done what they say to do.
93    if {[file exists ${prefix}/etc/whois.conf]} {
94        notes
95    }
96}
97
98livecheck.type              regex
99livecheck.url               [lindex ${master_sites} 0]?C=M&O=D
100livecheck.regex             "${name}_(.+?)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.