source: trunk/dports/perl/p5-css/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.7 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         CSS 1.09
15revision            1
16maintainers         nomaintainer
17license             {Artistic-1 GPL}
18
19description         Object oriented access to Cascading Style Sheets (CSS)
20
21long_description    This module can be used to parse CSS data and represent \
22                    it as a tree of objects, which can then be transformed \
23                    into other formats.
24
25checksums           rmd160  9188e697c214a2d2951dd0808714487a4219eb6b \
26                    sha256  3cafffb570b901408e0b4b7a1bfcb52a06bbc71251941b3b6ad265e4029bcf7c
27
28platforms           darwin
29supported_archs     noarch
30
31if {${perl5.major} != ""} {
32    depends_lib-append \
33                    port:p${perl5.major}-parse-recdescent
34
35    post-configure {
36        ui_debug "Recompiling CSS::Parse::CompiledGrammar (see https://rt.cpan.org/Public/Bug/Display.html?id=53948)"
37        system "cd ${worksrcpath} && ${perl5.bin} -I${worksrcpath} ${filespath}/build-grammar.pl"
38        move -force ${worksrcpath}/CompiledGrammar.pm ${worksrcpath}/CSS/Parse
39    }
40
41    post-destroot {
42        set docdir ${prefix}/share/doc/${subport}
43        xinstall -d ${destroot}${docdir}
44        copy ${worksrcpath}/examples ${destroot}${docdir}/examples
45    }
46}
Note: See TracBrowser for help on using the repository browser.