Re: Howto create ruby gem?

"OBATA Akio" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
Hi!

On Tue, 29 Sep 2009 16:29:01 +0900, Fredrik Pettai <[email protected]> wrote:

> Hi,
>
> I'm trying to create a dnsruby gem package. see wip/ruby-dnsruby
> Although, I've succeeded (quick-n-dirty), I doubt it works the way
> pkgsrc installation is supposed to.
>
> The dnsruby gem/tar.gz doesn't have a Rake, Rakefile, setup.rb or
> install.rb. The only ways I find to install this gem is to do "gem
> install dnsruby", or simply copying the unpacked gem files from $
> {WRKSRC}.
>
> My Ruby skills are about zero and I don't find any documentation about
> the RUBY_ parameters in pkgsrc framework.
> Could someone hint me how I should install dnsruby "correctly" from
> pkgsrc?

I don't know about gems spec well, but for this package,
either followings should avoid the problem:
  * add a patch to remove "- html/classes" and "- html/files" from "files:" section in gemspec
  * create ${WRKSRC}/html/classes and ${WRKSRC}/html/files directory in post-extract phase.

-- 
"Of course I love NetBSD":-)
OBATA Akio / [email protected]

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.