mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
@@ -1,4 +1,2 @@
|
||||
DIST topiary-0.6.1-crates.tar.xz 32670876 BLAKE2B 11f34cc0ea749ebd99de276af5bab5e8b49bd826e9346ae0cb372ded2170dec82d7e5b4cddb546f5f1ab1753d968561d1cf7e1be36a8403d83662384217028e6 SHA512 973b4a3704c790710af31052131b6636be97ab8e06692532d447a4fe19da5654d0ed829b1b424d6a8008d04613dc7c4c40cc48ccf1c007a4352719ece48d6402
|
||||
DIST topiary-0.6.1.tar.gz 2775747 BLAKE2B 688e0d6ce4860f7e8ee26ffeaa1fbfa1a0ff8b856cfc66fb9c2064a6163e47abd3f4f9c15872e23b925a054cc7cdeb69252ef26f34fcda35bb915aad354f7c54 SHA512 94bd32f631c4cf75816cb61217221556ade590b24e2d70f986950a65162197e3279dfdf4a99ab8070f35114ddc02ae3f432b0063f99c5b7d620d8485c303ae14
|
||||
DIST topiary-0.7.3-crates.tar.xz 33823704 BLAKE2B dd855788d78d81da0eb306e050759b24876a51386717087c5c3235a09ad567c653320e63f749ef46792a2ba58a05e27e03c63ea6c6c9477dd4894811087845f8 SHA512 76d383d053caea527390127d09f809ef84d0d7e6af7bea550677de581daf8fa5f4357d10aedb87a2a61ea1bfd108aa87fa51ae8d55e384971e17e5975e2d987c
|
||||
DIST topiary-0.7.3.tar.gz 2803017 BLAKE2B 1b78b075ed8bfa6c1f2a0d6c2d75d7971e64e6cf0ac3f33905e77073aeb4d41cca021886fa89cb44e6aca2fb857f08e8957455d5485b4d49c3462cefdd6c364a SHA512 920299927231004c33547b26d9357416a44d5f4c312e527da4755e00318d9746a6780d06b9cf9c0e38f9a17538ef1897b4c02bf7f2e853a7aa066bc72237a150
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.15.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=""
|
||||
|
||||
inherit cargo shell-completion
|
||||
|
||||
DESCRIPTION="CLI app for Topiary, the universal code formatter."
|
||||
HOMEPAGE="https://topiary.tweag.io"
|
||||
SRC_URI="https://github.com/tweag/topiary/releases/download/v${PV}/source.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
|
||||
|
||||
S="${WORKDIR}/${PN}-cli-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 BSD CDLA-Permissive-2.0 ISC LGPL-3 MIT MPL-2.0 MPL-2.0
|
||||
Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# high magic to allow system-libs
|
||||
export OPENSSL_NO_VENDOR=true
|
||||
export RUSTONIG_SYSTEM_LIBONIG=1
|
||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||
export PKG_CONFIG_ALLOW_CROSS=1
|
||||
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cargo_src_compile
|
||||
|
||||
TOPIARY_BIN="$(cargo_target_dir)/${PN}"
|
||||
|
||||
# Prepare shell completion generation
|
||||
mkdir completions || die
|
||||
local shell
|
||||
for shell in bash fish zsh; do
|
||||
"${TOPIARY_BIN}" completion ${shell} > "completions/${PN}.${shell}" || die
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "$(cargo_target_dir)/${PN}"
|
||||
|
||||
newbashcomp "completions/${PN}.bash" "${PN}"
|
||||
dofishcomp "completions/${PN}.fish"
|
||||
newzshcomp "completions/${PN}.zsh" "_${PN}"
|
||||
}
|
||||
Reference in New Issue
Block a user