On Mon, Jun 27, 2011 at 2:26 PM, Stefan Sperling <[email protected]> wrote:
> On Mon, Jun 27, 2011 at 08:04:39AM -0700, Jeremy Evans wrote:
>> On Mon, Jun 27, 2011 at 6:20 AM, Stefan Sperling <[email protected]> wrote:
>> > The Test::Unit API shipped with Ruby 1.9 is not fully backwards
>> > compatible with what was shipped in Ruby 1.8.
>> > However, the old Test::Unit API is available for Ruby 1.9 as a gem.
>> >
>> > This port will be required to run Subversion's Ruby bindings regression
>> > tests with Ruby 1.9 (some patches to Subversion are still needed to
>> > really make it work).
>> >
>> > I suppose other Test::Unit users will need this gem as well.
>>
>> Most of the API is the same, so I'm not sure much else will need it.
>> But it certainly should be added if it is necessary to run the
>> subversion regress tests.
>
> Turns out that it is rather hard for me to get Subversion's tests to
> even run with Unit::Test 2.3.0. They run fine with 1.2.3, which is the
> version shipped with ruby 1.8. But I don't want to import the old 1.2.3
> version into the ports tree.

You could regress depend on both ruby 1.8 and 1.9 for the subversion
ruby binding, and just copy the 1.8 test/unit files to a separate
directory and set ruby to use that directory first.  That way you
don't have to import another port, and things may be more likely to
work.

    mkdir ${WRKDIR}/rubylib
    cp -R ${LOCALBASE}/lib/ruby/1.8/test ${WRKDIR}/rubylib
    MAKE_ENV += RUBYLIB=${WRKDIR}/rubylib

Jeremy

Reply via email to