[35921] trunk/dports/ruby

mr_bond at macports.org mr_bond at macports.org
Wed Apr 9 14:45:25 PDT 2008


Revision: 35921
          http://trac.macosforge.org/projects/macports/changeset/35921
Author:   mr_bond at macports.org
Date:     2008-04-09 14:45:24 -0700 (Wed, 09 Apr 2008)

Log Message:
-----------
New port submission, ruby/rb-json. Closes ticket #13320

Added Paths:
-----------
    trunk/dports/ruby/rb-json/
    trunk/dports/ruby/rb-json/Portfile
    trunk/dports/ruby/rb-json/files/
    trunk/dports/ruby/rb-json/files/patch-install.rb

Added: trunk/dports/ruby/rb-json/Portfile
===================================================================
--- trunk/dports/ruby/rb-json/Portfile	                        (rev 0)
+++ trunk/dports/ruby/rb-json/Portfile	2008-04-09 21:45:24 UTC (rev 35921)
@@ -0,0 +1,41 @@
+# $id$ 
+
+PortSystem		1.0
+PortGroup		ruby 1.0
+
+name			rb-json
+version			1.1.2
+categories		ruby
+
+homepage		http://json.rubyforge.org/
+master_sites		http://rubyforge.org/frs/download.php/28483/
+
+distname                json-${version}
+dist_subdir             ruby
+
+description       	This is a implementation of the JSON specification according to RFC 4627.
+
+long_description  	This is a implementation of the JSON specification according to RFC 4627. \
+                  	You can think of it as a low fat alternative to XML, if you want to store \
+                  	data to disk or transmit it over a network rather than use a verbose markup language.
+
+maintainers		gmail.com:roger.hoover
+
+checksums		md5 	27834a3df714719e8fa9ff2efb5edc6d \
+			sha1	97b652157f352fecb7da2545eec4cc20c7ad2594
+
+patchfiles		patch-install.rb
+extract.suffix		.tgz
+platforms		darwin
+
+configure {
+	file mkdir "${destroot}/${ruby.lib}"
+}
+
+build {}
+destroot.cmd	${ruby.bin} install.rb 
+destroot.args	${destroot}
+destroot.target	""
+destroot.env	""
+
+depends_lib     port:ruby port:rb-rubygems

Added: trunk/dports/ruby/rb-json/files/patch-install.rb
===================================================================
--- trunk/dports/ruby/rb-json/files/patch-install.rb	                        (rev 0)
+++ trunk/dports/ruby/rb-json/files/patch-install.rb	2008-04-09 21:45:24 UTC (rev 35921)
@@ -0,0 +1,18 @@
+--- install.rb.orig	2007-11-23 12:36:57.000000000 +0100
++++ install.rb	2008-04-09 23:09:29.000000000 +0200
+@@ -6,12 +6,9 @@
+ 
+ include Config
+ 
+-bindir = CONFIG["bindir"]
+-cd 'bin' do
+-  filename = 'edit_json.rb'
+-  #install(filename, bindir)
+-end
+-sitelibdir = CONFIG["sitelibdir"]
++DESTROOT = ARGV[0] || String.new
++
++sitelibdir = DESTROOT + CONFIG["vendorlibdir"]
+ cd 'lib' do
+   install('json.rb', sitelibdir)
+   mkdir_p File.join(sitelibdir, 'json')

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080409/f33ba62d/attachment.html


More information about the macports-changes mailing list