BSD Ports

ports-mgmt/portfmt 1.1.5 DragonFly

Format FreeBSD Ports Makefiles

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
ports-mgmt
Package size
187.6 KiB, 1187.1 KiB installed

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=%25s\nEXPIRATION_DATE=%25s" \ 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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlyports-mgmt/portfmt1.1.5none known-[email protected]-
FreeBSDports-mgmt/portfmt1.1.6 newestnone known-[email protected]-
MidnightBSDports-mgmt/portfmt1.1.6_1 newestno data-[email protected]-
HardenedBSDports-mgmt/portfmt1.1.6 newestno data-[email protected]-
GhostBSDports-mgmt/portfmt1.1.6 newestno data-[email protected]-

Install

Binary package:

pkg install portfmt

From DPorts:

cd /usr/dports/ports-mgmt/portfmt && make install clean

Dependencies

No port depends on this one.