BSD Ports

devel/rubygem-polyglot 0.3.5 MidnightBSD

Provides a registry of file types

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, rubygems

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.

Required files are attempted first using the normal Ruby loader, and if that fails, Polyglot conducts a search for a file having a supported extension.

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-polyglot0.3.5
FreeBSDdevel/rubygem-polyglot0.3.5
NetBSDgames/polyglot1.4
DragonFlydevel/rubygem-polyglot0.3.5
HardenedBSDdevel/rubygem-polyglot0.3.5
GhostBSDdevel/rubygem-polyglot0.3.5

Install

Binary package:

mport install polyglot

From mports:

cd /usr/mports/devel/rubygem-polyglot && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	polyglot>0:devel/rubygem-polyglot

Dependencies

Required by 1

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/polyglot-0.3.5.gem819259d66ef5e3c166431c39cb8b7c1d02af419051352f27912f6a43981b3def16af
Master sites 1
  • RG