source: trunk/dports/perl/p5-wx/Portfile

Last change on this file was 154393, checked in by mojca@…, 13 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.8 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
12PortGroup           wxWidgets 1.0
13
14perl5.branches      5.24
15perl5.setup         Wx 0.9928
16
17platforms           darwin
18maintainers         mojca openmaintainer
19license             {Artistic-1 GPL}
20
21description         Interface to the wxWidgets cross-platform GUI toolkit
22long_description    ${description}
23
24checksums           rmd160  629d22b5f920dee8725db8d02eb0b0687e085604 \
25                    sha256  58e06c094c07817617b1e69fa0501f2cee80cd4700ac7a62c516179f7aa85b42
26
27if {${perl5.major} != ""} {
28    wxWidgets.use   wxWidgets-3.0
29
30    depends_build-append \
31                    port:p${perl5.major}-extutils-xspp
32
33    depends_lib-append \
34                    port:p${perl5.major}-alien-wxwidgets \
35                    port:${wxWidgets.port}
36
37    # temporary change the mode
38    post-extract {
39        fs-traverse dir ${worksrcpath} {
40            if { [ file isdirectory ${dir} ] } {
41                file attributes ${dir} -permissions 0755
42            }
43        }
44    }
45
46    patchfiles      patch-build-Wx-build-MakeMaker-MacOSX_GCC.pm.diff \
47                    patch-cpp-wxPerl.osx-Makefile.diff
48    post-patch {
49        # try to find a better way to fix that problem
50        reinplace -W ${worksrcpath} "s|@@CC@@|${configure.cc}|g" cpp/wxPerl.osx/Makefile
51    }
52
53    configure.args  installdirs=vendor
54}
Note: See TracBrowser for help on using the repository browser.