1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Add port for ruby-multi, a pattern matching library for ruby.

WWW:	http://multi.rubyforge.org/
This commit is contained in:
Stanislav Sedov 2008-03-24 18:52:31 +00:00
parent 321a59a6a3
commit 1d671942f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209703
5 changed files with 49 additions and 0 deletions

View File

@ -2195,6 +2195,7 @@
SUBDIR += ruby-locale
SUBDIR += ruby-metaruby
SUBDIR += ruby-mmap
SUBDIR += ruby-multi
SUBDIR += ruby-ncurses
SUBDIR += ruby-p4
SUBDIR += ruby-poll

34
devel/ruby-multi/Makefile Normal file
View File

@ -0,0 +1,34 @@
# New ports collection makefile for: ruby-multi
# Date created: 24 Marth 2008
# Whom: Stanislav Sedov <stas@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= multi
PORTVERSION= 0.1
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= stas@FreeBSD.org
COMMENT= A library for multiple dispatch and pattern matching in Ruby
USE_RUBY= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
EXAMPLES= multi_example.rb
do-install:
${INSTALL_DATA} ${WRKSRC}/multi.rb ${RUBY_SITELIBDIR}/
${INSTALL_DATA} ${WRKSRC}/smulti.rb ${RUBY_SITELIBDIR}/
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${RUBY_MODEXAMPLESDIR}/
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (ruby/multi-0.1.tar.gz) = eb01df9203042dd083745a70c75dec86
SHA256 (ruby/multi-0.1.tar.gz) = 09ec95eb6ee8a60c8a2db6dc6c4ae314825fed3faa15afce282c6878d51c4c1f
SIZE (ruby/multi-0.1.tar.gz) = 2386

View File

@ -0,0 +1,7 @@
The Multiple Dispatch Library lets programmers use multiple dispatch
and pattern matching in Ruby method definitions, choosing different
method bodies depending on the types and values of the parameters
the method is invoked with.
Author: Topher Cyll <christophercyll@gmail.com>
WWW: http://multi.rubyforge.org/

View File

@ -0,0 +1,4 @@
%%RUBY_SITELIBDIR%%/multi.rb
%%RUBY_SITELIBDIR%%/smulti.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/multi_example.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%