From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76A7515817D for ; Sat, 15 Jun 2024 07:16:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 115C3E2BB0; Sat, 15 Jun 2024 07:15:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E495FE2BAE for ; Sat, 15 Jun 2024 07:15:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B7B733C84E for ; Sat, 15 Jun 2024 07:15:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA5CB1D13 for ; Sat, 15 Jun 2024 07:15:56 +0000 (UTC) From: "Jonas Frei" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonas Frei" Message-ID: <1718435686.2cb0c231ed8e3b197409ca3624ebc36dc53270a9.freijon@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-db/sqlcmd/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-db/sqlcmd/Manifest dev-db/sqlcmd/metadata.xml dev-db/sqlcmd/sqlcmd-1.7.0.ebuild X-VCS-Directories: dev-db/sqlcmd/ X-VCS-Committer: freijon X-VCS-Committer-Name: Jonas Frei X-VCS-Revision: 2cb0c231ed8e3b197409ca3624ebc36dc53270a9 X-VCS-Branch: dev Date: Sat, 15 Jun 2024 07:15:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3bb4cc6a-745a-4d40-b671-b3233ed66d66 X-Archives-Hash: bbca65decd89090cabcf0e5fcbc3822f commit: 2cb0c231ed8e3b197409ca3624ebc36dc53270a9 Author: Jonas Frei pm me> AuthorDate: Sat Jun 15 07:14:24 2024 +0000 Commit: Jonas Frei pm me> CommitDate: Sat Jun 15 07:14:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2cb0c231 dev-db/sqlcmd: new package, add 1.7.0 Signed-off-by: Jonas Frei pm.me> dev-db/sqlcmd/Manifest | 2 ++ dev-db/sqlcmd/metadata.xml | 12 +++++++++++ dev-db/sqlcmd/sqlcmd-1.7.0.ebuild | 43 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/dev-db/sqlcmd/Manifest b/dev-db/sqlcmd/Manifest new file mode 100644 index 000000000..37eaad729 --- /dev/null +++ b/dev-db/sqlcmd/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/dev-db/sqlcmd/metadata.xml b/dev-db/sqlcmd/metadata.xml new file mode 100644 index 000000000..afe7c9dc8 --- /dev/null +++ b/dev-db/sqlcmd/metadata.xml @@ -0,0 +1,12 @@ + + + + + Jonas Frei + freijon@pm.me + + + microsoft/go-sqlcmd + https://github.com/microsoft/go-sqlcmd/issues + + diff --git a/dev-db/sqlcmd/sqlcmd-1.7.0.ebuild b/dev-db/sqlcmd/sqlcmd-1.7.0.ebuild new file mode 100644 index 000000000..e4c60d445 --- /dev/null +++ b/dev-db/sqlcmd/sqlcmd-1.7.0.ebuild @@ -0,0 +1,43 @@ +# 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" + +DOCS=( + "README.md" + "SECURITY.md" +) + +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}" + + einstalldocs +}