source: trunk/dports/perl/p5-net-libidn/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: 1.6 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-LibIDN 0.12
15revision            4
16license             {Artistic-1 GPL}
17maintainers         oaf.dk:mni
18description         Perl bindings for GNU Libidn
19long_description    Net::LibIDN is bindings for GNU Libidn, which is an \
20                    implementation of the Stringprep, Punycode and IDNA \
21                    specifications defined by the IETF Internationalized \
22                    Domain Names (IDN) working group.
23checksums           rmd160  a595c3758c9577b6d09d856cf220c303fdc3d2a2 \
24                    sha256  2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17
25platforms           darwin
26
27if {${perl5.major} != ""} {
28depends_lib-append  port:libidn
29
30patchfiles-append   patch-Makefile.PL.diff
31
32post-patch {
33    if {[variant_isset universal]} {
34        set archflags ${configure.universal_cflags}
35    } else {
36        set archflags ${configure.cc_archflags}
37    }
38   
39    reinplace "s|@CC@|${configure.cc} ${archflags}|g" ${worksrcpath}/Makefile.PL
40}
41
42configure.args-append   --with-libidn=${prefix}/lib \
43                        --with-libidn-inc=${prefix}/include
44}
Note: See TracBrowser for help on using the repository browser.