[75727] trunk/dports/perl
l2g at macports.org
l2g at macports.org
Sat Feb 5 13:00:56 PST 2011
Revision: 75727
http://trac.macports.org/changeset/75727
Author: l2g at macports.org
Date: 2011-02-05 13:00:54 -0800 (Sat, 05 Feb 2011)
Log Message:
-----------
p5-css: New port for the Perl module CSS; maintainer is ejshamow at gmail.com
(#28131)
Added Paths:
-----------
trunk/dports/perl/p5-css/
trunk/dports/perl/p5-css/Portfile
trunk/dports/perl/p5-css/files/
trunk/dports/perl/p5-css/files/build-grammar.pl
Added: trunk/dports/perl/p5-css/Portfile
===================================================================
--- trunk/dports/perl/p5-css/Portfile (rev 0)
+++ trunk/dports/perl/p5-css/Portfile 2011-02-05 21:00:54 UTC (rev 75727)
@@ -0,0 +1,35 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup perl5 1.0
+
+perl5.setup CSS 1.08
+platforms darwin
+maintainers gmail.com:ejshamow
+license Artistic/GPL
+supported_archs noarch
+
+description Object oriented access to Cascading Style Sheets (CSS)
+
+long_description This module can be used to parse CSS data and represent \
+ it as a tree of objects, which can then be transformed \
+ into other formats.
+
+checksums sha1 6b0dff68227cbc9acc8df87350bdfac0163741d1 \
+ rmd160 7b234dbc8d06ab69a7d168da0ad2c742878bac4e
+
+depends_lib-append port:p5-parse-recdescent
+
+post-configure {
+ ui_debug "Recompiling CSS::Parse::CompiledGrammar (see https://rt.cpan.org/Public/Bug/Display.html?id=53948)"
+ system "${prefix}/bin/perl -I${worksrcpath} ${filespath}/build-grammar.pl"
+ move -force CompiledGrammar.pm ${worksrcpath}/CSS/Parse
+}
+
+post-destroot {
+ set examplesdir ${destroot}${prefix}/share/examples/${name}
+ xinstall -d ${examplesdir}
+ eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
+ ${examplesdir}
+}
Property changes on: trunk/dports/perl/p5-css/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/perl/p5-css/files/build-grammar.pl
===================================================================
--- trunk/dports/perl/p5-css/files/build-grammar.pl (rev 0)
+++ trunk/dports/perl/p5-css/files/build-grammar.pl 2011-02-05 21:00:54 UTC (rev 75727)
@@ -0,0 +1,15 @@
+#!/usr/bin/env perl
+
+# This script recompiles CSS::Parse::CompiledGrammar because of an uncorrected
+# bug in CSS 1.08 spawned by an old Parse::RecDescent bug. See
+# https://rt.cpan.org/Public/Bug/Display.html?id=53948
+#
+# Script by paul at city-fan.org (found in the bug ticket referenced above)
+# and included in the MacPorts Project port p5-css by Larry Gilbert
+# <l2g at macports.org>.
+
+use Parse::RecDescent;
+use CSS::Parse::PRDGrammar;
+$Parse::RecDescent::skip = '';
+$::RD_AUTOACTION = 'print "token: ".shift @item; print " : @item\n"';
+Parse::RecDescent->Precompile($CSS::Parse::PRDGrammar::GRAMMAR, "CSS::Parse::CompiledGrammar");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110205/152fbc37/attachment.html>
More information about the macports-changes
mailing list