Last active
February 20, 2017 13:46
-
-
Save osirisinferi/299759975f27bb4bea7dc03aaf995af1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2017 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Id$ | |
EAPI=5 | |
EGO_PN=github.com/joohoi/${PN} | |
if [[ ${PV} = *9999* ]]; then | |
inherit golang-vcs | |
else | |
KEYWORDS="~amd64" | |
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | |
inherit golang-vcs-snapshot | |
fi | |
inherit golang-build | |
DESCRIPTION="A simplified DNS server with a RESTful HTTP API to provide a simple way to automate ACME DNS challenges." | |
HOMEPAGE="https://github.com/joohoi/acme-dns" | |
LICENSE="MIT" | |
SLOT="0" | |
IUSE="" | |
DEPEND="" | |
RDEPEND="dev-lang/go" | |
src_compile() { | |
ebegin "Building ${P}" | |
GOPATH=${WORKDIR}:/usr/lib/go-gentoo:/usr/portage/distfiles/go-src go build -v -work -x ${EGO_PN} | |
} | |
src_install() { | |
ebegin "Installing ${P}" | |
dobin ${WORKDIR}/${P}/${PN} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment