Gentoo Archives: gentoo-proxy-maint

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-proxy-maint@l.g.o
Subject: [gentoo-proxy-maint] [PATCH] app-text/pastebinit: update EAPI 7 -> 8, enable py3.10
Date: Sat, 25 Jun 2022 06:02:55
Message-Id: 20220625060241.2831-1-cyber+gentoo@sysrq.in
1 * use optfeatures
2 * add `man` USE flag
3 * remove LINGUAS handling
4
5 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
6 ---
7 .../pastebinit/pastebinit-1.5.1-r1.ebuild | 70 +++++++++++++++++++
8 1 file changed, 70 insertions(+)
9 create mode 100644 app-text/pastebinit/pastebinit-1.5.1-r1.ebuild
10
11 diff --git a/app-text/pastebinit/pastebinit-1.5.1-r1.ebuild b/app-text/pastebinit/pastebinit-1.5.1-r1.ebuild
12 new file mode 100644
13 index 0000000000..2b07298d87
14 --- /dev/null
15 +++ b/app-text/pastebinit/pastebinit-1.5.1-r1.ebuild
16 @@ -0,0 +1,70 @@
17 +# Copyright 1999-2022 Gentoo Authors
18 +# Distributed under the terms of the GNU General Public License v2
19 +
20 +EAPI=8
21 +
22 +PYTHON_COMPAT=( python3_{8..11} )
23 +PYTHON_REQ_USE="xml(+)"
24 +inherit optfeature python-single-r1
25 +
26 +MY_P="${PN}_${PV}"
27 +DESCRIPTION="A software that lets you send anything you want directly to a pastebin"
28 +HOMEPAGE="https://launchpad.net/pastebinit"
29 +SRC_URI="mirror://ubuntu/pool/main/p/${PN}/${MY_P}.orig.tar.gz"
30 +
31 +LICENSE="GPL-2"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~riscv ~x86"
34 +IUSE="man"
35 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
36 +
37 +RDEPEND="
38 + ${PYTHON_DEPS}
39 + $(python_gen_cond_dep '
40 + dev-python/configobj[${PYTHON_USEDEP}]
41 + ')
42 +"
43 +BDEPEND="
44 + man? (
45 + app-text/docbook-xsl-stylesheets
46 + dev-libs/libxslt
47 + )
48 +"
49 +
50 +src_prepare() {
51 + default
52 + python_fix_shebang "${S}"/${PN}
53 +}
54 +
55 +src_compile() {
56 + emake -C po
57 +
58 + if use man; then
59 + ebegin "Generating a manpage with xsltproc"
60 + xsltproc --nonet \
61 + "${BROOT}"/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
62 + pastebinit.xml
63 + eend $?
64 + fi
65 +}
66 +
67 +src_install() {
68 + dobin pastebinit utils/pbput
69 + dosym pbput /usr/bin/pbget
70 + dosym pbput /usr/bin/pbputs
71 +
72 + einstalldocs
73 + doman utils/*.1
74 + use man && doman pastebinit.1
75 +
76 + insinto /usr/share/locale
77 + doins -r po/mo/*
78 +
79 + insinto /usr/share
80 + doins -r pastebin.d
81 +}
82 +
83 +pkg_postinst() {
84 + optfeature "pbput and pbputs scripts" app-arch/xz-utils
85 + optfeature "pbget and pbputs scripts" app-crypt/gnupg
86 +}
87 --
88 2.35.1

Replies

Subject Author
[gentoo-proxy-maint] [PATCH v2] app-text/pastebinit: update EAPI 7 -> 8, enable py3.10 Anna Vyalkova <cyber+gentoo@×××××.in>