pkgtools-to-portmanager.rb

Michael C. Shultz ringworm01 at gmail.com
Sat Dec 3 08:34:54 PST 2005


On Saturday 03 December 2005 08:03, Daniel Bye wrote:
> On Sat, Dec 03, 2005 at 07:49:10AM -0800, Michael C. Shultz wrote:
> > The ruby script doesn't convert pkgtools.conf if
> > it's entries are in array format, but if they are like this:
> >
> >        'editors/openoffice*'   =>      'LOCALIZED_LANG=en-US WITH_KDE=1',
> >         'emulators/qemu'        =>      'WITH_KQEMU=1',
> >
> > then it works fine.  That script was donated and I haven't had the time
> > to fix it, if your patch solves the problem that would be great!  I'm
> > still tied up for most of today so testing it myself might not happen
> > until tonight or tomorrow.
> >
> > For your information, the converted output goes to:
> >
> > /usr/local/etc/portmanager/pm-039-pkg-tools.conf
> >
> > see if your patch keeps it in the same format as:
> >
> > /usr/local/etc/portmanager/pm-020.conf
> >
> > if so I'll apply it to the ruby script, and be very thankful for your
> > help with this :)
> >
> > -Mike
>
> Rats!  Don't anybody use the patch!  It doesn't work.  I'll try to
> figure out how to do it right (damn, should be writing my assignments
> for college!)
>
> Bear with me...  ;-)
>
> Dan

I thank you for your effort!  Need to make sure that both formats convert BTW:

both of these should be allowed, right now only the top method works:

'editors/openoffice*'   =>      'LOCALIZED_LANG=en-US WITH_KDE=1',
'emulators/qemu'        =>      [
	'WITH_KQEMU=1',
	'WITH_SOMETHING=1',
	],

-Mike





More information about the freebsd-questions mailing list