Import editors/micro.
A modern and intuitive terminal-based text editor. OK awolk@
This commit is contained in:
parent
eab2f2946b
commit
658ec6c01d
33
editors/micro/Makefile
Normal file
33
editors/micro/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/12/10 16:48:07 edd Exp $
|
||||
|
||||
COMMENT = modern and intuitive terminal-based text editor
|
||||
|
||||
V = 1.1.3
|
||||
DISTNAME = micro-${V}-src
|
||||
PKGNAME = micro-${V}
|
||||
|
||||
CATEGORIES = editors
|
||||
HOMEPAGE = https://micro-editor.github.io/
|
||||
MAINTAINER = Edd Barrett <edd@openbsd.org>
|
||||
|
||||
# MIT "Expat" License
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += c pthread
|
||||
|
||||
MASTER_SITES = https://github.com/zyedidia/micro/releases/download/v${V}/
|
||||
|
||||
MODULES = lang/go
|
||||
MODGO_TYPE = bin
|
||||
WRKDIST = ${WRKDIR}/micro
|
||||
|
||||
MAKE_ENV += MODGO_CMD="${MODGO_CMD}"
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} build-quick ${MAKE_FLAGS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/micro ${PREFIX}/bin
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
editors/micro/distinfo
Normal file
2
editors/micro/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (micro-1.1.3-src.tar.gz) = ewgkuWa2weNvieK/QBFL4uGSqv0FtqmUyuy4HU3mOog=
|
||||
SIZE (micro-1.1.3-src.tar.gz) = 9262349
|
12
editors/micro/patches/patch-Makefile
Normal file
12
editors/micro/patches/patch-Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2016/12/10 16:48:07 edd Exp $
|
||||
--- Makefile.orig Mon Nov 28 15:27:32 2016
|
||||
+++ Makefile Mon Nov 28 15:27:45 2016
|
||||
@@ -15,7 +15,7 @@ build-all: runtime build
|
||||
|
||||
# Builds micro without checking for dependencies
|
||||
build-quick:
|
||||
- go build -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" ./cmd/micro
|
||||
+ ${MODGO_CMD} build -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" ./cmd/micro
|
||||
|
||||
# Same as 'build' but installs to $GOBIN afterward
|
||||
install: deps
|
8
editors/micro/pkg/DESCR
Normal file
8
editors/micro/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
Micro is a terminal-based text editor that aims to be easy to use and
|
||||
intuitive, while also taking advantage of the full capabilities of modern
|
||||
terminals.
|
||||
|
||||
As the name indicates, micro aims to be somewhat of a successor to the nano
|
||||
editor by being easy to install and use in a pinch, but micro also aims to be
|
||||
enjoyable to use full time, whether you work in the terminal because you
|
||||
prefer it, or because you need to.
|
2
editors/micro/pkg/PLIST
Normal file
2
editors/micro/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/12/10 16:48:07 edd Exp $
|
||||
@bin bin/micro
|
Loading…
x
Reference in New Issue
Block a user