1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_5,3_6} )
8 inherit python-single-r1
10 DESCRIPTION="A software that lets you send anything you want directly to a pastebin"
11 HOMEPAGE="https://launchpad.net/pastebinit"
12 SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 RDEPEND="${PYTHON_DEPS}
22 dev-python/configobj[${PYTHON_USEDEP}]
23 crypt? ( app-crypt/gnupg )"
24 DEPEND="app-text/docbook-xsl-stylesheets"
29 for lang in ${LINGUAS}; do
30 if [ -f po/${lang}.po ]; then
35 sed -i -e "/^build-mo/s/:.*/:${mo}/" po/Makefile || die
36 sed -i -e "/#!/s/python3/python/" pastebinit || die
42 "${EROOT}"usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
47 dobin pastebinit utils/pbput
48 python_fix_shebang "${ED}usr/bin/${PN}"
49 dosym pbput /usr/bin/pbget
50 use crypt && dosym pbput /usr/bin/pbputs
52 doman pastebinit.1 utils/*.1
53 insinto /usr/share/locale
54 [[ -d po/mo ]] && doins -r po/mo/*