source: trunk/dports/lang/jruby/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name              jruby
6version           1.2.0
7
8categories        lang ruby
9maintainers       gmail.com:ameingast
10platforms         darwin
11
12description       JRuby is an 100% pure-Java implementation of the Ruby \
13programming language.
14long_description  JRuby provides a complete set of core "builtin" classes \
15and syntax for the Ruby language, as well as most of the \
16Ruby Standard Libraries. The standard libraries are mostly \
17Ruby's own complement of .rb files, but a few that depend \
18on C language-based extensions have been reimplemented.
19homepage          http://jruby.codehaus.org/
20
21master_sites      http://dist.codehaus.org/jruby/${version}/
22distname          ${name}-src-${version}
23worksrcdir        ${name}-${version}
24use_bzip2         no
25checksums         md5    10fbbc0477e19be4aeda04865984bed3 \
26                  sha1   69f13b5ec216a7e615f4077730908217a6a9f1fc \
27                  rmd160 a12d9243eb7e5338f1674c0bc9f874bc617c2662
28
29depends_build     bin:ant:apache-ant
30depends_lib       bin:java:kaffe
31
32use_configure     no
33universal_variant no
34
35build.cmd         ant
36build.target      jar
37
38variant apidocs description "include API documentation" {
39  build.target  jar create-apidocs
40}
41
42variant default_ruby description "build without j prefix" {
43
44}
45
46destroot {
47  # Create the target java directory exists
48  xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
49
50  # Copy over the needed elements of our directory tree
51  file copy \
52  ${worksrcpath}/bin \
53  ${worksrcpath}/lib \
54  ${destroot}${prefix}/share/java/${name}
55
56  if { [variant_isset apidocs] } {
57    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/java/${name}
58  }
59
60  # Remove extraneous bat files
61  foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
62    file delete $f
63  }
64
65  set jruby_prefix ""
66
67  if { ![variant_isset default_ruby] } {
68    set jruby_prefix "j"
69  }
70
71  foreach f { jruby jirb jrubyc jrubcli jrubysrv } {
72    regsub {^j} $f $jruby_prefix dest
73    if { ${dest} != ${f} } {
74      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${dest}
75    }
76    ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/
77  }
78
79  foreach f { gem gem_mirror gemri gemwhich rake spec testrb } {
80    ln -s ${prefix}/share/java/${name}/bin/${f} \
81    ${destroot}${prefix}/bin/${jruby_prefix}${f}
82  }
83}
Note: See TracBrowser for help on using the repository browser.