BSD Ports

devel/mage 1.17.2_8,1 FreeBSD

Command-line make-like build tool using Go as input files

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
APACHE20
Categories
devel
Package size
1507.9 KiB, 4727.8 KiB installed

Description

Mage is a make/rake-like build tool using Go. You write plain-old go functions, and Mage automatically uses them as Makefile-like runnable targets.

Makefiles are hard to read and hard to write. Mostly because makefiles are essentially fancy bash scripts with significant white space and additional make-related syntax.

Mage lets you have multiple magefiles, name your magefiles whatever you want, and they're easy to customize for multiple operating systems. Mage has no dependencies (aside from go) and runs just fine on all major operating systems, whereas make generally uses bash which is not well supported on Windows. Go is superior to bash for any non-trivial task involving branching, looping, anything that's not just straight line execution of commands. And if your project is written in Go, why introduce another language as idiosyncratic as bash? Why not use the language your contributors are already comfortable with?

In the other systems

SystemPortVersion
FreeBSDdevel/mage1.17.2_8,1
DragonFlydevel/mage1.15.0_10,1
MidnightBSDdevel/mage1.15.0,1

Install

Binary package:

pkg install mage

From the ports tree:

cd /usr/ports/devel/mage/ && make install clean

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

RUN_DEPENDS=	mage>0:devel/mage

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.17.2_7,11.17.2_7,1-1.15.0_15,11.17.2_7,1
FreeBSD:14:quarterly1.17.2_7,11.17.2_7,1n/a1.15.0_13,11.17.2_7,1
FreeBSD:15:latest1.17.2_7,11.17.2_7,1n/a-1.15.0_15,1
FreeBSD:15:quarterly1.17.2_7,11.17.2_7,1n/an/an/a
FreeBSD:16:latest1.17.2_6,11.17.2_7,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

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 1

No port depends on this one.

Configuration

No options to configure.

USES
go:modules
Service scripts
none

Files

distinfo 1
FileSizeSHA256
magefile-mage-v1.17.2_GH0.tar.gz8.831461e+06af594292c863a7c0bfe93c35a33a1c441a2dca24c5ade552a96caacf5015efcc

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.