1 | # $Id: Portfile,v 1.31 2005/07/18 20:28:45 mww Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name ruby |
---|
5 | version 1.8.2 |
---|
6 | revision 3 |
---|
7 | categories lang ruby |
---|
8 | maintainers rshaw@opendarwin.org |
---|
9 | description Powerful and clean object-oriented scripting language |
---|
10 | long_description Ruby is the interpreted scripting language for quick \ |
---|
11 | and easy object-oriented programming. It has many \ |
---|
12 | features to process text files and to do system \ |
---|
13 | management tasks (as in Perl). It is simple, \ |
---|
14 | straight-forward, extensible, and portable. |
---|
15 | homepage http://www.ruby-lang.org/ |
---|
16 | master_sites ruby:1.8 |
---|
17 | dist_subdir ruby |
---|
18 | checksums md5 8ffc79d96f336b80f2690a17601dea9b |
---|
19 | platforms darwin |
---|
20 | |
---|
21 | depends_lib port:libiconv \ |
---|
22 | port:readline \ |
---|
23 | port:openssl \ |
---|
24 | port:zlib |
---|
25 | |
---|
26 | patchfiles patch-Makefile.in \ |
---|
27 | patch-configure.in \ |
---|
28 | patch-instruby.rb \ |
---|
29 | patch-mkconfig.rb \ |
---|
30 | patch-mkmf.rb \ |
---|
31 | patch-ruby.c \ |
---|
32 | patch-ext-digest-md5-md5ossl.h \ |
---|
33 | patch-ext-digest-rmd160-rmd160ossl.h \ |
---|
34 | patch-ext-digest-sha1-sha1ossl.h \ |
---|
35 | patch-ext-openssl-openssl_missing.c \ |
---|
36 | patch-ext-openssl-ossl.h \ |
---|
37 | patch-ext-openssl-ossl_x509.c \ |
---|
38 | patch-ext-openssl-ossl_engine.c |
---|
39 | |
---|
40 | use_autoconf yes |
---|
41 | |
---|
42 | configure.args --enable-shared \ |
---|
43 | --mandir="${prefix}/share/man" |
---|
44 | configure.env CFLAGS="-O -pipe -I${prefix}/include" \ |
---|
45 | CPPFLAGS="-O -pipe -I${prefix}/include" \ |
---|
46 | LDFLAGS="-L${prefix}/lib" |
---|
47 | |
---|
48 | destroot.target install install-doc |
---|
49 | post-destroot { |
---|
50 | foreach type {site vendor} { |
---|
51 | set libdir ${destroot}${prefix}/lib/ruby/${type}_ruby |
---|
52 | # special file for installation control of modules |
---|
53 | xinstall -m 0644 ${filespath}/${type}-specific.rb ${libdir} |
---|
54 | # prevent empty site/vendor directories from being pruned |
---|
55 | foreach subdir [exec find ${libdir} -type d -empty] { |
---|
56 | destroot.keepdirs-append ${subdir} |
---|
57 | } |
---|
58 | } |
---|
59 | } |
---|
60 | |
---|
61 | platform darwin { |
---|
62 | # for proper rdoc/ri creation, make sure to link to destroot libruby.dylib |
---|
63 | destroot.env DYLD_LIBRARY_PATH=${destroot}${prefix}/lib |
---|
64 | } |
---|
65 | |
---|