pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Howto create ruby gem?



Hi,

On Sep 29, 2009, at 10:43 AM, OBATA Akio wrote:

> Hi!
>
> On Tue, 29 Sep 2009 16:29:01 +0900, Fredrik Pettai  
> <pettai%nordu.net@localhost> 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.


Thanks. What (if any) pkgsrc foo did you use to trace down that?

I removed my post-patch copy of ${DISTFILES} to ${WRKSRC}, because  
that basically just installs the original .gem file, because that will  
lose patches applied on ${WRKSRC} on installation.

Then I tried both of your suggestion, but they didn't work with  
following error:

-bash-4.0$ make install
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Installing for ruby18-dnsruby-1.37
=> Becoming ``root'' to make su-install-all (sudo)
WARNING: *** Please consider adding c to USE_LANGUAGES in the package  
Makefile.
=> Installing gem into installation root
ERROR:  could not find gem /usr/pkgsrc/wip/ruby-dnsruby/work/ 
dnsruby-1.37/dnsruby-1.37.gem locally or in a repository
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/wip/ruby-dnsruby
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/ruby-dnsruby
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/ruby-dnsruby


Could there be something (RUBY_*) missing in the Makefile?

Re,
/P

------------------------------------------------------------------------------
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
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index