gentoo-repo

git clone git://archive.git.mtrnord.blog/MTRNord/gentoo-repo.git
Log | Files | Refs | README

lego-9999.ebuild (703B)


      1 # Copyright 2021 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=7
      5 EGO_PN="github.com/go-acme/lego"
      6 
      7 DESCRIPTION="Let's Encrypt client and ACME library written in Go."
      8 HOMEPAGE="https://go-acme.github.io/lego"
      9 SRC_URI=""
     10 
     11 inherit git-r3
     12 inherit go-module
     13 
     14 #go-module_set_globals
     15 
     16 EGIT_REPO_URI="https://github.com/go-acme/lego.git"
     17 if [[ ${PV} != "9999" ]]; then
     18 EGIT_COMMIT="v${PV}"
     19 KEYWORDS="~amd64 ~x86"
     20 fi
     21 
     22 LICENSE="MIT"
     23 SLOT="0"
     24 KEYWORDS="~amd64"
     25 IUSE=""
     26 
     27 DEPEND="dev-lang/go"
     28 RDEPEND=""
     29 BDEPEND=""
     30 
     31 if [[ ${PV} == 9999 ]]; then
     32 src_unpack() {
     33 	git-r3_src_unpack
     34 	go-module_live_vendor
     35 }
     36 fi
     37 
     38 src_compile() {
     39 	make build
     40 }
     41 
     42 src_install() {
     43 	dobin dist/lego
     44 }