Hi Antonio, all, Sorry for me late reply, quite busy: On 16-12-08 16:03:14, Antonio Terceiro wrote: > On Thu, Dec 08, 2016 at 04:09:31PM +0100, georg@riseup.net wrote: > > One idea we came up with is the following: > > > > Patch the upstream src: > > > > locales_dir = Dir["#{rootdir}/locales/*.yml"] > > > > if ENV['SCHLEUDER_LOCALES_DIR']: > > locales_dir = ENV['SCHLEUDER_LOCALES_DIR'] > > > > I18n.load_path += locales_dir > > > > -- > > > > Debian src: > > > > Using quilt: > > - locales_dir = Dir["#{rootdir}/locales/*.yml"] > > + locales_dir = Dir["/usr/share/schleuder/locales/*.yml"] > > > > debian/ruby-tests.rake: > > ENV['SCHLEUDER_LOCALES_DIR'] = Dir["#{rootdir}/locales/*.yml"] > > if Dir.exists?('/etc/schleuder') > > ENV['SCHLEUDER_LOCALES_DIR'] = nil > > > > Of course I'm happy to hear about different approaches, etc. > > this should work. In the end, I've just did, using quilt: + locales_dir = Dir["/usr/share/schleuder/locales/*.yml"] No need to do any further changes, neither upstream nor in debian/. > however, since that conversation we had on IRC about > dh_ruby --gem-install, I made some improvements to it in gem2deb 0.33 > and 0.33.1 I would encourage you to give it a try; to do that just > change debian/rules to have > > export DH_RUBY = --gem-install > > Using this, you avoid most of the situations where we need to patch > upstream sources to deal with the different layout in Debian packages. I > intend to make the template for new packages have that at some point, > maybe even before the release. Thanks again for the pointer. However, I really don't like the folder / filesystem layout.. :( > Is the latest version of the schleuder packaging in git? Yes, currently in branch 'wip'. Cheers, Georg
Attachment:
signature.asc
Description: Digital signature