On Sun, Oct 24, 2010 at 05:43:33AM -0700, Jeremy Evans wrote: > This splits MODRUBY_WANTLIB from MODRUBY_LIB_DEPENDS. This has some > fallout for ports that use MODRUBY_LIB_DEPENDS, which will be updated > if/when it goes in. > > This adds handling for CONFIGURE_STYLE="ruby gem ext" to ruby.port.mk. > This configure style will be used for gems with C extensions, with the > following changes: > > SHARED_ONLY is added automatically. gems with C extensions create .so > files, so they can only be used on archs that support shared libraries. > > c, m, and MODRUBY_WANTLIB are added to WANTLIB. MODRUBY_LIB_DEPENDS is > also added to LIB_DEPENDS, but I'm not sure if that is necessary. I > believe that all ruby C extension gems need c, m, and MODRUBY_WANTLIB, > and since many C extension gem ports only have WANTLIB=c m, this can > simplify port makefiles by making it so you don't have to add a WANTLIB > line manually. > > Here's the changes to ruby.port.mk and an example for ruby-id3lib. > sthen@ thinks this is OK, but we agree that more people should see this > first. Thoughts?
I'm all for it. Landry