You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/pastebinit/pastebinit-1.3.1.ebuild

44 lines
1.1 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/pastebinit/pastebinit-1.3.1.ebuild,v 1.1 2013/04/09 08:46:34 angelos Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
PYTHON_REQ_USE="xml"
inherit python-r1
DESCRIPTION="A software that lets you send anything you want directly to a
pastebin from the command line."
HOMEPAGE="https://launchpad.net/pastebinit"
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="crypt"
RDEPEND="${PYTHON_DEPS}
dev-python/configobj[${PYTHON_USEDEP}]
crypt? ( app-crypt/gnupg )"
DEPEND="app-text/docbook-xsl-stylesheets"
src_compile() {
emake -C po
xsltproc --nonet \
${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
pastebinit.xml || die
}
src_install() {
dobin pastebinit utils/pbput
dosym pbput /usr/bin/pbget
use crypt && dosym pbput /usr/bin/pbputs
dodoc README
doman pastebinit.1 utils/*.1
insinto /usr/share/locale
doins -r po/mo/*
insinto /usr/share
doins -r pastebin.d
}