[MacPorts] #17547: ruby fails to build universal

MacPorts noreply at macports.org
Sat Dec 6 22:33:10 PST 2008


#17547: ruby fails to build universal
-----------------------------------+----------------------------------------
 Reporter:  jeremyhu@…             |       Owner:  kimuraw@…           
     Type:  defect                 |      Status:  new                 
 Priority:  Normal                 |   Milestone:  Port Bugs           
Component:  ports                  |     Version:  1.6.0               
 Keywords:  universal              |        Port:  ruby                
-----------------------------------+----------------------------------------

Comment(by jeremyhu@…):

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 42954)
 +++ Portfile    (working copy)
 @@ -27,6 +27,8 @@

  platforms              darwin

 +depends_build          port:autoconf
 +
  depends_lib            port:libiconv \
                                 port:readline \
                                 port:openssl \
 @@ -52,12 +54,14 @@
  patchfiles-append patch-node.h.diff

  use_autoconf                   yes
 +autoconf.cmd autoreconf
 +autoconf.args -fvi
 +
  use_parallel_build      yes

  configure.args --enable-shared \
                                 --mandir="${prefix}/share/man" \
                                 --enable-pthread \
 -                               --without-tk \
                                 --with-
 vendordir=${prefix}/lib/ruby/vendor_ruby
  # ignore minor version for archdir, like i686-darwin9
  configure.env  UNAME_RELEASE=${os.major}
 @@ -78,6 +82,11 @@
         }
  }

 +variant universal {
 +       configure.args-delete --disable-dependency-tracking
 +       build.target-append  EXTLDFLAGS="${configure.universal_ldflags}"
 CFLAGS="${configure.universal_cflags}"
 +}
 +
  platform darwin {
         # for proper rdoc/ri creation, make sure to link to destroot
 libruby.dylib
         destroot.env    DYLD_LIBRARY_PATH=${destroot}${prefix}/lib
 @@ -86,22 +95,8 @@
  platform darwin 7 {
         # pthreads is being called with an unavailable function call
         configure.args-delete   --enable-pthread
 -       # /usr/bin/autoconf is too old to regenerate configure, requires
 >= 2.58
 -       depends_build   port:autoconf
  }

 -variant tk conflicts mactk description "enable tk support" {
 -       configure.args-delete   --without-tk
 -       configure.args-append   --with-tk
 -       depends_lib-append              port:tcl \
 -                                                       port:tk
 -}
 -
 -variant mactk conflicts tk description "enable MacTk (Tk.framework
 without X11) support" {
 -       configure.args-delete   --without-tk
 -       configure.args-append   --enable-tcltk-framework
 -}
 -
  variant thread_hooks description "apply Apple's thread_hooks patch" {
         patchfiles-append               patch-thread-hooks
  }
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/17547#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list