devel/mage 1.15.0,1 MidnightBSD
Command-line make-like build tool using Go as input files
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- devel
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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/mage | 1.15.0,1 |
| FreeBSD | devel/mage | 1.17.2_8,1 |
| NetBSD | wip/mage | 1.17.2 |
| DragonFly | devel/mage | 1.15.0_10,1 |
| HardenedBSD | devel/mage | 1.17.2_6,1 |
| GhostBSD | devel/mage | 1.17.2_6,1 |
Install
Binary package:
mport install mage
From mports:
cd /usr/mports/devel/mage && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= mage>0:devel/mage
Dependencies
Required by 1
Configuration
No options to configure.
- USES
- go:modules
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| magefile-mage-v1.15.0_GH0.tar.gz | 8.805332e+06 | 3ce55e39d175d925c015b4dc773cea1fc4d3c64af9edcec6f9b7ab9388b751bf |