From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pastebinit/
Date: Wed, 10 Mar 2021 01:24:24 +0000 (UTC) [thread overview]
Message-ID: <1615336765.638522c19ccb69d67697b7e386d05b2d61c1ca0b.sam@gentoo> (raw)
commit: 638522c19ccb69d67697b7e386d05b2d61c1ca0b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 10 00:39:25 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 10 00:39:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=638522c1
app-text/pastebinit: modernise, Python 3.9, fix invalid EROOT
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/pastebinit/pastebinit-1.5.1.ebuild | 41 +++++++++++++++++++----------
1 file changed, 27 insertions(+), 14 deletions(-)
diff --git a/app-text/pastebinit/pastebinit-1.5.1.ebuild b/app-text/pastebinit/pastebinit-1.5.1.ebuild
index ae5a31bb904..7a0e41a109b 100644
--- a/app-text/pastebinit/pastebinit-1.5.1.ebuild
+++ b/app-text/pastebinit/pastebinit-1.5.1.ebuild
@@ -1,15 +1,15 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
-PYTHON_REQ_USE="xml"
+PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_REQ_USE="xml"
inherit python-single-r1
+MY_P="${PN}_${PV}"
DESCRIPTION="A software that lets you send anything you want directly to a pastebin"
HOMEPAGE="https://launchpad.net/pastebinit"
-MY_P="${PN}_${PV}"
SRC_URI="mirror://ubuntu/pool/main/p/${PN}/${MY_P}.orig.tar.gz"
LICENSE="GPL-2"
@@ -19,42 +19,55 @@ IUSE="crypt"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RDEPEND="${PYTHON_DEPS}
+BDEPEND="app-text/docbook-xsl-stylesheets"
+RDEPEND="
+ ${PYTHON_DEPS}
$(python_gen_cond_dep '
- dev-python/configobj[${PYTHON_MULTI_USEDEP}]
+ dev-python/configobj[${PYTHON_USEDEP}]
')
- crypt? ( app-crypt/gnupg )"
-DEPEND="app-text/docbook-xsl-stylesheets"
+ crypt? ( app-crypt/gnupg )
+"
src_prepare() {
local mo=""
for lang in ${LINGUAS}; do
- if [ -f po/${lang}.po ]; then
+ if [[ -f po/${lang}.po ]]; then
mo="${mo} ${lang}.mo"
fi
done
sed -i -e "/^build-mo/s/:.*/:${mo}/" po/Makefile || die
- eapply_user
+
+ default
}
src_compile() {
emake -C po
xsltproc --nonet \
- "${EROOT}"/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
+ "${BROOT}"/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
pastebinit.xml || die
}
src_install() {
dobin pastebinit utils/pbput
+
python_fix_shebang "${ED}/usr/bin/${PN}"
+
dosym pbput /usr/bin/pbget
- use crypt && dosym pbput /usr/bin/pbputs
+
+ if use crypt; then
+ dosym pbput /usr/bin/pbputs
+ fi
+
dodoc README
doman pastebinit.1 utils/*.1
- insinto /usr/share/locale
- [[ -d po/mo ]] && doins -r po/mo/*
+
+ if [[ -d po/mo ]]; then
+ insinto /usr/share/locale
+ doins -r po/mo/*
+ fi
+
insinto /usr/share
doins -r pastebin.d
}
next reply other threads:[~2021-03-10 1:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-10 1:24 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-31 19:14 [gentoo-commits] repo/gentoo:master commit in: app-text/pastebinit/ Arthur Zamarin
2024-06-23 19:49 Conrad Kostecki
2024-06-02 7:30 Joonas Niilola
2022-12-18 11:55 Sam James
2022-07-02 17:35 Joonas Niilola
2022-07-02 15:34 Sam James
2021-08-04 14:33 Yixun Lan
2021-03-10 1:24 Sam James
2020-11-27 18:40 Aaron Bauman
2020-11-27 16:04 Agostino Sarubbo
2020-11-26 23:31 Thomas Deutschmann
2020-05-13 16:23 Hanno Böck
2020-04-19 2:35 Craig Andrews
2020-02-10 11:16 Michał Górny
2017-04-24 9:31 Pacho Ramos
2016-08-10 19:22 Michael Palimaka
2016-08-10 19:22 Michael Palimaka
2016-08-08 17:29 Austin English
2016-03-22 15:34 Christoph Mende
2015-09-20 11:33 Christoph Mende
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1615336765.638522c19ccb69d67697b7e386d05b2d61c1ca0b.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox