diff options
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/rubygem-ramaze/Makefile | 29 | ||||
-rw-r--r-- | www/rubygem-ramaze/distinfo | 3 | ||||
-rw-r--r-- | www/rubygem-ramaze/files/xhtml.rb.patch | 20 | ||||
-rw-r--r-- | www/rubygem-ramaze/pkg-descr | 3 |
5 files changed, 56 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 7e5639100b82..2ff471ab8014 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1481,6 +1481,7 @@ SUBDIR += rubygem-rack SUBDIR += rubygem-rails SUBDIR += rubygem-rails-app-installer + SUBDIR += rubygem-ramaze SUBDIR += rubygem-redcloth SUBDIR += rubygem-rfacebook SUBDIR += rubygem-rfeedfinder diff --git a/www/rubygem-ramaze/Makefile b/www/rubygem-ramaze/Makefile new file mode 100644 index 000000000000..7f00a41bd551 --- /dev/null +++ b/www/rubygem-ramaze/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: rubygem-ramaze +# Date created: 2010-01-20 +# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= ramaze +PORTVERSION= 2009.10 +CATEGORIES= www rubygems +MASTER_SITES= http://s3.amazonaws.com/gemcutter_production/gems/ + +MAINTAINER= jyyou@cs.nctu.edu.tw +COMMENT= Ramaze is a simple and modular web framework + +RUN_DEPENDS= rubygem-innate=2009.10:${PORTSDIR}/www/rubygem-innate + +PLIST_FILES= bin/ramaze + +USE_RUBY= yes + +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +post-install: + @${PATCH} -p0 -d ${PREFIX}/${GEM_LIB_DIR} < ${PATCHDIR}/xhtml.rb.patch + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -name "*.orig" -delete + +.include <bsd.port.mk> diff --git a/www/rubygem-ramaze/distinfo b/www/rubygem-ramaze/distinfo new file mode 100644 index 000000000000..dc58c55f4a10 --- /dev/null +++ b/www/rubygem-ramaze/distinfo @@ -0,0 +1,3 @@ +MD5 (rubygem/ramaze-2009.10.gem) = e97055aa3b8ce4e744dc71fba36368d4 +SHA256 (rubygem/ramaze-2009.10.gem) = 49140e3ad5c39ead1ef25bdf333eade4bb067fdccd3c4cc6754b5bfc69ce87a7 +SIZE (rubygem/ramaze-2009.10.gem) = 626688 diff --git a/www/rubygem-ramaze/files/xhtml.rb.patch b/www/rubygem-ramaze/files/xhtml.rb.patch new file mode 100644 index 000000000000..94f19c6009a5 --- /dev/null +++ b/www/rubygem-ramaze/files/xhtml.rb.patch @@ -0,0 +1,20 @@ +--- lib/ramaze/helper/xhtml.rb.orig 2009-11-04 20:13:31.180694249 +0800 ++++ lib/ramaze/helper/xhtml.rb 2009-11-04 20:18:00.000000000 +0800 +@@ -8,7 +8,7 @@ + + def css(name, media = 'screen', options = {}) + if options.empty? +- LINK_TAG % ["/css/#{name}.css", media] ++ LINK_TAG % ["#{Ramaze.options.prefix}/css/#{name}.css", media] + elsif options[:only].to_s.downcase == 'ie' + "<!--[if IE]>#{css(name, media)}<![endif]-->" + end +@@ -22,7 +22,7 @@ + if name =~ /^http/ # consider it external full url + SCRIPT_TAG % name + else +- SCRIPT_TAG % "/js/#{name}.js" ++ SCRIPT_TAG % "#{Ramaze.options.prefix}/js/#{name}.js" + end + end + diff --git a/www/rubygem-ramaze/pkg-descr b/www/rubygem-ramaze/pkg-descr new file mode 100644 index 000000000000..b22afc5bf5ab --- /dev/null +++ b/www/rubygem-ramaze/pkg-descr @@ -0,0 +1,3 @@ +Ramaze is a simple and modular web framework + +WWW: http://ramaze.net |