[34697] trunk/dports/lang

afb at macports.org afb at macports.org
Sun Mar 2 23:36:29 PST 2008


Revision: 34697
          http://trac.macosforge.org/projects/macports/changeset/34697
Author:   afb at macports.org
Date:     2008-03-02 23:36:29 -0800 (Sun, 02 Mar 2008)

Log Message:
-----------
new port: jruby 1.0.3 (#14526) 

Added Paths:
-----------
    trunk/dports/lang/jruby/
    trunk/dports/lang/jruby/Portfile

Added: trunk/dports/lang/jruby/Portfile
===================================================================
--- trunk/dports/lang/jruby/Portfile	                        (rev 0)
+++ trunk/dports/lang/jruby/Portfile	2008-03-03 07:36:29 UTC (rev 34697)
@@ -0,0 +1,81 @@
+# $Id$
+
+PortSystem 1.0
+
+name              jruby
+version           1.0.3
+
+categories        lang ruby
+maintainers       ameingast at gmail.com
+platforms         darwin
+
+description       JRuby is an 100% pure-Java implementation of the Ruby \
+                  programming language.
+long_description  JRuby provides a complete set of core "builtin" classes \
+                  and syntax for the Ruby language, as well as most of the \
+                  Ruby Standard Libraries. The standard libraries are mostly \
+                  Ruby's own complement of .rb files, but a few that depend \
+                  on C language-based extensions have been reimplemented.
+homepage          http://jruby.codehaus.org/
+
+master_sites      http://dist.codehaus.org/jruby/
+distname          ${name}-src-${version}
+worksrcdir        ${name}-${version}
+use_bzip2         no
+checksums         md5 def7168f6c8061da753f875acb250f66
+
+depends_build     bin:ant:apache-ant
+depends_lib       bin:java:kaffe
+
+use_configure     no
+universal_variant no
+
+build.cmd         ant
+build.target      jar
+
+variant apidocs description "include API documentation" {
+  build.target  jar create-apidocs
+}
+
+variant default_ruby description "build without j prefix" {
+
+}
+
+destroot {
+    # Create the target java directory exists
+    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
+    
+    # Copy over the needed elements of our directory tree
+    file copy \
+        ${worksrcpath}/bin \
+        ${worksrcpath}/lib \
+        ${destroot}${prefix}/share/java/${name}
+        
+    if { [variant_isset apidocs] } {
+      file copy ${worksrcpath}/docs ${destroot}${prefix}/share/java/${name}
+    }
+        
+    # Remove extraneous bat files
+    foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
+      file delete $f
+  }
+  
+  set jruby_prefix ""
+  
+  if { ![variant_isset default_ruby] } {
+    set jruby_prefix "j"
+  }
+  
+    foreach f { jruby jirb jrubyc jrubcli jrubysrv } {
+      regsub {^j} $f $jruby_prefix dest
+      if { ${dest} != ${f} } {
+      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${dest}
+    }
+    ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/
+  }
+  
+  foreach f { gem gem_mirror gemri gemwhich rake spec testrb } {
+    ln -s ${prefix}/share/java/${name}/bin/${f} \
+          ${destroot}${prefix}/bin/${jruby_prefix}${f}
+  }
+}


Property changes on: trunk/dports/lang/jruby/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

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


More information about the macports-changes mailing list