summaryrefslogtreecommitdiff
path: root/app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild')
-rw-r--r--app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild b/app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild
new file mode 100644
index 000000000000..730844e5fd1b
--- /dev/null
+++ b/app-portage/cargolock2crates/cargolock2crates-0.1.4.ebuild
@@ -0,0 +1,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
+}