ports-mgmt/portfmt 1.1.6_1 MidnightBSD
Format Ports Makefiles
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2
- Categories
- ports-mgmt
Description
Portfmt is a collection of tools for editing, formatting, and linting FreeBSD Ports Collection Makefiles.
It comes with several tools:
- portfmt formats Makefiles
- portclippy is a linter that checks if variables are in the correct order in a more comprehensive way than portlint
- portedit edits Makefiles. It comes with several commands
that can be used as a basis for your own port update scripts:
-
bump-epoch: bumps PORTEPOCH or inserts it at the right place
-
bump-revision: bumps PORTREVISION or inserts it at the right place
-
get: lookup unevaluated variable values
-
merge: Generic command to set/update variables while also formatting the updated variables properly and inserting them in the right places if necessary. Useful for merging output of other tools like make cargo-crates, modules2tuple, or make stage-qa. For example to mark a port deprecated:
printf "DEPRECATED=%s\nEXPIRATION_DATE=%s" \ Abandonware 2019-08-15 | portedit merge -i Makefile
-
set-version: resets PORTREVISION, sets DISTVERSION or PORTVERSION
-
In the other systems
The newest version among them is 1.1.6, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | ports-mgmt/portfmt | 1.1.6_1 newest | no data | - | [email protected] | - |
| FreeBSD | ports-mgmt/portfmt | 1.1.6 newest | none known | - | [email protected] | - |
| DragonFly | ports-mgmt/portfmt | 1.1.5 | none known | - | [email protected] | - |
| HardenedBSD | ports-mgmt/portfmt | 1.1.6 newest | no data | - | [email protected] | - |
| GhostBSD | ports-mgmt/portfmt | 1.1.6 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install portfmt
From mports:
cd /usr/mports/ports-mgmt/portfmt && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= portfmt>0:ports-mgmt/portfmt
Dependencies
No port depends on this one.
Configuration
Options name: ports-mgmt_portfmt
| Option | Default | Description |
|---|---|---|
| SUBPACKAGES | off | Subpackages support (D16457) |
- USES
- compiler:c11 ninja tar:lz
- Service scripts
- none
Files
Manual pages 4
- portclippy(1)
- portedit(1)
- portfmt(1)
- portscan(1)
pkg-plist 8
- bin/portclippy
- bin/portedit
- bin/portfmt
- bin/portscan
- share/man/man1/portclippy.1.gz
- share/man/man1/portedit.1.gz
- share/man/man1/portfmt.1.gz
- share/man/man1/portscan.1.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| portfmt-1.1.6.tar.lz | 176481 | e9fe0a260a72212c97417bf8dbaa318e2317233b965e018ebb4b4a5e8e0ade95 |
Master sites 1
- https://codeberg.org/tobik/portfmt/releases/download/v1.1.6/