commit: b0ee5981882630e3cf15f7deb822a31adfaf3fcb Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Sat Apr 20 07:23:54 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Jun 2 07:30:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0ee5981
app-text/pastebinit: add 1.6.2 (new upstream) Closes: https://bugs.gentoo.org/929364 Closes: https://bugs.gentoo.org/923504 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> Closes: https://github.com/gentoo/gentoo/pull/36327 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> app-text/pastebinit/Manifest | 1 + app-text/pastebinit/metadata.xml | 1 + app-text/pastebinit/pastebinit-1.6.2.ebuild | 64 +++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/app-text/pastebinit/Manifest b/app-text/pastebinit/Manifest index a70400b64a3c..c55b6cc6d875 100644 --- a/app-text/pastebinit/Manifest +++ b/app-text/pastebinit/Manifest @@ -1 +1,2 @@ +DIST pastebinit-1.6.2.tar.gz 53444 BLAKE2B 1e8853f0f37ac98eb1537dcc01f7c2ee33a3cf72fb5b10fc18b3f6b1662f3e15acf29c1674c2a34e234c6636ac70f59b265862a48c0860d1ff3725eabe11d7c4 SHA512 a04863bc748340bd8bc9d6170dedb2b234b53996cbaf5d1fdd0a078d0d6f03c4c558d2a5029359eb95d25c1339af25d74dbf247af1de0ae278a7664869e8841d DIST pastebinit_1.5.1.orig.tar.gz 51448 BLAKE2B a5cfa13c770e234d6e08d4f0b662c09398a5f20ac4e3f7c10ab086261923851239a3e6c1bda78ba6ba810f95cd90e6517b74aa41c5b5e3d50bca5b8c100aa594 SHA512 02b7faa54862d240eac3a8edaae2edb895cbb476cbf89dc71514a5a0a42aa2b0d26f07e5485627d1deb61f62e37018459e4d072bd4aacc886f259fced35e352c diff --git a/app-text/pastebinit/metadata.xml b/app-text/pastebinit/metadata.xml index 946d7034d93b..dcc7ed11569a 100644 --- a/app-text/pastebinit/metadata.xml +++ b/app-text/pastebinit/metadata.xml @@ -5,5 +5,6 @@ <stabilize-allarches/> <upstream> <remote-id type="launchpad">pastebinit</remote-id> + <remote-id type="github">pastebinit/pastebinit</remote-id> </upstream> </pkgmetadata> diff --git a/app-text/pastebinit/pastebinit-1.6.2.ebuild b/app-text/pastebinit/pastebinit-1.6.2.ebuild new file mode 100644 index 000000000000..9ea08d834305 --- /dev/null +++ b/app-text/pastebinit/pastebinit-1.6.2.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..12} ) +inherit optfeature python-single-r1 + +DESCRIPTION="A 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 +}
