Quoth jonathan.i...@gmail.com ("Jonathan Yu"): > All: > > I like the idea of using SQLite because it's small, runs on most > operating systems and fast. It's also got less memory overhead, which > is certainly a good thing. > > However, with respect to using File::ShareDir; the module finds the > directory appropriately, but I'm at a loss as to how to configure > Module::Build to install it there. > > I suppose I could list File::ShareDir as a build requirement and just > force the file to be put where File::ShareDir says it should be, but > it's definitely less elegant than Module::Install, where a subclass > already provides functionality to put things in the Shared directory > (I believe it's M::I::Shared) > > Any thoughts on Module::Build and sharedir files?
If I'm reading the code right, you need to copy your shared files into somewhere under blib/lib/auto/Foo/Bar for distribution Foo-Bar or module Foo::Bar sometime during ACTION_build, and then it will get installed in the right place later. Of course you should be using File::Spec instead of specifying that path in Unix format, and by 'blib' I mean $self->blib, and so on... However, I don't use M::B, so I could be wrong :). Ben