Page MenuHomeFreeBSD

New port: devel/p5-File-ShareDir-Tarball: Deal transparently with shared files distributed as tarballs

Authored by kai on Apr 9 2019, 10:36 AM.



If the shared files of a distribution are contained in a tarball (see
Dist::Zilla::Plugin::ShareDir::Tarball for why you would want to do that)
automatically extract the archive in a temporary directory and return the path
to that directory.

If called for a regular distribution without a bundle file
(shared-files.tar.gz), it'll return the original shared dir. In other words,
from the consumer point of view, it'll behave just like File::ShareDir.


PR: 237109
Submitted by: Geoffroy Desvernay
Approved by: (one of the mentors)

Test Plan
  • poudriere (11.2-, 12.0-RELEASE, 13.0-CURRENTr345355 amd64 + i386) -> OK
  • portlint -> OK
  • Runtime tests -> OK

Test results with "make test" yields:

All tests successful.
Files=9, Tests=13, 1 wallclock secs ( 0.05 usr 0.02 sys + 1.09 cusr 0.30 csys = 1.45 CPU)
Result: PASS

Minor fixes to the original patch:

  • Changed MAINTAINER to submitter's address
  • Added _LICENSE_FILE for ART10 and GPLv1+
  • Merged pkg-plist into PLIST_FILES
  • Improved pkg-descr a bit by realigning it to the 80 char width

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This needs to be hooked into devel/Makefile

This revision now requires changes to proceed.Apr 13 2019, 7:32 AM

Add the port to devel/Makefile to enable building

This revision was not accepted when it landed; it landed in state Needs Review.Apr 15 2019, 9:00 AM
This revision was automatically updated to reflect the committed changes.