On 2010/11/01 16:19, onteria wrote:
> > On Sat, Oct 30, 2010 at 10:49:35PM -0700, Onteria wrote:
> > > I've lately been working on KDE4 OpenBSD support, but I've hit a snag
> > > on kdewebdev. Basically the pkg/PLIST has the following:
> > > 
> > > share/apps/klinkstatus/scripts/statistics.rb
> > > share/apps/klinkstatus/scripts/statisticsui.ui
> > > 
> > > However, these particular files are only installed if ruby is found on
> > > the system, which in my case it isn't installed. I really don't think
> > > pulling in ruby for the sole purpose of these example files is a great
> > > idea (yes I verified ruby was only needed for these files).
> > 
> > AFAIK this is not in any standard document, but I'd recommend installing
> > them (as examples, at least - make sure you introduce no errors) whether
> > or not ruby is installed; I'd also recommend not depending on ruby.
> 
> Well, the issue is that they're only part of the install if ruby is
> detected as installed on the host system. I suppose the better solution
> would be just to patch the HAVE_RUBY check out, since they are not
> actually generated by ruby, but you can't really do much with them if
> ruby is not installed. I think I'll report this upstream. Requiring the
> entirety of ruby for two simple scripts seems a bit much imho.

You can just install them manually in a post-install target. Make sure
any #! paths are patched with MODRUBY_RUBY_ADJ and I agree with Joachim,
it doesn't make much sense to depend on Ruby for these, so you probably
want some MODRUBY_BUILDDEP/RUNDEP=No.

> I'm not sure who would be the best person to reach out to.

ports@ is probably the best place.

Reply via email to