aboutsummaryrefslogtreecommitdiffstats
path: root/editors/micro
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2017-02-28 06:23:16 +0800
committerswills <swills@FreeBSD.org>2017-02-28 06:23:16 +0800
commite5fe7897ba7ec451ca217d6b0ee8b6859fe0e6f6 (patch)
tree70da3bb7b1cf75e919d243dcaff98b60ed1216e6 /editors/micro
parent07e2b8264db47db773b1df620537fd017c6f5957 (diff)
downloadfreebsd-ports-gnome-e5fe7897ba7ec451ca217d6b0ee8b6859fe0e6f6.tar.gz
freebsd-ports-gnome-e5fe7897ba7ec451ca217d6b0ee8b6859fe0e6f6.tar.zst
freebsd-ports-gnome-e5fe7897ba7ec451ca217d6b0ee8b6859fe0e6f6.zip
editors/micro: create port
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. WWW: https://micro-editor.github.io/
Diffstat (limited to 'editors/micro')
-rw-r--r--editors/micro/Makefile55
-rw-r--r--editors/micro/distinfo35
-rw-r--r--editors/micro/pkg-descr5
3 files changed, 95 insertions, 0 deletions
diff --git a/editors/micro/Makefile b/editors/micro/Makefile
new file mode 100644
index 000000000000..57e3a110b78a
--- /dev/null
+++ b/editors/micro/Makefile
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME= micro
+PORTVERSION= 1.1.4
+DISTVERSIONPREFIX= v
+CATEGORIES= editors
+
+MAINTAINER= swills@FreeBSD.org
+COMMENT= Modern and intuitive terminal-based text editor
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= go:lang/go
+
+USE_GITHUB= yes
+GH_ACCOUNT= zyedidia
+GH_SUBDIR= src/github.com/zyedidia/${PORTNAME}
+GH_TUPLE= \
+ blang:semver:4a1e882:semver/src/github.com/blang/semver \
+ gdamore:encoding:b23993c:encoding/src/github.com/gdamore/encoding \
+ go-errors:errors:8fa88b0:errors/src/github.com/go-errors/errors \
+ golang:net:906cda9:net/src/golang.org/x/net \
+ golang:text:0ad425f:text/src/golang.org/x/text \
+ layeh:gopher-luar:ab3f305:luar/src/layeh.com/gopher-luar \
+ lucasb-eyer:go-colorful:c900de9:colorful/src/github.com/lucasb-eyer/go-colorful \
+ mattn:go-isatty:dda3de4:isatty/src/github.com/mattn/go-isatty \
+ mattn:go-runewidth:14207d2:runewidth/src/github.com/mattn/go-runewidth \
+ mitchellh:go-homedir:b8bc1bf:homedir/src/github.com/mitchellh/go-homedir \
+ sergi:go-diff:24e2351:godiff/src/github.com/sergi/go-diff \
+ yuin:gopher-lua:eed1c79:gopherlua/src/github.com/yuin/gopher-lua \
+ zyedidia:clipboard:adacf41:clipboard/src/github.com/zyedidia/clipboard \
+ zyedidia:glob:dd4023a:glob/src/github.com/zyedidia/glob \
+ zyedidia:json5:2518f8b:json5/src/github.com/zyedidia/json5 \
+ zyedidia:tcell:856dbb2:tcell/src/github.com/zyedidia/tcell
+
+BUILD_HASH= 5dc8fe4
+BUILD_DATE= February 10, 2017
+
+STRIP= # stripping can break go binaries
+
+PLIST_FILES= bin/micro
+PORTDOCS= README.md
+
+do-build:
+ @(cd ${WRKSRC} ; \
+ ${SETENV} GOPATH=${WRKSRC} go build -ldflags \
+ "-s -w -X main.Version=${PORTVERSION} -X main.CommitHash=${BUILD_HASH} -X 'main.CompileDate=${BUILD_DATE}' " ./cmd/micro )
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/micro ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/editors/micro/distinfo b/editors/micro/distinfo
new file mode 100644
index 000000000000..c8812811df13
--- /dev/null
+++ b/editors/micro/distinfo
@@ -0,0 +1,35 @@
+TIMESTAMP = 1488232339
+SHA256 (zyedidia-micro-v1.1.4_GH0.tar.gz) = 54910918f9bf52b4b076fe46de8afb5fb1c6bb462f6a81414540acd4d56153e5
+SIZE (zyedidia-micro-v1.1.4_GH0.tar.gz) = 563376
+SHA256 (blang-semver-4a1e882_GH0.tar.gz) = e392b8b07bcc674ac15c0174b48f08528651f21bfbe448b91349825b68bba930
+SIZE (blang-semver-4a1e882_GH0.tar.gz) = 14839
+SHA256 (gdamore-encoding-b23993c_GH0.tar.gz) = 7fe1ed858143ba259114120a8a736645ee644b22bece7c09240df6113922f01a
+SIZE (gdamore-encoding-b23993c_GH0.tar.gz) = 10629
+SHA256 (go-errors-errors-8fa88b0_GH0.tar.gz) = 1564e6cb7460b5d2cd14f6fbb8e41f38e98483c0d33192b0a157888e742ccd47
+SIZE (go-errors-errors-8fa88b0_GH0.tar.gz) = 7889
+SHA256 (golang-net-906cda9_GH0.tar.gz) = 078a8a7cfd8a114977cb90661601c105cc2231fd275e0c044d8552f2a262b9a3
+SIZE (golang-net-906cda9_GH0.tar.gz) = 775828
+SHA256 (golang-text-0ad425f_GH0.tar.gz) = c178f070338a148f9d5f1c4724ef59a68286fbb18286c82c778a157d1590d7ec
+SIZE (golang-text-0ad425f_GH0.tar.gz) = 4552999
+SHA256 (layeh-gopher-luar-ab3f305_GH0.tar.gz) = 9251ec7bf852a28c922e57df1a2588a2436bcf12f7b2d0d83c846af157de8bcb
+SIZE (layeh-gopher-luar-ab3f305_GH0.tar.gz) = 21923
+SHA256 (lucasb-eyer-go-colorful-c900de9_GH0.tar.gz) = 0188b3fbfdd0427142e0fae5d64bfaf66e3428eb2536ae30ec11dda184c5189e
+SIZE (lucasb-eyer-go-colorful-c900de9_GH0.tar.gz) = 57046
+SHA256 (mattn-go-isatty-dda3de4_GH0.tar.gz) = c40190b1f3dcf07417ab5f6a631dd6e74ce054d602e1a983927761877d111f91
+SIZE (mattn-go-isatty-dda3de4_GH0.tar.gz) = 3182
+SHA256 (mattn-go-runewidth-14207d2_GH0.tar.gz) = e665c10f4ccefe1d320fe8fe69403754c499fe79bc737f8f1d199d86ecfb7efb
+SIZE (mattn-go-runewidth-14207d2_GH0.tar.gz) = 22365
+SHA256 (mitchellh-go-homedir-b8bc1bf_GH0.tar.gz) = 4baa24d61eab2da480d6f11d1d6f2a1cb7601f7b634af2ad5a978c95452150b9
+SIZE (mitchellh-go-homedir-b8bc1bf_GH0.tar.gz) = 2993
+SHA256 (sergi-go-diff-24e2351_GH0.tar.gz) = a2d75c5a10fe3ca9f00afe76452d7407742260927f3586c1f6078a77f41c151e
+SIZE (sergi-go-diff-24e2351_GH0.tar.gz) = 41465
+SHA256 (yuin-gopher-lua-eed1c79_GH0.tar.gz) = 1321f26e59709aa7a3c18d8a34db735222cbb1110e1b039c3b2ca48ff05cbc6c
+SIZE (yuin-gopher-lua-eed1c79_GH0.tar.gz) = 148779
+SHA256 (zyedidia-clipboard-adacf41_GH0.tar.gz) = e391050f2b2989e010a994daa99931e12b0427f7ac6bada22a1c5d0c69d77e74
+SIZE (zyedidia-clipboard-adacf41_GH0.tar.gz) = 3816
+SHA256 (zyedidia-glob-dd4023a_GH0.tar.gz) = 495f89326f153b713c2e3e24a0258decdc1d9e9dc1c2370ba7c39aa82289bc6f
+SIZE (zyedidia-glob-dd4023a_GH0.tar.gz) = 2696
+SHA256 (zyedidia-json5-2518f8b_GH0.tar.gz) = 5eaef29d6f96b99af5a89cac394c58011a6708f7fce93a5a4722e23e8ed8919f
+SIZE (zyedidia-json5-2518f8b_GH0.tar.gz) = 43655
+SHA256 (zyedidia-tcell-856dbb2_GH0.tar.gz) = 5878b4746547771c7c96d26f189cbd3d3095edee0ce6886cb701ac71939f422b
+SIZE (zyedidia-tcell-856dbb2_GH0.tar.gz) = 166376
diff --git a/editors/micro/pkg-descr b/editors/micro/pkg-descr
new file mode 100644
index 000000000000..b4c872879607
--- /dev/null
+++ b/editors/micro/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: https://micro-editor.github.io/