# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
maintainers {kimuraw @kimuraw}
description Powerful and clean object-oriented scripting language
long_description Ruby is the interpreted scripting language for quick \
and easy object-oriented programming. It has many \
features to process text files and to do system \
management tasks (as in Perl). It is simple, \
straight-forward, extensible, and portable.
homepage http://www.ruby-lang.org/
checksums md5 83c92e2b57ea08f31187060098b2200b \
rmd160 314efaa961c80c9294202c6e40dec0e38865ed94 \
sha1 cf82b6cbeed8e389705aa6b66c2a8141626705c3 \
sha256 b4e34703137f7bfb8761c4ea474f7438d6ccf440b3d35f39cc5e4d4e239c07e3
depends_lib port:libiconv \
path:lib/libssl.dylib:openssl \
depends_run port:ruby_select
select.file ${filespath}/ruby18
# vendordir: enable vendor-specific.rb
# #3604: gcc4 fails to detect linking at configure
# #19050: use $(CC) not cc, this change has been merged at ruby-1.8 trunk
# #15528: on some Mac, TCPServer.open("localhost", 0) raises SocketError
# like "getaddrinfo: nodename nor servname provided, or not
# c99: gperf generates code that doesn't work with clang (https://trac.macports.org/ticket/29974)
# lib-drb-ssl.rb: 512bits rsa key is too small for openssl-1.0.1.
# (http://bugs.ruby-lang.org/issues/6221)
# Makefile.in: force libruby without suffix (backward compatibility)
# numeric.c: fix wrong optimizaton of Numeric/Bignum build with clang.
# configure: correct frame_address and stack_direction for +universal with clang.
# ext-tk-extconf.rb: use linker option "-rpath," not "-R".
patchfiles patch-vendordir.diff \
patch-lib-drb-ssl.rb.diff \
patch-ext-tk-extconf.rb.diff \
patch-ext_openssl_extconf_rb.diff \
patch-ext_openssl_ossl_ssl_c.diff
# ignore getcontext() and setcontext()
# on 10.5 or later, these functions have some problems (SEGV on ppc, slower than 1.8.6)
# http://chopine.be/lrz/ruby-osx-patches/ignore-gsetcontext.diff
patchfiles-append patch-node.h.diff
# clang (Xcode 4.2 or later) with -O[0s]
# clang (Xcode 4.1 or earlier)
# clang (Xcode 4.2 or later) with -O[12]
# TODO: When was this last verified? Is there a ticket open? Radar?
compiler.blacklist-append *llvm-gcc-4.2 {clang < 211}
if {[string match *clang* ${configure.compiler}]} {