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

Re: help: providing ruby-gnome2 gemspec



Hi,

On Wed, Jul 26, 2017 at 02:11:58PM -0300, Antonio Terceiro wrote:
> > but I think that "export make" and override_dh_auto_install are bit dirty trick.

"export make" is still there, but override_dh_auto_install trick is removed by
setting DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR.

> > Because upstream tarball does not provide any gemspecs.

> I think the Rakefile in each submodule should have a task that can be
> called to write the gemspec to the current directory, e.g. `rake
> gemspec`. See the attached patch, you will want to send that upstream.
> 
> then you would call `rake gemspec` for each module on
> override_dh_auto_build, and clean them up in override_dh_auto_clean.
> Something like this:
> 
> MODULES = $(grep-dctrl -n -s X-DhRuby-Root '' debian/control)
> 
> override_dh_auto_build:
> 	for mod in $(MODULES); do (cd $$mod && rake gemspec); done
> 	dh_auto_build
> 
> override_dh_auto_clean:
> 	for mod in $(MODULES); do (cd $$mod && rm -f *.gemspec); done
> 	dh_auto_clean
> 
> With this, it should all Just Work™.

Thank you for your great works. I confirmed.
I sent your patch to upstream: https://github.com/ruby-gnome2/ruby-gnome2/pull/1078
and pushed the current works to pkg-ruby-extras/ruby-gnome2's exp/debian branch.
-- 
Regards,
	dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E

Attachment: signature.asc
Description: PGP signature


Reply to: