# Copyright 2021-2026 LiGurOs Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="Small tool to create CRATES entries for gentoo ebuilds from a Cargo.lock file." HOMEPAGE="https://codeberg.org/bluebottle/cargolock2crates" SRC_URI="https://codeberg.org/bluebottle/cargolock2crates/archive/v${PV}.tar.gz -> ${P}.tar.gz" inherit go-module LICENSE="MIT" SLOT="0" KEYWORDS="*" BDEPEND="dev-lang/go" DOCS=( README.md ) S=${WORKDIR}/${PN} program_make() { local my_tags=( prod ) local my_makeopt=( TAGS="${my_tags[@]}" LDFLAGS="-extldflags \"${LDFLAGS}\"" ) emake "${my_makeopt[@]}" "$@" } src_compile() { program_make build } src_install() { # Install binary dobin ${PN} # Install docs einstalldocs }