app-text/pastebinit - 1.8.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-text/pastebinit-1.8.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-text/pastebinit-1.8.0

Or alternatively:

emerge --autounmask-write -a =app-text/pastebinit-1.8.0

Package Information

Description:
Software that lets you send anything you want directly to a pastebin
Homepage:
https://github.com/pastebinit/pastebinit
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
1.8.0 8 ~amd64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
inherit optfeature python-single-r1

DESCRIPTION="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-alternatives/gpg
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-text/pastebinit | euse -E <flag> -p app-text/pastebinit | euse -D <flag> -p app-text/pastebinit

Global/Standard Flags

man

Inherited Eclasses

Dependencies

BDEPEND

	sys-devel/gettext
	man? (
		app-text/docbook-xsl-stylesheets
		dev-libs/libxslt
	)

Manifest for 1.8.0

Type File Size Source URLs
DIST pastebinit-1.8.0.tar.gz 54121 bytes https://github.com/pastebinit/pastebinit/archive/refs/tags/1.8.0.tar.gz