Up to [cvs.NetBSD.org] / pkgsrc / filesystems / p5-Module-Path
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
filesystems: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes
filesystems: Remove SHA1 hashes for distfiles
Add SHA512 digests for distfiles for filesystems category Existing SHA1 digests verified, all found to be the same on the machine holding the existing distfiles (morden). Existing SHA1 digests retained for now as an audit trail.
Update to 0.19
Upstream changes:
0.19 2015-03-16 NEILB
- Added [MetaJSON] to dist.ini, so META.json will go into the distribution,
as well as META.yml. Thanks to Lucas Kanashiro.
- Dropped the -r test on directories, as we only actually need -d and -x.
Thanks to Lucas Kanashiro.
Update 0.13 to 0.18
-------------------
0.18 2014-12-17
- RIBASUSHI++ reminded me that to be a usable directory in @INC we need
to check -d && -r && -x.
0.17 2014-12-17
- Fixed RT#96433: ignore directories in @INC which don't exist.
Apologies to ETHER++ for over-thinking this one,
and taking so long to fix it.
0.16 2014-12-13
- Added TODO.md with an initial todo list for the module
0.15 2014-10-14
- Doing a foreach $dir (@INC) and then resolving symblinks on $dir
was changing the entries in @INC. HAARG++ for pull request with fix.
- Changed author email address to be my CPAN email address.
0.14 2014-08-16
- Added Travis config, using cpanfile and cpanm to ensure all dependencies
are installed before running tests with prove.
Thanks to DAGOLDEN.
- Improved the first paragraph of DESCRIPTION, so search results give
a better summary of the module.
0.13 2014-02-22
- Looks like in some rare circumstances, Cwd::abs_path() can croak,
so now we wrap that in eval { } and deal accordingly.
0.12 2014-02-19
- We now fully resolve symlinks in @INC paths. The previous 'fix'
for Debian broke the tests on FreeBSD.
Thanks to G茅raud Continsouzas, and Daniel Lintott for help testing.
0.11_03 2014-02-18
- Another place where we need to worry about getting undef.
0.11_02 2014-02-18
- Wasn't handling the case where abs_path() returns undef,
which it does if a symlink "goes nowhere".
0.11_01 2014-02-18
- The testsuite fix in 0.11 caused a breakage on FreeBSD,
where a directory path contains a symlink that wasn't
the final directory. So now module_path() fully resolves
all symlinks in the path, using Cwd::abs_path().
0.11 2014-02-17
- Testsuite now uses Cwd::abs_path() on paths from %INC,
to cope with synlinks in @INC directories.
This was causing test failures on Debian(-based) systems.
Thanks to Daniel Lintott and Erez Schatz for reporting
and testing proposed fix.
0.10_01 2014-02-16
- Developer release with the change that made it into
0.11, above.
0.10 2014-02-04
- mpath can display paths for multiple modules (Ahmad Syaltut)
- specified min perl version 5.6.0
0.09_01 2013-08-21
- If a directory in @INC is a symlink, return the linked-to directory
in the path. Problem report and patch from Sharl Morlaroll
https://github.com/neilbowers/Module-Path/issues/4
Adding package for CPAN distribution Module-Path version 0.09 into
filesystems/p5-Module-Path.
Module::Path provides a single function, module_path(), which will find
where a module is installed locally.
It works by looking in all the directories in @INC for an appropriately
named file:
* Foo::Bar becomes Foo/Bar.pm, using the correct directory path
separator for your operating system.
* Iterate over @INC, ignoring any references (see "require" in
"perlfunc" if you're surprised to hear that you might find references
in @INC).
* For each directory in @INC, append the partial path (Foo/Bar.pm),
again using the correct directory path separator. If the resulting
file exists, return this path.
* If no file was found, return undef.