mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
@@ -1,2 +1,4 @@
|
||||
DIST sqlcmd-1.8.2-deps.tar.xz 53593028 BLAKE2B a521a110d0f5ed20a60d7337bb6f28142b5810405847eded67cb01ff13d818038712cbcd5d233f44b1c863a1fb8a19dbaefb31932df96fdbb34f804b985a6d8f SHA512 e1938ee14514efc22d8d3c78f4f1781b9cd90265708812548b1b5622af2e7e9bd71e108ebe6d7d3739493c370631b84155e0f2b415d60826d3226ae6cea32dc2
|
||||
DIST sqlcmd-1.8.2.tar.gz 1050371 BLAKE2B 6fb08f72accef33f3cc7edb4701371ce7305e6a52e9b69c258e0224b302ac5b5fc63d834f079567db2503ef6ad89d8d671f74d3c609766c5389224bb76e71a02 SHA512 b1e58c35ac7572e223c8186a36fcffe1e7d350a68876a88639d71a15a7a7130d33af97be0af599a848b5635319f345053b1ba0a7dcff21fa5c44d5bcdf913dec
|
||||
DIST sqlcmd-1.8.3-deps.tar.xz 57174884 BLAKE2B 170b2babc29d43f405a4236694b33cd3789124ddcdda6147680e46bd4998d0dea45e91a287a718e5a5d18eca31a08f534ab0774854aebe3344385ffa25dddc8f SHA512 f7fb0e549e32ba47269741e11c898033ad3b7113575878838a6c042bf4dcd912f7b8c916802f225ccdba734c467a9dd7f48799deedd57e6ca8c6dec726b9a25a
|
||||
DIST sqlcmd-1.8.3.tar.gz 1050610 BLAKE2B f9dac12c7e5a8434995257250ae986ae2fd9875ea633641543a2efde97209849ed95e92a8881553f94b4d9d4e5c2e986e2f7de60faf4004f2e4d1b94f931c592 SHA512 ed0af421c050494a6f76151071ced8ab954ec73a5571f2677d495cf93147e64eedc82d679bd19145281de575c1e2d1a401c15538cea6af4555df177cbef5b5c8
|
||||
|
||||
41
dev-db/sqlcmd/sqlcmd-1.8.3.ebuild
Normal file
41
dev-db/sqlcmd/sqlcmd-1.8.3.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion
|
||||
|
||||
DESCRIPTION="The MSSQL SQLCMD CLI tool"
|
||||
HOMEPAGE="https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility"
|
||||
SRC_URI="https://github.com/microsoft/go-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
DEPS_URI="https://github.com/freijon/go-${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
|
||||
SRC_URI+=" ${DEPS_URI}"
|
||||
|
||||
S="${WORKDIR}/go-${P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_compile() {
|
||||
ego build -o "${PN}" -ldflags="-X main.version=${PV}" ./cmd/modern
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
mkdir "completions" || die
|
||||
|
||||
./sqlcmd completion bash > "completions/${PN}" || die
|
||||
./sqlcmd completion fish > "completions/${PN}.fish" || die
|
||||
./sqlcmd completion zsh > "completions/_${PN}" || die
|
||||
dobashcomp "completions/${PN}"
|
||||
dofishcomp "completions/${PN}.fish"
|
||||
dozshcomp "completions/_${PN}"
|
||||
|
||||
local DOCS=(
|
||||
"README.md"
|
||||
"SECURITY.md"
|
||||
)
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user