diff options
author | taca <taca@pkgsrc.org> | 2018-03-13 16:10:50 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2018-03-13 16:10:50 +0000 |
commit | 881585547c55291364c303064e17f596cdc22940 (patch) | |
tree | 864643c6ea26eddc439c2311ec378673bdc9d8af | |
parent | fce75a70f8768ba714b0024d44a179260a59d5bd (diff) | |
download | pkgsrc-881585547c55291364c303064e17f596cdc22940.tar.gz |
www/ruby-crass: add version 1.0.2 package
Crass is a Ruby CSS parser that's fully compliant with the
CSS Syntax Level 3 specification.
Features
--------
* Pure Ruby, with no runtime dependencies other than Ruby 1.9.x or higher.
* Tokenizes and parses CSS according to the rules defined in the 14 November
2014 editor's draft of the [CSS Syntax Level 3][css] specification.
* Extremely tolerant of broken or invalid CSS. If a browser can handle it, Crass
should be able to handle it too.
* Optionally includes comments in the token stream.
* Optionally preserves certain CSS hacks, such as the IE "*" hack, which would
otherwise be discarded according to CSS3 tokenizing rules.
* Capable of serializing the parse tree back to CSS while maintaining all
original whitespace, comments, and indentation.
-rw-r--r-- | www/ruby-crass/DESCR | 21 | ||||
-rw-r--r-- | www/ruby-crass/Makefile | 12 | ||||
-rw-r--r-- | www/ruby-crass/PLIST | 48 | ||||
-rw-r--r-- | www/ruby-crass/distinfo | 6 |
4 files changed, 87 insertions, 0 deletions
diff --git a/www/ruby-crass/DESCR b/www/ruby-crass/DESCR new file mode 100644 index 00000000000..e99e9db3497 --- /dev/null +++ b/www/ruby-crass/DESCR @@ -0,0 +1,21 @@ +Crass is a Ruby CSS parser that's fully compliant with the +CSS Syntax Level 3 specification. + +Features +-------- + +* Pure Ruby, with no runtime dependencies other than Ruby 1.9.x or higher. + +* Tokenizes and parses CSS according to the rules defined in the 14 November + 2014 editor's draft of the [CSS Syntax Level 3][css] specification. + +* Extremely tolerant of broken or invalid CSS. If a browser can handle it, Crass + should be able to handle it too. + +* Optionally includes comments in the token stream. + +* Optionally preserves certain CSS hacks, such as the IE "*" hack, which would + otherwise be discarded according to CSS3 tokenizing rules. + +* Capable of serializing the parse tree back to CSS while maintaining all + original whitespace, comments, and indentation. diff --git a/www/ruby-crass/Makefile b/www/ruby-crass/Makefile new file mode 100644 index 00000000000..37b87f3e650 --- /dev/null +++ b/www/ruby-crass/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1 2018/03/13 16:10:50 taca Exp $ + +DISTNAME= crass-1.0.2 +CATEGORIES= www + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/rgrove/crass/ +COMMENT= CSS parser based on the CSS Syntax Level 3 spec +LICENSE= mit + +.include "../../lang/ruby/gem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ruby-crass/PLIST b/www/ruby-crass/PLIST new file mode 100644 index 00000000000..6db6be097c4 --- /dev/null +++ b/www/ruby-crass/PLIST @@ -0,0 +1,48 @@ +@comment $NetBSD: PLIST,v 1.1 2018/03/13 16:10:50 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.gitignore +${GEM_LIBDIR}/.travis.yml +${GEM_LIBDIR}/.yardopts +${GEM_LIBDIR}/Gemfile +${GEM_LIBDIR}/HISTORY.md +${GEM_LIBDIR}/LICENSE +${GEM_LIBDIR}/README.md +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/crass.gemspec +${GEM_LIBDIR}/lib/crass.rb +${GEM_LIBDIR}/lib/crass/parser.rb +${GEM_LIBDIR}/lib/crass/scanner.rb +${GEM_LIBDIR}/lib/crass/token-scanner.rb +${GEM_LIBDIR}/lib/crass/tokenizer.rb +${GEM_LIBDIR}/lib/crass/version.rb +${GEM_LIBDIR}/test/css-parsing-tests/An+B.json +${GEM_LIBDIR}/test/css-parsing-tests/LICENSE +${GEM_LIBDIR}/test/css-parsing-tests/README.rst +${GEM_LIBDIR}/test/css-parsing-tests/color3.json +${GEM_LIBDIR}/test/css-parsing-tests/color3_hsl.json +${GEM_LIBDIR}/test/css-parsing-tests/color3_keywords.json +${GEM_LIBDIR}/test/css-parsing-tests/component_value_list.json +${GEM_LIBDIR}/test/css-parsing-tests/declaration_list.json +${GEM_LIBDIR}/test/css-parsing-tests/make_color3_hsl.py +${GEM_LIBDIR}/test/css-parsing-tests/make_color3_keywords.py +${GEM_LIBDIR}/test/css-parsing-tests/one_component_value.json +${GEM_LIBDIR}/test/css-parsing-tests/one_declaration.json +${GEM_LIBDIR}/test/css-parsing-tests/one_rule.json +${GEM_LIBDIR}/test/css-parsing-tests/rule_list.json +${GEM_LIBDIR}/test/css-parsing-tests/stylesheet.json +${GEM_LIBDIR}/test/css-parsing-tests/stylesheet_bytes.json +${GEM_LIBDIR}/test/shared/parse_rules.rb +${GEM_LIBDIR}/test/support/common.rb +${GEM_LIBDIR}/test/support/serialization/animate.css +${GEM_LIBDIR}/test/support/serialization/bootstrap-theme.css +${GEM_LIBDIR}/test/support/serialization/bootstrap.css +${GEM_LIBDIR}/test/support/serialization/html5-boilerplate.css +${GEM_LIBDIR}/test/support/serialization/misc.css +${GEM_LIBDIR}/test/support/serialization/pure.css +${GEM_LIBDIR}/test/test_crass.rb +${GEM_LIBDIR}/test/test_css_parsing_tests.rb +${GEM_LIBDIR}/test/test_parse_properties.rb +${GEM_LIBDIR}/test/test_parse_rules.rb +${GEM_LIBDIR}/test/test_parse_stylesheet.rb +${GEM_LIBDIR}/test/test_serialization.rb +${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/www/ruby-crass/distinfo b/www/ruby-crass/distinfo new file mode 100644 index 00000000000..b93f7100f27 --- /dev/null +++ b/www/ruby-crass/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/03/13 16:10:50 taca Exp $ + +SHA1 (crass-1.0.2.gem) = 5a855504ff288cd8c36482c26d965d05b370dbbd +RMD160 (crass-1.0.2.gem) = 5d5bbb9fd630dd7a1b0c14051b893940805774da +SHA512 (crass-1.0.2.gem) = 28ea16dea1ba8e46589489a60780195711304902b805bff0b362f99e8af9c9d2ecd0c11dcdf3e67e18e0997f37594012a4ceb312df352faf56eeb47d0441d289 +Size (crass-1.0.2.gem) = 92160 bytes |