summaryrefslogtreecommitdiff
path: root/app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild
blob: 730844e5fd1b55807f0de9bee073d9daf46876b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
}