aboutsummaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorJonas Frei <freijon@pm.me>2024-07-18 15:32:13 +0200
committerJonas Frei <freijon@pm.me>2024-07-18 15:32:42 +0200
commit8d0990b58329885e7ba79b3283685a1526d0b647 (patch)
treec059c1453c1afd1bd6704b3cf329e30e83c1c8ed /dev-db
parentapp-misc/via: fix installation error (diff)
downloadguru-8d0990b58329885e7ba79b3283685a1526d0b647.tar.gz
guru-8d0990b58329885e7ba79b3283685a1526d0b647.tar.bz2
guru-8d0990b58329885e7ba79b3283685a1526d0b647.zip
dev-db/sqlcmd: add 1.8.0
Signed-off-by: Jonas Frei <freijon@pm.me>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/sqlcmd/Manifest2
-rw-r--r--dev-db/sqlcmd/sqlcmd-1.8.0.ebuild42
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-db/sqlcmd/Manifest b/dev-db/sqlcmd/Manifest
index 37eaad729..005c54d07 100644
--- a/dev-db/sqlcmd/Manifest
+++ b/dev-db/sqlcmd/Manifest
@@ -1,2 +1,4 @@
DIST sqlcmd-1.7.0-deps.tar.xz 50175352 BLAKE2B 703d6c1e5b3013cc4dae98b89d0afe2db695d3e8b57e42ae452bcb351d12825655909284a99592f96165c6b18ffab90060b76b3db075f5417407cb795bfbebf1 SHA512 a69ac0f1b340e652f61a610f7ae72dd2097603fbdb9ce8e97cd9c471170955aa9dcc582b57f541b29799ebc82a65510c9709f5e7700d4a83d80f93106c8ec570
DIST sqlcmd-1.7.0.tar.gz 1046900 BLAKE2B 1dfe1df4cd37cb951b0801d44db1407ad40166925223bf64d27bc73d5e1acfa204d4bc65faf486ad3856110c2b45a652a6762fa8b7e7606f001b5a6dc12f65db SHA512 86ccf8a48c858bdf52353cc124957db76377c948c86f8200609db4c00c280e8bbd0b540ca8744174ed715ee7ca4abb974307413ff1d02a49eed1acaa7deeb59f
+DIST sqlcmd-1.8.0-deps.tar.xz 51224260 BLAKE2B 0f30c0ee118d1dbcf156fb0605d27d8c5163b80eb024437636ab5c13bb0990b1348f0cd41100f6ffeb6305bad58f44bea8c6b18aead518e4809fb4826219e4ec SHA512 15aa2d5123ac13d5b9a7cded3bc318973131b38cc33a017ffca2f4192641b393bbf2ad79657ca19c1a5c17214f2c06c3eaf3e6752f8fe82f5bd1136646a33c31
+DIST sqlcmd-1.8.0.tar.gz 1047131 BLAKE2B 9d2d472f1abc73ed373c1ca9ad4b1a53bda1d047e12e4ca2dc9eb86ed891a73f3bffe95e3d61f4d384b5f1e2d0791f77fa7911bf69fdf3e24c3b1926e0480e48 SHA512 56af33290561c297a3d7d19b0130747896676ca1f373468ade5760d3ae056f139f467bd72b75856a985cec949b009727c6bc0f188baee3a5d3307e92a9e04960
diff --git a/dev-db/sqlcmd/sqlcmd-1.8.0.ebuild b/dev-db/sqlcmd/sqlcmd-1.8.0.ebuild
new file mode 100644
index 000000000..d6c9071a8
--- /dev/null
+++ b/dev-db/sqlcmd/sqlcmd-1.8.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023 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"
+
+# Using a dependency tarball as per https://devmanual.gentoo.org/eclass-reference/go-module.eclass/index.html
+DEPS_URI="https://gitlab.com/freijon_gentoo/${CATEGORY}/${PN}/-/raw/main/${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}"
+
+DOCS=(
+ "README.md"
+ "SECURITY.md"
+)
+ einstalldocs
+}