summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-05-21 21:26:07 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-05-21 21:26:07 +0000
commit1344651a90bc58b1d7fb15864132dc765da4bc83 (patch)
treeba18f36854109b44c51eb9ded3132491ea214aeb
parent- Update WWW (diff)
- Add LICENSE
- Fix gemspec - Reformat pkg-descr - Bump PORTREVISION for package change - Take maintainership
-rw-r--r--devel/rubygem-rash/Makefile7
-rw-r--r--devel/rubygem-rash/files/patch-gemspec11
-rw-r--r--devel/rubygem-rash/pkg-descr11
3 files changed, 21 insertions, 8 deletions
diff --git a/devel/rubygem-rash/Makefile b/devel/rubygem-rash/Makefile
index db3c15bf603c..cf0529ec6017 100644
--- a/devel/rubygem-rash/Makefile
+++ b/devel/rubygem-rash/Makefile
@@ -3,16 +3,19 @@
PORTNAME= rash
PORTVERSION= 0.4.0
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Simple extension to Hashie::Mash for rubyfied keys
+LICENSE= MIT
+
RUN_DEPENDS= rubygem-hashie>=2.0.0:${PORTSDIR}/devel/rubygem-hashie
USE_RUBY= yes
USE_RUBYGEMS= yes
-RUBYGEM_AUTOPLIST=yes
+RUBYGEM_AUTOPLIST= yes
.include <bsd.port.mk>
diff --git a/devel/rubygem-rash/files/patch-gemspec b/devel/rubygem-rash/files/patch-gemspec
new file mode 100644
index 000000000000..a0de50c93147
--- /dev/null
+++ b/devel/rubygem-rash/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- rash.gemspec.orig 2015-05-21 19:21:02 UTC
++++ rash.gemspec
+@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+- s.add_runtime_dependency(%q<hashie>, ["~> 2.0.0"])
++ s.add_runtime_dependency(%q<hashie>, [">= 2.0.0"])
+ s.add_development_dependency(%q<rake>, ["~> 0.9"])
+ s.add_development_dependency(%q<rdoc>, ["~> 3.9"])
+ s.add_development_dependency(%q<rspec>, ["~> 2.5"])
diff --git a/devel/rubygem-rash/pkg-descr b/devel/rubygem-rash/pkg-descr
index fa00ba0dae4b..46bdbf63fb1d 100644
--- a/devel/rubygem-rash/pkg-descr
+++ b/devel/rubygem-rash/pkg-descr
@@ -1,12 +1,11 @@
Rash is an extension to Hashie
-Rash subclasses Hashie::Mash to convert all keys in the hash
-to underscore.
+Rash subclasses Hashie::Mash to convert all keys in the hash to underscore.
-The purpose of this is when working w/ Java (or any other apis)
-that return hashes (including nested) that have camelCased keys
+The purpose of this is when working w/ Java (or any other apis) that return
+hashes (including nested) that have camelCased keys
-You will now be able to access those keys through underscored
-key names (camelCase still available).
+You will now be able to access those keys through underscored key names
+(camelCase still available).
WWW: https://github.com/tcocca/rash