source: trunk/dports/perl/p5-net-dict/Portfile

Last change on this file was 154393, checked in by mojca@…, 9 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         Net-Dict 2.21 ../../authors/id/N/NE/NEILB/
15maintainers         nomaintainer
16categories-append   textproc
17license             {Artistic-1 GPL}
18
19description         Simple client API for the DICT protocol
20long_description    Perl class implementing a simple client API for the \
21                    DICT protocol defined in RFC2229
22
23platforms           darwin
24
25checksums           rmd160  52a7be276a23174151df97d3d8c672a2d1aac6ad \
26                    sha256  4e071d1b82158b35f24e557af81f505a913c6dfe4d04fe5201236afe74be1f3b
27
28if {${perl5.major} != ""} {
29    depends_build-append \
30                    port:p${perl5.major}-test-differences \
31                    port:p${perl5.major}-test-requiresinternet
32   
33    depends_lib-append \
34                    port:p${perl5.major}-appconfig-std
35
36    supported_archs noarch
37
38    # This variant avoids a conflict with the dict port, if one wishes to
39    # install p5-net-dict together with the dict port. The end user can
40    # later add symbolic links in /usr/local or in his home directory to
41    # choose which dict program (and man page) he wishes to use. For this
42    # reason, the dict documentation is not modified to reflect this new
43    # program name.
44    # Even though there is no filename conflict for the man page, it is
45    # better to rename it too for consistency when running "man dict".
46    # Even "man 1 dict" would select the dict.1pm version.
47    variant dict_altname description {Avoid a conflict with the dict port} {
48        post-destroot {
49            set d ${destroot}${prefix}
50            set m ${d}/share/man/man1
51            file rename ${d}/bin/dict ${d}/bin/dict.perl
52            file rename ${m}/dict.1pm ${m}/dict.perl.1pm
53        }
54    }
55}
Note: See TracBrowser for help on using the repository browser.