Gentoo Archives: gentoo-commits

From: "Hanno Böck" <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pastebinit/
Date: Wed, 13 May 2020 16:23:28
Message-Id: 1589386988.73acfa28d871f45751c1c1f3a9ed9ff22358f6af.hanno@gentoo
1 commit: 73acfa28d871f45751c1c1f3a9ed9ff22358f6af
2 Author: Hanno Böck <hanno <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 13 16:23:08 2020 +0000
4 Commit: Hanno Böck <hanno <AT> gentoo <DOT> org>
5 CommitDate: Wed May 13 16:23:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73acfa28
7
8 app-text/pastebinit: Version bump + EAPI 7
9
10 Signed-off-by: Hanno Böck <hanno <AT> gentoo.org>
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12
13 app-text/pastebinit/Manifest | 1 +
14 app-text/pastebinit/pastebinit-1.5.1.ebuild | 60 +++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/app-text/pastebinit/Manifest b/app-text/pastebinit/Manifest
18 index fc3dcc2ccb4..5fa2a0313f1 100644
19 --- a/app-text/pastebinit/Manifest
20 +++ b/app-text/pastebinit/Manifest
21 @@ -1 +1,2 @@
22 DIST pastebinit-1.5.tar.bz2 42941 BLAKE2B 678df7f2e77cc832fc9e152fb451538284033d181d9165b1a1194b254ad08ca1ac3e4612dddf7db6c62c1c3c59265ad94a78cc6df9457565264864ab06bff00b SHA512 cc4b7c46ab7932be3a1064ce7a1d91da3ebf4b132ad44b0090c8d431bfc68e945357344e59ac1239e37b3178de124930c5c8dc552b42f16c39c0452ac9ab8099
23 +DIST pastebinit_1.5.1.orig.tar.gz 51448 BLAKE2B a5cfa13c770e234d6e08d4f0b662c09398a5f20ac4e3f7c10ab086261923851239a3e6c1bda78ba6ba810f95cd90e6517b74aa41c5b5e3d50bca5b8c100aa594 SHA512 02b7faa54862d240eac3a8edaae2edb895cbb476cbf89dc71514a5a0a42aa2b0d26f07e5485627d1deb61f62e37018459e4d072bd4aacc886f259fced35e352c
24
25 diff --git a/app-text/pastebinit/pastebinit-1.5.1.ebuild b/app-text/pastebinit/pastebinit-1.5.1.ebuild
26 new file mode 100644
27 index 00000000000..85be8774801
28 --- /dev/null
29 +++ b/app-text/pastebinit/pastebinit-1.5.1.ebuild
30 @@ -0,0 +1,60 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{6,7,8} )
36 +PYTHON_REQ_USE="xml"
37 +
38 +inherit python-single-r1
39 +
40 +DESCRIPTION="A software that lets you send anything you want directly to a pastebin"
41 +HOMEPAGE="https://launchpad.net/pastebinit"
42 +MY_P="${PN}_${PV}"
43 +SRC_URI="mirror://ubuntu/pool/main/p/${PN}/${MY_P}.orig.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="crypt"
49 +
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +RDEPEND="${PYTHON_DEPS}
53 + $(python_gen_cond_dep '
54 + dev-python/configobj[${PYTHON_MULTI_USEDEP}]
55 + ')
56 + crypt? ( app-crypt/gnupg )"
57 +DEPEND="app-text/docbook-xsl-stylesheets"
58 +
59 +src_prepare() {
60 + local mo=""
61 +
62 + for lang in ${LINGUAS}; do
63 + if [ -f po/${lang}.po ]; then
64 + mo="${mo} ${lang}.mo"
65 + fi
66 + done
67 +
68 + sed -i -e "/^build-mo/s/:.*/:${mo}/" po/Makefile || die
69 + eapply_user
70 +}
71 +
72 +src_compile() {
73 + emake -C po
74 + xsltproc --nonet \
75 + "${EROOT}"/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
76 + pastebinit.xml || die
77 +}
78 +
79 +src_install() {
80 + dobin pastebinit utils/pbput
81 + python_fix_shebang "${ED}/usr/bin/${PN}"
82 + dosym pbput /usr/bin/pbget
83 + use crypt && dosym pbput /usr/bin/pbputs
84 + dodoc README
85 + doman pastebinit.1 utils/*.1
86 + insinto /usr/share/locale
87 + [[ -d po/mo ]] && doins -r po/mo/*
88 + insinto /usr/share
89 + doins -r pastebin.d
90 +}