Ticket #10037: Portfile.2

File Portfile.2, 1.0 KB (added by vincent-opdarw@…, 18 years ago)

Portfile for p5-net-dict

Line 
1# $Id: Portfile 13083 2006-07-14 11:12:09Z lefevre $
2
3PortSystem 1.0
4PortGroup perl5 1.0
5
6perl5.setup             Net-Dict 2.07
7maintainers             vincent-opdarw@vinc17.org
8categories-append       textproc
9description             Simple client API for the DICT protocol
10long_description        Perl class implementing a simple client API for the \
11                        DICT protocol defined in RFC2229
12checksums               md5 fb57f694455549861c3c602521162956 \
13                        sha1 e96735711be9704b83f165470813bd23f1be7ca5
14platforms               darwin
15
16depends_lib-append      port:p5-appconfig-std port:p5-digest-md5
17configure.env           C_INCLUDE_PATH="${prefix}/include" \
18                        LIBRARY_PATH="${prefix}/lib"
19
20# This variant avoids a conflict with the dict port, if one wishes
21# to install p5-net-dict together with the dict port. The user can
22# later add symbolic links in /usr/local or in his home directory
23# to choose which dict program if wishes to use.
24variant dict_altname {
25  post-destroot {
26        cd ${destroot}${prefix}
27        file rename bin/dict bin/dict.perl
28        file rename share/man/man1/dict.1 share/man/man1/dict.perl.1
29  }
30}