[43591] trunk/dports/lang/ruby/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu Dec 11 23:52:16 PST 2008


Revision: 43591
          http://trac.macports.org/changeset/43591
Author:   jeremyhu at macports.org
Date:     2008-12-11 23:52:16 -0800 (Thu, 11 Dec 2008)
Log Message:
-----------
ruby: autoreconf to build universal.  Removed the tk and mactk variants since this version of ruby doesn't recognize the --with-tk option

Modified Paths:
--------------
    trunk/dports/lang/ruby/Portfile

Modified: trunk/dports/lang/ruby/Portfile
===================================================================
--- trunk/dports/lang/ruby/Portfile	2008-12-12 07:51:46 UTC (rev 43590)
+++ trunk/dports/lang/ruby/Portfile	2008-12-12 07:52:16 UTC (rev 43591)
@@ -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
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081211/422a0d13/attachment.html>


More information about the macports-changes mailing list