aboutsummaryrefslogtreecommitdiffstats
path: root/testing/micro
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-01-24 23:31:32 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2017-01-24 23:32:25 +0100
commitae67fa0cc979ab8a183ff6b3033dcfbc3de17cde (patch)
tree387e2b9497b4508ffa5b36c9161e14559ff5a0d9 /testing/micro
parentc98de8bf17f3a5deeba212b4f61b02438fcad73a (diff)
downloadaports-ae67fa0cc979ab8a183ff6b3033dcfbc3de17cde.tar.bz2
aports-ae67fa0cc979ab8a183ff6b3033dcfbc3de17cde.tar.xz
testing/micro: new aport
Diffstat (limited to 'testing/micro')
-rw-r--r--testing/micro/APKBUILD62
-rw-r--r--testing/micro/glide.lock62
-rw-r--r--testing/micro/glide.yaml20
3 files changed, 144 insertions, 0 deletions
diff --git a/testing/micro/APKBUILD b/testing/micro/APKBUILD
new file mode 100644
index 0000000000..c005c4148e
--- /dev/null
+++ b/testing/micro/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=micro
+pkgver=1.1.3
+pkgrel=0
+pkgdesc="A modern and intuitive terminal-based text editor"
+url="https://micro-editor.github.io/"
+arch="all"
+license="MIT"
+depends=""
+makedepends="go-bindata go glide"
+install=""
+subpackages=""
+source="micro-$pkgver.tar.gz::https://github.com/zyedidia/micro/archive/v$pkgver.tar.gz
+ glide.lock
+ glide.yaml
+ "
+builddir="$srcdir/src/github.com/zyedidia/$pkgname"
+
+prepare() {
+ mkdir -p ${builddir%/*}
+ mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1
+ default_prepare
+}
+
+
+build() {
+ cd "$builddir"
+ export GOPATH="$srcdir"
+ cp "$srcdir"/glide.yaml "$srcdir"/glide.lock .
+ glide install --skip-test || return 1
+ go-bindata -nometadata -o cmd/micro/runtime.go runtime/... || return 1
+ go build -v -ldflags \
+ "-s -w -X main.Version=$pkgver" ./cmd/micro || return 1
+}
+
+package() {
+ cd "$builddir"
+ install -Dm 755 $pkgname \
+ "$pkgdir"/usr/bin/$pkgname || return 1
+}
+
+glide_init() {
+ abuild clean deps unpack prepare
+ export GOPATH="$srcdir"
+ cd "$builddir"
+ rm -f glide.yaml glide.lock
+ glide init --non-interactive || return 1
+ glide up --skip-test || return 1
+ cp glide.yaml glide.lock "$startdir"
+ cd $startdir && abuild checksum undeps clean
+}
+
+md5sums="aec9e1858edf7bc6dbb809c2e4dacde1 micro-1.1.3.tar.gz
+7873dd5feecf2dc0830bb7d08b458377 glide.lock
+652a09903bc431ac4631d805e45154da glide.yaml"
+sha256sums="d5f3cba6d5b1bfd09c41af161360c8aa11e644306d23d9d9b3245cbed1d47f9a micro-1.1.3.tar.gz
+3eab4fc1380acfc700c1af08c38ed1efc6aa7f728b5f5a885ad317b25b7d483e glide.lock
+3e97833e334a5147dc993aaa2279cbf91364ba456577b8185e4211c51d3ffc4b glide.yaml"
+sha512sums="a73ce3867d4479f6321516b447f167e7117bca1383ee6d52afbd726024b8a8995f3db59bc6365a3b6ff39a16d2a2dc8ec0032ac1f2b2f320ac88e07e3ef091b5 micro-1.1.3.tar.gz
+91dd8f5d2d7a30678ec17ae49c22cf3cfe9f16fddf852bd890f31e3c772163f4410d595448abc850cd4f65966dc66586580b29765c47d67f41bc8737d5a551a9 glide.lock
+f45a434dc7d5ba41bcd54bb12f4f192920b95bb156f7ce5e092f2214965d5bf841ab24a9b613181260d260c5ac1abb36bd585f52b5bc4606102922b3f07ad836 glide.yaml"
diff --git a/testing/micro/glide.lock b/testing/micro/glide.lock
new file mode 100644
index 0000000000..8a17134c9b
--- /dev/null
+++ b/testing/micro/glide.lock
@@ -0,0 +1,62 @@
+hash: 3e97833e334a5147dc993aaa2279cbf91364ba456577b8185e4211c51d3ffc4b
+updated: 2017-01-24T16:14:38.277423319+01:00
+imports:
+- name: github.com/blang/semver
+ version: dfab6d0809cb872370374c3bbe5770e926187def
+- name: github.com/gdamore/encoding
+ version: b23993cbb6353f0e6aa98d0ee318a34728f628b9
+- name: github.com/go-errors/errors
+ version: 8fa88b06e5974e97fbf9899a7f86a344bfd1f105
+- name: github.com/layeh/gopher-luar
+ version: 80196fe2abc5682963fc7a5261f5a5d77509938b
+- name: github.com/lucasb-eyer/go-colorful
+ version: 9c2852a141bf4711e4276f8f119c90d0f20a556c
+- name: github.com/mattn/go-isatty
+ version: 30a891c33c7cde7b02a981314b4228ec99380cca
+- name: github.com/mattn/go-runewidth
+ version: 737072b4e32b7a5018b4a7125da8d12de90e8045
+- name: github.com/mitchellh/go-homedir
+ version: b8bc1bf767474819792c23f32d8286a45736f1c6
+- name: github.com/sergi/go-diff
+ version: ec7fdbb58eb3e300c8595ad5ac74a5aa50019cc7
+ subpackages:
+ - diffmatchpatch
+- name: github.com/yuin/gopher-lua
+ version: 66c871e454fcf10251c61bf8eff02d0978cae75a
+ subpackages:
+ - ast
+ - parse
+ - pm
+- name: github.com/zyedidia/clipboard
+ version: adacf416cec40266b051e7bc096c52951f2725e9
+- name: github.com/zyedidia/glob
+ version: 7cf5a078d22fc41b27fbda73685c88a3f2c6fe28
+- name: github.com/zyedidia/json5
+ version: 2518f8beebde6814f2d30d566260480d2ded2f76
+ subpackages:
+ - encoding/json5
+- name: github.com/zyedidia/tcell
+ version: f03d5b8b2730cb2578c427d120a5692ca54fb67b
+ subpackages:
+ - encoding
+- name: golang.org/x/net
+ version: 57bfaa875b96fb91b4766077f34470528d4b03e9
+ subpackages:
+ - context
+- name: golang.org/x/sys
+ version: 478fcf54317e52ab69f40bb4c7a1520288d7f7ea
+ subpackages:
+ - unix
+- name: golang.org/x/text
+ version: 2910a502d2bf9e43193af9d68ca516529614eed3
+ subpackages:
+ - encoding
+ - encoding/charmap
+ - encoding/internal
+ - encoding/internal/identifier
+ - encoding/japanese
+ - encoding/korean
+ - encoding/simplifiedchinese
+ - encoding/traditionalchinese
+ - transform
+testImports: []
diff --git a/testing/micro/glide.yaml b/testing/micro/glide.yaml
new file mode 100644
index 0000000000..36f8484286
--- /dev/null
+++ b/testing/micro/glide.yaml
@@ -0,0 +1,20 @@
+package: github.com/zyedidia/micro
+import:
+- package: github.com/blang/semver
+- package: github.com/go-errors/errors
+- package: github.com/layeh/gopher-luar
+- package: github.com/mattn/go-isatty
+- package: github.com/mattn/go-runewidth
+- package: github.com/mitchellh/go-homedir
+- package: github.com/sergi/go-diff
+ subpackages:
+ - diffmatchpatch
+- package: github.com/yuin/gopher-lua
+- package: github.com/zyedidia/clipboard
+- package: github.com/zyedidia/glob
+- package: github.com/zyedidia/json5
+ subpackages:
+ - encoding/json5
+- package: github.com/zyedidia/tcell
+ subpackages:
+ - encoding