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

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

whois: update to 4.7.33

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 49642 2009-04-14 05:41:45Z ryandesign@macports.org $
2
3################################################################
4# The developer of whois is hostile toward bug reports. Do     #
5# not waste his time and yours by speaking with him about his  #
6# software. If you encounter problems updating this port to a  #
7# newer version, find a workaround and write a patch. Do not   #
8# report upstream. See http://trac.macports.org/ticket/16037   #
9################################################################
10
11PortSystem              1.0
12
13name                    whois
14version                 4.7.33
15categories              net
16maintainers             ryandesign
17homepage                http://www.linux.it/~md/software/
18platforms               darwin
19use_parallel_build      yes
20
21description \
22    A replacement whois client
23
24long_description \
25    whois is an improved whois client that follow the \
26    delegations from the Verisign whois server.
27
28master_sites \
29    http://ftp.debian.org/debian/pool/main/w/${name}/
30
31checksums \
32    md5     740915344c06b5566823d86bb5e12a76 \
33    sha1    0b7ead36d5dd3155ca1563e089371da468894176 \
34    rmd160  0c05765851c68d4ae512a735ab4d3a18e77ec770
35
36distname                ${name}_${version}
37worksrcdir              ${name}-${version}
38
39depends_lib \
40    port:gettext
41
42platform darwin {
43    # -lcrypt cannot be used (and is unnecessary) on Mac OS X
44    patchfiles-append \
45        patch-lcrypt.diff
46}
47
48configure.cmd           make
49configure.pre_args      depend
50
51configure.cflags-append \
52    -DENABLE_NLS
53
54configure.ldflags-append \
55    -lintl
56
57post-configure {
58    reinplace "s|/etc/whois.conf|${prefix}/etc/whois.conf|g" \
59        ${worksrcpath}/whois.1
60}
61
62set my_includes {}
63set my_libs {}
64
65build.target-append pos
66build.env \
67    CC=${configure.cc} \
68    CONFIG_FILE=${prefix}/etc/whois.conf \
69    LOCALEDIR=${prefix}/share/locale
70pre-build {
71    eval lappend my_includes ${configure.cflags} ${configure.cppflags}
72    eval lappend my_libs ${configure.ldflags}
73    build.args \
74        prefix=${prefix} \
75        INCLUDES="${my_includes}" \
76        LIBS="${my_libs}"
77}
78
79destroot.target-append  install-pos
80destroot.args           prefix=${destroot}${prefix}
81post-destroot {
82    xinstall -m 644 -W ${worksrcpath} whois.conf ${destroot}${prefix}/etc/whois.conf.sample
83}
84
85post-activate {
86    if {![file exists ${prefix}/etc/whois.conf]} {
87        ui_msg "To customize which whois servers get used, you can copy whois.conf.sample"
88        ui_msg "to whois.conf in ${prefix}/etc and then make changes."
89    }
90}
91
92variant universal {
93    eval lappend my_includes ${configure.universal_cflags}
94    eval lappend my_libs ${configure.universal_ldflags}
95}
96
97livecheck.check         regex
98livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
99livecheck.regex         "${name}_(.+?)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.