[Module::Build] Data::Package::*, File::ShareDir and the 'auto/' subdir
Status: Beta
Brought to you by:
kwilliams
|
From: Steffen S. <sch...@we...> - 2006-03-23 08:44:12
|
Hi!
Once upon a time, I already asked a similar question, where to install
non-perl files. I then solved it by installing files with an own
suffix into @INC near the module.
This time I want to install rather large amounts of data.
I could install them again beside the module, but in the mean time I
read about a "more official" sounding way in the documentation of the
modules
Data::Package (::SQLite)
File::ShareDir
Module::Install::Share
which would all solve this problem by installing data in the 'data/'
subdir near the module and finding them there at runtime.
By looking into the source, it seems, Module::Install:Share simply
uses a MakeMaker variable INST_AUTODIR (which itself is just a
relative subdir to INST_LIBDIR).
I want to use this way (i.e., Data::Package::SQLite with data files in
'auto/'), but install them with Module::Build.
==> The question:
How can I detect the 'auto/' subdir at install time and define
rules in Build.PL that install, for instance, all files from a
'share/' subdir into the corresponding 'auto/' subdir?
(Greeti+Tha)nX
Steffen
--
Steffen Schwigon <sch...@we...>
Dresden Perl Mongers <http://dresden-pm.org/>
|