[MacPorts] #50969: Provide a generic extract (and compress) commands in base

MacPorts noreply at macports.org
Wed Mar 30 14:18:55 PDT 2016


#50969: Provide a generic extract (and compress) commands in base
--------------------------+----------------------
  Reporter:  mojca@…      |      Owner:  raimue@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.3.4
Resolution:               |   Keywords:
      Port:               |
--------------------------+----------------------
Description changed by mojca@…:

Old description:

> It would be extremely useful to introduce a command like
> {{{
> file_extract foo.tar.xz
> }}}
> in the core, so that ports could even "manually" extract (or compress)
> additional files when needed.
>
> At the moment MacPorts supports fetching distfiles from different
> mirrors, but it doesn't support extracting different filetypes, so all
> the "hard work" of extracting the proper file has to be repeated manually
> in the Portfile. It might also be useful to be able to extract additional
> tarballs when fetching from git/svn, so the command would be helpful in
> many different context.
>
> MacPorts could also have the ability to automatically use different
> extract methods based on filenames (that is: when file extension is
> specified; `use_xz` would then only influence the default type that could
> theoretically be overwritten).
>
> (The other nice-to-have functionality would be the ability to create
> (reproducible) tarballs on demand. But maybe that's for another ticket.)

New description:

 It would be extremely useful to introduce a command like
 {{{
 file_extract foo.tar.xz
 }}}
 in the core, so that ports could even "manually" extract (or compress)
 additional files when needed.

 At the moment MacPorts supports fetching distfiles from different mirrors,
 but it doesn't support extracting different filetypes, so all the "hard
 work" of extracting the proper file has to be repeated manually in the
 Portfile. It might also be useful to be able to extract additional
 tarballs when fetching from git/svn, so the command would be helpful in
 many different context.

 MacPorts could also have the ability to automatically use different
 extract methods based on filenames (that is: when file extension is
 specified; `use_xz` would then only influence the default type that could
 theoretically be overwritten).

 (The other nice-to-have functionality would be the ability to create
 (reproducible) tarballs on demand as requested in #50896.)

--

-- 
Ticket URL: <https://trac.macports.org/ticket/50969#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list