diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-11-14 18:41:37 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-11-14 18:41:37 +0100 |
commit | 2f55998c6e3fa38f3662b32f103bff213adb0722 (patch) | |
tree | 6a203a690a85f3fa8e1b182cb328ba1b13a544ea /dev-go/toml/toml-9999.ebuild | |
parent | dev-python/PythonQt: new ebuild (diff) | |
download | gentoo-2f55998c6e3fa38f3662b32f103bff213adb0722.tar.gz gentoo-2f55998c6e3fa38f3662b32f103bff213adb0722.tar.bz2 gentoo-2f55998c6e3fa38f3662b32f103bff213adb0722.zip |
dev-go/toml: Initial version
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-go/toml/toml-9999.ebuild')
-rw-r--r-- | dev-go/toml/toml-9999.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-go/toml/toml-9999.ebuild b/dev-go/toml/toml-9999.ebuild new file mode 100644 index 000000000000..74851398641b --- /dev/null +++ b/dev-go/toml/toml-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +EGO_PN="github.com/BurntSushi/toml" + +if [[ ${PV} == *9999 ]]; then + inherit golang-vcs +else + EGIT_COMMIT="99064174e013895bbd9b025c31100bd1d9b590ca" + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc64" + inherit golang-vcs-snapshot +fi + +DESCRIPTION="TOML parser for Golang with reflection" +HOMEPAGE="http://github.com/BurntSushi/toml" + +LICENSE="WTFPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR}/${P}/src/${EGO_PN} + +RESTRICT="test" + +src_compile() { + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/tomlv" ./cmd/tomlv || die +} + +src_install() { + dodoc README.md + dobin bin/tomlv +} |