mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
14fdd90f9cab92b47d9b8a174b3765ed2f98eb1f
The concept of an extract method is introduced, which is a string which identifies the command and args to be used to extract. The method is normally determined based on the file extension, but can be overridden on a per distfile basis by setting extract.methods. The built-in list of methods have names matching the second part of the use_* options names, e.g. "bzip2". There is additionally a "gzip" method for the case where no use_* option is set. extract.methods should be a valid dict, with each pair of elements being a distfile name and the method that should be used for it. Distfiles not present in extract.methods will use a method determined from their filename. A method that is not in the built-in list will be assumed to be a proc defined by the Portfile, which takes the path to a distfile as its argument. This can be used to extract arbitrary new file formats while still taking advantage of the built-in methods for other distfiles. The extract.cmd, extract.pre_args and extract.post_args options are used when extracting files that use a method matching extract.suffix. The behaviour thus stays the same for the single distfile case and when all distfiles in extract.only are of the same type. Files that do not use the method matching extract.suffix, either because of their extension or extract.methods, will use an internally discovered command and args. A custom method can be used if the defaults are not suitable. Since the commands and args are now derived from the filename suffixes, setting the use_* options now simply sets extract.suffix appropriately.
macports-base
This repository contains the source code for the MacPorts command-line client.
Official documentation: https://guide.macports.org/
Description
Languages
Tcl
51.7%
C
33.7%
Assembly
9.6%
M4
2.7%
Shell
1.2%
Other
1.1%