diff --git a/devel/Makefile b/devel/Makefile index ea282d8054f7..505fe6cd2257 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/ruby-multi/Makefile b/devel/ruby-multi/Makefile new file mode 100644 index 000000000000..f21129f3b6eb --- /dev/null +++ b/devel/ruby-multi/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: ruby-multi +# Date created: 24 Marth 2008 +# Whom: Stanislav Sedov +# +# $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 diff --git a/devel/ruby-multi/distinfo b/devel/ruby-multi/distinfo new file mode 100644 index 000000000000..af5438346d9c --- /dev/null +++ b/devel/ruby-multi/distinfo @@ -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 diff --git a/devel/ruby-multi/pkg-descr b/devel/ruby-multi/pkg-descr new file mode 100644 index 000000000000..2ddfee499e31 --- /dev/null +++ b/devel/ruby-multi/pkg-descr @@ -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 +WWW: http://multi.rubyforge.org/ diff --git a/devel/ruby-multi/pkg-plist b/devel/ruby-multi/pkg-plist new file mode 100644 index 000000000000..4ab49d8fcd33 --- /dev/null +++ b/devel/ruby-multi/pkg-plist @@ -0,0 +1,4 @@ +%%RUBY_SITELIBDIR%%/multi.rb +%%RUBY_SITELIBDIR%%/smulti.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/multi_example.rb +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%