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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/rubygem-polyglot | 0.3.5 |
| FreeBSD | devel/rubygem-polyglot | 0.3.5 |
| NetBSD | games/polyglot | 1.4 |
| DragonFly | devel/rubygem-polyglot | 0.3.5 |
| HardenedBSD | devel/rubygem-polyglot | 0.3.5 |
| GhostBSD | devel/rubygem-polyglot | 0.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
| File | Size | SHA256 |
|---|---|---|
| rubygem/polyglot-0.3.5.gem | 8192 | 59d66ef5e3c166431c39cb8b7c1d02af419051352f27912f6a43981b3def16af |
Master sites 1
- RG