Re: [gentoo-dev] new eclass: golang-build.eclass for building Go software

2015-06-23 Thread William Hubbs
All, I am commiting golang-build.eclass and applying the attached patch at the same time. In my testing of the golang-vcs and golang-build eclasses, I never saw a need to have separate EGO_PN and EGO_PN_BUILD variables, so we now use EGO_PN in both eclasses. William --- golang-build.eclass 2015

Re: [gentoo-dev] new eclass: golang-build.eclass for building Go software

2015-06-22 Thread William Hubbs
All, here is an updated version of this eclass. The following changes have been made: 1. GOPATH is not put in the ebuild environment; it is passed to the commands that need it. 2. By default, third party Go sources and packages are installed in a system-wide Go workspace located in /usr/lib/go-g

Re: [gentoo-dev] new eclass: golang-build.eclass for building Go software

2015-06-18 Thread William Hubbs
All, I have been testing with this today and noticed some flags that needed to be changed on the go commands. Those changes are included in this patch,. The flag changes make the go commands as verbose as possible and drop some invalid flags. William --- golang-build.eclass 2015-06-18 16:44:33

Re: [gentoo-dev] new eclass: golang-build.eclass for building Go software

2015-06-17 Thread William Hubbs
On Wed, Jun 17, 2015 at 03:51:12PM -0500, William Hubbs wrote: > # Copyright 1999-2015 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > > # @ECLASS: golang-build.eclass > # @MAINTAINER: > # William Hubbs > # @BLURB: Eclass for compiling go pa

[gentoo-dev] new eclass: golang-build.eclass for building Go software

2015-06-17 Thread William Hubbs
All, this replaces my previous golang.eclass and will provide basic src_compile/install/test functions for Go software. Take a look and let me know what you think. William # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #