app-portage/golop: Add v0.0.1
authorTobias Klausmann <klausman@gentoo.org>
Mon, 9 Apr 2018 08:48:58 +0000 (10:48 +0200)
committerTobias Klausmann <klausman@gentoo.org>
Mon, 9 Apr 2018 08:48:58 +0000 (10:48 +0200)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

app-portage/golop/Manifest [new file with mode: 0644]
app-portage/golop/golop-0.0.1.ebuild [new file with mode: 0644]

diff --git a/app-portage/golop/Manifest b/app-portage/golop/Manifest
new file mode 100644 (file)
index 0000000..991ce1d
--- /dev/null
@@ -0,0 +1 @@
+DIST golop-0.0.1.tar.gz 8316 BLAKE2B a1e51d55ef4744f3a6d00bcba145a410c9f67e78107bb990f6195ec5912d875e31308556e5d1e993917526121857ece09bd894556328e37453ea98d0a306f6d8 SHA512 650ceeb2607871d029f97ced882d661d1045dce6792c2c43f9c79076497a37290bc944f1b619ca133faac73c9fd1a6c35f1f2afd8e84c17ddf37252b66f08650
diff --git a/app-portage/golop/golop-0.0.1.ebuild b/app-portage/golop/golop-0.0.1.ebuild
new file mode 100644 (file)
index 0000000..c244fad
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+EGO_PN=github.com/klausman/golop
+
+if [[ ${PV} = *9999* ]]; then
+       inherit golang-vcs
+else
+       KEYWORDS="~amd64 ~x86"
+       EGIT_COMMIT=v${PV}
+       SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+       inherit golang-vcs-snapshot
+fi
+inherit golang-build
+
+DESCRIPTION="A pure Go re-implementation of genlop"
+HOMEPAGE="https://github.com/klausman/golop"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+       dobin ${PN}
+
+       declare -a DOCS
+       DOCS+=( src/${EGO_PN}/README.md )
+       einstalldocs
+}