package managers - Ebuild example for project in Go -


i intend create gentoo ebuild project written in go, , i'm wondering whether has been done before.

as building , installing go project source seems sufficiently different compared projects in other programming languages, useful me compare existing ebuild figuring out best practices.

however, in current portage tree can't find package depend on "dev-lang/go". there such ebuild, perhaps in overlay?

how go-overlay example ebuilds? wrote special ebuild class building go apllications , libraries in few lines. let me use dev-util/flint-0.0.4 ebuild illustration (all comments mine):

eapi=6  golang_pkg_importpath="github.com/pengwynn" golang_pkg_version="c3a5d8d9a2e04296fba560d9a22f763cff68eb75"  # many go projects don't pin versions of dependencies, # may has done here. might not need step if # upstream uses 'godep' or simular tool. golang_pkg_dependencies=(     "github.com/codegangsta/cli:142e6cd241"     "github.com/fatih/color:1b35f289c4"     "github.com/octokit/go-octokit:4408b5393e"     "github.com/fhs/go-netrc:4422b68c9c"     "github.com/jingweno/go-sawyer:1999ae5763"     "github.com/shiena/ansicolor:264b056680"     "github.com/jtacoma/uritemplates:0a85813eca" )  # since many projects don't require custom build steps, # single line may enough. inherit golang-single  # nothing special these variables.     description="check project common sources of contributor friction" homepage="https://${golang_pkg_importpath}/${pn}"     license="mit" keywords="amd64 x86 arm"  # prevent simulateneous installing 'dev-go/flint'. # honestly, unable package on internet. slot="0" depend="!dev-go/${pn}" 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -