From owner-cvs-all@FreeBSD.ORG Sun Oct 11 10:27:34 2009 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE832106568B; Sun, 11 Oct 2009 10:27:34 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BE93A8FC12; Sun, 11 Oct 2009 10:27:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9BARYUL002406; Sun, 11 Oct 2009 10:27:34 GMT (envelope-from wen@repoman.freebsd.org) Received: (from wen@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9BARYk1002405; Sun, 11 Oct 2009 10:27:34 GMT (envelope-from wen) Message-Id: <200910111027.n9BARYk1002405@repoman.freebsd.org> From: Wen Heping Date: Sun, 11 Oct 2009 10:27:34 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel Makefile ports/devel/rubygem-polyglot Makefile distinfo pkg-descr X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 10:27:34 -0000 wen 2009-10-11 10:27:34 UTC FreeBSD ports repository Modified files: devel Makefile Added files: devel/rubygem-polyglot Makefile distinfo pkg-descr Log: 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', ), 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. WWW: http://polyglot.rubyforge.org/ Approved by: miwi(mentor) Revision Changes Path 1.3656 +1 -0 ports/devel/Makefile 1.1 +20 -0 ports/devel/rubygem-polyglot/Makefile (new) 1.1 +3 -0 ports/devel/rubygem-polyglot/distinfo (new) 1.1 +15 -0 ports/devel/rubygem-polyglot/pkg-descr (new)