BSD Ports

ports-mgmt/portfmt 1.1.6 FreeBSD

Format FreeBSD Ports Makefiles

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
ports-mgmt
Package size
210.1 KiB, 1195.4 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=%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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDports-mgmt/portfmt1.1.6 newestnone known-[email protected]-
DragonFlyports-mgmt/portfmt1.1.5none 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 the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	portfmt>0:ports-mgmt/portfmt

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.1.61.1.61.1.41.1.61.1.6
FreeBSD:14:quarterly1.1.61.1.6n/a1.1.61.1.6
FreeBSD:15:latest1.1.61.1.6n/a1.1.61.1.6
FreeBSD:15:quarterly1.1.61.1.6n/an/an/a
FreeBSD:16:latest1.1.61.1.6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

Ports that need it on the left, what it needs to run on the right (to build, as it needs nothing to run); at most 8 of each. "Dependencies" below lists them all.

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 8

No port depends on this one.

Configuration

Options name: ports-mgmt_portfmt

OptionDefaultDescription
SUBPACKAGESoffSubpackages 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
FileSizeSHA256
portfmt-1.1.6.tar.lz176481e9fe0a260a72212c97417bf8dbaa318e2317233b965e018ebb4b4a5e8e0ade95
Master sites 1
  • https://codeberg.org/tobik/portfmt/releases/download/v1.1.6/

Commit history 0

No commits in the history this site was built from.