Port details |
- p5-Data-ModeMerge Merge two nested data structures, with merging modes and options
- 0.36.0 devel
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-09-05 06:21:15
- Last Update: 2024-09-05 06:11:14
- Commit Hash: d8f371a
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/dist/Data-ModeMerge
- Description:
- There are already several modules on CPAN to do recursive data structure
merging, like Data::Merger and Hash::Merge. Data::ModeMerge differs in that it
offers merging "modes" and "options". It provides greater flexibility on what
the result of a merge between two data should/can be. This module may or may not
be what you need.
One application of this module is in handling configuration. Often there are
multiple levels of configuration, e.g. in your typical Unix command-line program
there are system-wide config file in /etc, per-user config file under ~/, and
command-line options. It's convenient programatically to load each of those in a
hash and then merge system-wide hash with the per-user hash, and then merge the
result with the command-line hash to get the a single hash as the final
configuration. Your program can from there on deal with this just one hash
instead of three.
In a typical merging process between two hashes (left-side and right-side), when
there is a conflicting key, then the right-side key will override the left-side.
This is usually the desired behaviour in our said program as the system-wide
config is there to provide defaults, and the per-user config (and the
command-line arguments) allow a user to override those defaults.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Data-ModeMerge>0:devel/p5-Data-ModeMerge
- To install the port:
- cd /usr/ports/devel/p5-Data-ModeMerge/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Data-ModeMerge
- pkg install p5-Data-ModeMerge
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Data-ModeMerge
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1724084446
SHA256 (Data-ModeMerge-0.360.tar.gz) = 1bac4f668a13be28b7b835f84b3543e5b73d963b6fb38b71c735d9079fbe7454
SIZE (Data-ModeMerge-0.360.tar.gz) = 47971
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Data-Dmp>=0.241 : devel/p5-Data-Dmp
- p5-Mo>=0 : devel/p5-Mo
- perl5>=5.36<5.37 : lang/perl5.36
- perl5>=5.36<5.37 : lang/perl5.36
- Test dependencies:
-
- p5-Test-Exception>=0 : devel/p5-Test-Exception
- Runtime dependencies:
-
- p5-Data-Dmp>=0.241 : devel/p5-Data-Dmp
- p5-Mo>=0 : devel/p5-Mo
- perl5>=5.36<5.37 : lang/perl5.36
- This port is required by:
- for Build
-
- devel/p5-Data-Sah-Resolve
- for Run
-
- devel/p5-Data-Sah-Resolve
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Data-ModeMerge
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.36.0 05 Sep 2024 06:11:14 |
Po-Chuan Hsieh (sunpoet) |
devel/p5-Data-ModeMerge: Add p5-Data-ModeMerge 0.360
There are already several modules on CPAN to do recursive data structure
merging, like Data::Merger and Hash::Merge. Data::ModeMerge differs in that it
offers merging "modes" and "options". It provides greater flexibility on what
the result of a merge between two data should/can be. This module may or may not
be what you need.
One application of this module is in handling configuration. Often there are
multiple levels of configuration, e.g. in your typical Unix command-line program
there are system-wide config file in /etc, per-user config file under ~/, and
command-line options. It's convenient programatically to load each of those in a
hash and then merge system-wide hash with the per-user hash, and then merge the
result with the command-line hash to get the a single hash as the final
configuration. Your program can from there on deal with this just one hash
instead of three.
In a typical merging process between two hashes (left-side and right-side), when
there is a conflicting key, then the right-side key will override the left-side.
This is usually the desired behaviour in our said program as the system-wide
config is there to provide defaults, and the per-user config (and the
command-line arguments) allow a user to override those defaults. |
Number of commits found: 1
|