diff options
Diffstat (limited to 'app-admin/cli53')
-rw-r--r-- | app-admin/cli53/Manifest | 2 | ||||
-rw-r--r-- | app-admin/cli53/cli53-0.7.4.ebuild (renamed from app-admin/cli53/cli53-0.7.3.ebuild) | 18 | ||||
-rw-r--r-- | app-admin/cli53/cli53-9999.ebuild | 39 |
3 files changed, 53 insertions, 6 deletions
diff --git a/app-admin/cli53/Manifest b/app-admin/cli53/Manifest index 6568ce2c5930..ab55c97c89d3 100644 --- a/app-admin/cli53/Manifest +++ b/app-admin/cli53/Manifest @@ -1 +1 @@ -DIST cli53-0.7.3.tar.gz 3268731 SHA256 0f14e8a17ed00ed7ac7b6d7ecc8bbba1a0fdbbd415e8c93f74b59d3f7988d067 SHA512 7472c5165b18dba611c46adcf5cc328d077ffcecaca6cb569abece47e3cc367a135072c180807a3cbc8e087a1725eac20f884e061ccfc46db59eb6bc6e13bcf6 WHIRLPOOL 5b43703d2301e8b3d5b9f34f1efb6fe7a72f78be48cc0836134a8a92ed24f643f19dd36d0b1b9a08d5d863fce8acfe1e73f1b012e211644c00df5a10801591d9 +DIST cli53-0.7.4.tar.gz 3270107 SHA256 3cb89e6aa91676ffd0577798a4b06b056667d18ad836de4fa31c0564ee48474e SHA512 fb0fb7891dacf07b4a34861c6c93d8ab8c177710345cfb6d39feb56892d6b9fa8d39b1d933323a6649e3fefdb941cdc7d4940bbdb7040d41a99ea988c3b976fa WHIRLPOOL a62f999666215540afbd4bfbdc07366a772900520c21fb9e65dbcc7d7da6ea5c0354017c1ff1c1825ba84c777e7c1a07367ac521ce0aedaefe21ca2ec0c52871 diff --git a/app-admin/cli53/cli53-0.7.3.ebuild b/app-admin/cli53/cli53-0.7.4.ebuild index ce3cb7cf1b46..834f3a3771c5 100644 --- a/app-admin/cli53/cli53-0.7.3.ebuild +++ b/app-admin/cli53/cli53-0.7.4.ebuild @@ -4,21 +4,29 @@ EAPI=6 -inherit golang-vcs-snapshot +if [[ ${PV} == 9999 ]]; then + inherit golang-vcs +else + inherit golang-vcs-snapshot + SRC_URI="https://github.com/barnybug/cli53/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi DESCRIPTION="Command line tool for Amazon Route 53" HOMEPAGE="https://github.com/barnybug/cli53" -SRC_URI="https://github.com/barnybug/cli53/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64" EGO_PN="github.com/barnybug/cli53" S="${WORKDIR}/${P}/src/${EGO_PN}" src_compile() { - GOPATH="${WORKDIR}/${P}" emake version=${PV} build + if [[ ${PV} == 9999 ]]; then + GOPATH="${WORKDIR}/${P}" emake build + else + GOPATH="${WORKDIR}/${P}" emake build version=${PV} + fi } src_test() { @@ -27,5 +35,5 @@ src_test() { src_install() { dobin cli53 - dodoc {CHANGELOG,README}.md + dodoc CHANGELOG.md README.md } diff --git a/app-admin/cli53/cli53-9999.ebuild b/app-admin/cli53/cli53-9999.ebuild new file mode 100644 index 000000000000..834f3a3771c5 --- /dev/null +++ b/app-admin/cli53/cli53-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${PV} == 9999 ]]; then + inherit golang-vcs +else + inherit golang-vcs-snapshot + SRC_URI="https://github.com/barnybug/cli53/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Command line tool for Amazon Route 53" +HOMEPAGE="https://github.com/barnybug/cli53" + +LICENSE="MIT" +SLOT="0" + +EGO_PN="github.com/barnybug/cli53" +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_compile() { + if [[ ${PV} == 9999 ]]; then + GOPATH="${WORKDIR}/${P}" emake build + else + GOPATH="${WORKDIR}/${P}" emake build version=${PV} + fi +} + +src_test() { + GOPATH="${WORKDIR}/${P}" go test -v || die +} + +src_install() { + dobin cli53 + dodoc CHANGELOG.md README.md +} |