mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
PortSystem 1.0
|
||
PortGroup ruby 1.0
|
||
|
||
ruby.setup polyglot 0.3.1 gem {} rubygems ruby19
|
||
description File type registry for Ruby 'require'
|
||
long_description \
|
||
Polyglot provides a registry of file types that can be loaded by \
|
||
calling its improved version of ‘require’. Each file extension \
|
||
that can be handled by a custom loader is registered by calling \
|
||
Polyglot.register(“ext”, <class>), and then you can simply \
|
||
require “somefile”, which will find and load “somefile.ext” \
|
||
using your custom loader. \
|
||
\
|
||
This supports the creation of DSLs having a syntax that is most \
|
||
appropriate to their purpose, instead of abusing the Ruby syntax.
|
||
license MIT
|
||
platforms any
|
||
supported_archs noarch
|
||
maintainers nomaintainer
|
||
homepage https://github.com/cjheath/polyglot
|
||
checksums md5 45a5e9e4a36935cfb387a80dba46f785 \
|
||
sha1 28c2d98d4151d25ee400e0fcc13c79ac456142b1 \
|
||
rmd160 1a868f1750314e60547e4f2fa23dde4335d21ede
|