summaryrefslogtreecommitdiff
blob: 105bf866e5e71f6f15a6bb20713410f8ea50f73c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python3_{7,8} )

inherit distutils-r1

DESCRIPTION="A tool for signing and email all UIDs on a set of PGP keys"
HOMEPAGE="https://www.phildev.net/pius/ https://github.com/jaymzh/pius"
SRC_URI="https://github.com/jaymzh/pius/releases/download/v${PV}/pius-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND=">=app-crypt/gnupg-2.0.0"
RDEPEND="${DEPEND}
	dev-lang/perl"

PATCHES=(
  "${FILESDIR}/${P}_fix_typos.diff"
  "${FILESDIR}/${P}_fix_keyring_mgr_constants.diff"
  "${FILESDIR}/${P}_fix_readme_typo.diff"
  "${FILESDIR}/${P}_fix_pius_report.diff"
)

python_test() {
	${EPYTHON} -m unittest discover -s test/* -v || die
}