commit:     902f56e5a42f5866d951b3f4d6c8e40ab316f4fa
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Jun 21 13:42:25 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 19:46:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=902f56e5

app-text/pastebinit: add 1.7.0

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/37241
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-text/pastebinit/Manifest                |  1 +
 app-text/pastebinit/pastebinit-1.7.0.ebuild | 64 +++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/app-text/pastebinit/Manifest b/app-text/pastebinit/Manifest
index c55b6cc6d875..51ac900fba76 100644
--- a/app-text/pastebinit/Manifest
+++ b/app-text/pastebinit/Manifest
@@ -1,2 +1,3 @@
 DIST pastebinit-1.6.2.tar.gz 53444 BLAKE2B 
1e8853f0f37ac98eb1537dcc01f7c2ee33a3cf72fb5b10fc18b3f6b1662f3e15acf29c1674c2a34e234c6636ac70f59b265862a48c0860d1ff3725eabe11d7c4
 SHA512 
a04863bc748340bd8bc9d6170dedb2b234b53996cbaf5d1fdd0a078d0d6f03c4c558d2a5029359eb95d25c1339af25d74dbf247af1de0ae278a7664869e8841d
+DIST pastebinit-1.7.0.tar.gz 54026 BLAKE2B 
11d049333cd08866765ccd22292d1c13e13248ace2e713b69a30a0100d65ff16554368e0c875752d07050de2728ff5ad327f0f8fdbbaa6b53bd7fa98a7286cde
 SHA512 
01f65eb91803926bc401d01781d29ff5e409e1caf0aa593744a6e137571db6308893ce327b954131d55b2a5f764d4598fcfbfbab40cdc74a3fdb776566ab4488
 DIST pastebinit_1.5.1.orig.tar.gz 51448 BLAKE2B 
a5cfa13c770e234d6e08d4f0b662c09398a5f20ac4e3f7c10ab086261923851239a3e6c1bda78ba6ba810f95cd90e6517b74aa41c5b5e3d50bca5b8c100aa594
 SHA512 
02b7faa54862d240eac3a8edaae2edb895cbb476cbf89dc71514a5a0a42aa2b0d26f07e5485627d1deb61f62e37018459e4d072bd4aacc886f259fced35e352c

diff --git a/app-text/pastebinit/pastebinit-1.7.0.ebuild 
b/app-text/pastebinit/pastebinit-1.7.0.ebuild
new file mode 100644
index 000000000000..6c79a36cb184
--- /dev/null
+++ b/app-text/pastebinit/pastebinit-1.7.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+inherit optfeature python-single-r1
+
+DESCRIPTION="Software that lets you send anything you want directly to a 
pastebin"
+HOMEPAGE="https://github.com/pastebinit/pastebinit";
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+IUSE="man"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="
+       sys-devel/gettext
+       man? (
+               app-text/docbook-xsl-stylesheets
+               dev-libs/libxslt
+       )
+"
+
+src_prepare() {
+       default
+       python_fix_shebang "${S}"/${PN}
+}
+
+src_compile() {
+       emake -C po
+
+       if use man; then
+               ebegin "Generating a manpage with xsltproc"
+               xsltproc --nonet \
+                       
"${BROOT}"/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
+                       pastebinit.xml
+               eend $? || die
+       fi
+}
+
+src_install() {
+       dobin pastebinit utils/pbput
+       dosym pbput /usr/bin/pbget
+       dosym pbput /usr/bin/pbputs
+
+       einstalldocs
+       doman utils/*.1
+       use man && doman pastebinit.1
+
+       insinto /usr/share/locale
+       doins -r po/mo/*
+
+       insinto /usr/share
+       doins -r pastebin.d
+}
+
+pkg_postinst() {
+       optfeature "pbput and pbputs scripts" app-arch/xz-utils
+       optfeature "pbget and pbputs scripts" app-crypt/gnupg
+}

Reply via email to