commit:     0082677050cd381b5a0bf4516b4fd181085d553d
Author:     Alexis Praga <Alexis <Praga>
AuthorDate: Mon May 22 20:42:34 2023 +0000
Commit:     Alexis Praga <alexis.praga <AT> proton <DOT> me>
CommitDate: Mon May 22 20:48:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=00826770

dev-util/hut: new package, add 0.3.0

Signed-off-by: Alexis Praga <alexis.praga <AT> proton.me>

 dev-util/hut/Manifest         |  2 ++
 dev-util/hut/hut-0.3.0.ebuild | 38 ++++++++++++++++++++++++++++++++++++++
 dev-util/hut/metadata.xml     | 15 +++++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/dev-util/hut/Manifest b/dev-util/hut/Manifest
new file mode 100644
index 000000000..754509318
--- /dev/null
+++ b/dev-util/hut/Manifest
@@ -0,0 +1,2 @@
+DIST hut-0.3.0-vendor.tar.xz 863500 BLAKE2B 
2bf717be5d75ba7e0007049d320cca8350d9d7fa53e2408c5a5ea73ec20916844322c84292b23dd6dd97d925590942ded57daf598216a6d2376242050ef3a571
 SHA512 
b55a5a45619da43d435c4a59f3a9518c7e9509840cfe7583a270a9ef00342f2870c169cd14b097afc6ed8635740b73b2f149d5c3f20f8f964c70442ecb7bf763
+DIST hut-0.3.0.tar.gz 116316 BLAKE2B 
68400bfa7e7aa90ee4dfd5d9b2a8f6b4d09ef12103fab07b11abab3d9a99d777c11c8a7fde46228c33b73b65467cbe75db77800e428d17dbf21ba00564a2773b
 SHA512 
41e84329b6d35df1abeca2a84352bd0bafaa7d05e7b36ff106d1c297e021dbc7beddd70c43ebfa02f48bad250469917879ee221a7983d132de8a56bc44e9a26b

diff --git a/dev-util/hut/hut-0.3.0.ebuild b/dev-util/hut/hut-0.3.0.ebuild
new file mode 100644
index 000000000..61e592de6
--- /dev/null
+++ b/dev-util/hut/hut-0.3.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="CLI tool for sourcehut"
+
+HOMEPAGE="https://sr.ht/~emersion/hut/";
+
+SRC_URI="
+       https://git.sr.ht/~emersion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       
https://github.com/apraga/hut-vendor/releases/download/v${PV}/hut-${PV}-vendor.tar.xz
+"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="AGPL-3"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND="app-text/scdoc"
+
+src_compile() {
+       ego build
+       emake doc/hut.1 completions
+}
+
+src_install() {
+       dobin hut
+       emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}"
+}

diff --git a/dev-util/hut/metadata.xml b/dev-util/hut/metadata.xml
new file mode 100644
index 000000000..a467263c2
--- /dev/null
+++ b/dev-util/hut/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alexis Praga</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="sourcehut">~emersion/hut</remote-id>
+               <remote-id type="github">apraga/hut-vendor</remote-id>
+       </upstream>
+       <longdescription lang="en">
+               Hut is a command-line tool to interact with sourcehut. It can 
manage git repositories, builds, publish to pages and pastes.
+       </longdescription>
+</pkgmetadata>

Reply via email to